From 9e9ad2f0047b1e26dbe8266a6a0fc1896374c6a7 Mon Sep 17 00:00:00 2001 From: saundersp Date: Mon, 7 Oct 2024 19:57:40 +0200 Subject: [PATCH] Added media-fonts/hasklig-3.2.1 --- media-fonts/hasklig/Manifest | 1 + media-fonts/hasklig/hasklig-3.2.1.ebuild | 23 ++++++++++++++++++++ media-fonts/hasklig/metadata.xml | 19 ++++++++++++++++ metadata/md5-cache/media-fonts/hasklig-3.2.1 | 14 ++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 media-fonts/hasklig/Manifest create mode 100644 media-fonts/hasklig/hasklig-3.2.1.ebuild create mode 100644 media-fonts/hasklig/metadata.xml create mode 100644 metadata/md5-cache/media-fonts/hasklig-3.2.1 diff --git a/media-fonts/hasklig/Manifest b/media-fonts/hasklig/Manifest new file mode 100644 index 0000000..abac863 --- /dev/null +++ b/media-fonts/hasklig/Manifest @@ -0,0 +1 @@ +DIST hasklig-3.2.1.zip 100837791 BLAKE2B 183ac5c8c017f30d2218a1e4f93e9a89cd18cc29067f27622bc8e788b2b452680e49a8ec0ccd48e46a0ac7c81c5ad96a22cf23c24eca08f1df39c4ef5ec758a9 SHA512 acd1faec51bb661586290126a1b34184a6674c997ecb3f645fe299593805eab28a485d187b8c9956a34b9401f9ea5dd3ba467205606eef10848023bb29f336e5 diff --git a/media-fonts/hasklig/hasklig-3.2.1.ebuild b/media-fonts/hasklig/hasklig-3.2.1.ebuild new file mode 100644 index 0000000..3fdb0c5 --- /dev/null +++ b/media-fonts/hasklig/hasklig-3.2.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit font + +DESCRIPTION="Hasklig - a code font with monospaced ligatures" +HOMEPAGE="https://github.com/ryanoasis/nerd-fonts" +SRC_URI="https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/${PN}.zip -> ${P}.zip" + +S="${WORKDIR}" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +BDEPEND="app-arch/unzip" + +# This ebuild does not install any binaries +RESTRICT="binchecks strip" + +# There are also ttf fonts but I've googled that otf is better +FONT_SUFFIX="otf" diff --git a/media-fonts/hasklig/metadata.xml b/media-fonts/hasklig/metadata.xml new file mode 100644 index 0000000..c1826d2 --- /dev/null +++ b/media-fonts/hasklig/metadata.xml @@ -0,0 +1,19 @@ + + + + + pierre.saundersps@gmail.com + Pierre Saunders + + + Hasklig – Ligatures for code + Programming languages are limited to relatively few characters. As a result, combined character operators surfaced quite early, such as the widely used arrow (->), comprised of a hyphen and greater sign. It looks like an arrow if you know the analogy and squint a bit. + Composite glyphs are problematic in languages such as Haskell which utilize these complicated operators extensively. The readability of such complex code improves with pretty printing. Academic articles featuring Haskell code often use lhs2tex to achieve an appealing rendering, but it is of no use when programming. + Some Haskellers have resorted to Unicode symbols (⇒, ← etc.), which are valid in the ghc. However they are one-character-wide and therefore eye-strainingly small. Furthermore, when displayed as substitutes to the underlying multi-character representation, as vim2hs does, the characters go out of alignment. + Hasklig solves the problem the way typographers have always solved ill-fitting characters which co-occur often: ligatures. The underlying code stays the same — only the representation changes. + Not only can multi-character glyphs be rendered more vividly, other problematic things in monospaced fonts, such as spacing can be corrected. + + + ryanoasis/nerd-fonts + + diff --git a/metadata/md5-cache/media-fonts/hasklig-3.2.1 b/metadata/md5-cache/media-fonts/hasklig-3.2.1 new file mode 100644 index 0000000..2f6eb37 --- /dev/null +++ b/metadata/md5-cache/media-fonts/hasklig-3.2.1 @@ -0,0 +1,14 @@ +BDEPEND=app-arch/unzip X? ( >=x11-apps/mkfontscale-1.2.0 media-fonts/encodings ) +DEFINED_PHASES=install postinst postrm setup +DESCRIPTION=Hasklig - a code font with monospaced ligatures +EAPI=8 +HOMEPAGE=https://github.com/ryanoasis/nerd-fonts +INHERIT=font +IUSE=X +KEYWORDS=~amd64 ~arm64 +LICENSE=OFL-1.1 +RESTRICT=binchecks strip +SLOT=0 +SRC_URI=https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/hasklig.zip -> hasklig-3.2.1.zip +_eclasses_=font aa113a3df9cd0a9693a1c1ee7c34a6eb +_md5_=8ef9ad214144693cf97f1b3184c20eba