summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fonts/Hasklig/DESCR23
-rw-r--r--fonts/Hasklig/Makefile23
-rw-r--r--fonts/Hasklig/PLIST15
-rw-r--r--fonts/Hasklig/distinfo6
4 files changed, 67 insertions, 0 deletions
diff --git a/fonts/Hasklig/DESCR b/fonts/Hasklig/DESCR
new file mode 100644
index 00000000000..dc3f94b577b
--- /dev/null
+++ b/fonts/Hasklig/DESCR
@@ -0,0 +1,23 @@
+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 (=> -< >>= etc.) 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, 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.
diff --git a/fonts/Hasklig/Makefile b/fonts/Hasklig/Makefile
new file mode 100644
index 00000000000..a3122c43e03
--- /dev/null
+++ b/fonts/Hasklig/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2016/01/20 11:39:41 wiz Exp $
+
+DISTNAME= Hasklig-0.9
+CATEGORIES= fonts
+MASTER_SITES= ${MASTER_SITE_GITHUB:=i-tu/}
+GITHUB_RELEASE= ${DISTNAME:S/Hasklig-//}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/i-tu/Hasklig/
+COMMENT= Code font with monospaced ligatures
+LICENSE= ofl-v1.1
+
+USE_LANGUAGES= # none
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}
+FONTS_DIRS.ttf= ${PREFIX}/share/fonts/X11/OTF
+INSTALLATION_DIRS= share/fonts/X11/OTF
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/*.otf ${DESTDIR}${FONTS_DIRS.ttf}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/fonts/Hasklig/PLIST b/fonts/Hasklig/PLIST
new file mode 100644
index 00000000000..32933e9642a
--- /dev/null
+++ b/fonts/Hasklig/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1 2016/01/20 11:39:41 wiz Exp $
+share/fonts/X11/OTF/Hasklig-Black.otf
+share/fonts/X11/OTF/Hasklig-BlackIt.otf
+share/fonts/X11/OTF/Hasklig-Bold.otf
+share/fonts/X11/OTF/Hasklig-BoldIt.otf
+share/fonts/X11/OTF/Hasklig-ExtraLight.otf
+share/fonts/X11/OTF/Hasklig-ExtraLightIt.otf
+share/fonts/X11/OTF/Hasklig-It.otf
+share/fonts/X11/OTF/Hasklig-Light.otf
+share/fonts/X11/OTF/Hasklig-LightIt.otf
+share/fonts/X11/OTF/Hasklig-Medium.otf
+share/fonts/X11/OTF/Hasklig-MediumIt.otf
+share/fonts/X11/OTF/Hasklig-Regular.otf
+share/fonts/X11/OTF/Hasklig-Semibold.otf
+share/fonts/X11/OTF/Hasklig-SemiboldIt.otf
diff --git a/fonts/Hasklig/distinfo b/fonts/Hasklig/distinfo
new file mode 100644
index 00000000000..ce154d975e1
--- /dev/null
+++ b/fonts/Hasklig/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/01/20 11:39:41 wiz Exp $
+
+SHA1 (Hasklig-0.9.zip) = 302cbadc039d8b8144d533673322f15ac4fe0244
+RMD160 (Hasklig-0.9.zip) = 9f08b1463e6d92f1978c8161f7e2da46b0580264
+SHA512 (Hasklig-0.9.zip) = 841dfff305221eb0bf298a88b806e2b1b459c4580be1ea31a4932e86a9a2f3bb30ef5bea7396a2695ac742015e9f2cbe867e36ab1073ee2eb6c74777c29467b3
+Size (Hasklig-0.9.zip) = 1201991 bytes