Added media-fonts/hasklig-3.2.1
This commit is contained in:
parent
f279a159af
commit
9e9ad2f004
1
media-fonts/hasklig/Manifest
Normal file
1
media-fonts/hasklig/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST hasklig-3.2.1.zip 100837791 BLAKE2B 183ac5c8c017f30d2218a1e4f93e9a89cd18cc29067f27622bc8e788b2b452680e49a8ec0ccd48e46a0ac7c81c5ad96a22cf23c24eca08f1df39c4ef5ec758a9 SHA512 acd1faec51bb661586290126a1b34184a6674c997ecb3f645fe299593805eab28a485d187b8c9956a34b9401f9ea5dd3ba467205606eef10848023bb29f336e5
|
23
media-fonts/hasklig/hasklig-3.2.1.ebuild
Normal file
23
media-fonts/hasklig/hasklig-3.2.1.ebuild
Normal file
@ -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"
|
19
media-fonts/hasklig/metadata.xml
Normal file
19
media-fonts/hasklig/metadata.xml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>pierre.saundersps@gmail.com</email>
|
||||||
|
<name>Pierre Saunders</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription lang="en">
|
||||||
|
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.
|
||||||
|
</longdescription>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">ryanoasis/nerd-fonts</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
14
metadata/md5-cache/media-fonts/hasklig-3.2.1
Normal file
14
metadata/md5-cache/media-fonts/hasklig-3.2.1
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user