summary refs log tree commit diff
path: root/media-fonts/tewi-font
diff options
context:
space:
mode:
Diffstat (limited to 'media-fonts/tewi-font')
-rw-r--r--media-fonts/tewi-font/metadata.xml13
-rw-r--r--media-fonts/tewi-font/tewi-font-9999.ebuild42
2 files changed, 55 insertions, 0 deletions
diff --git a/media-fonts/tewi-font/metadata.xml b/media-fonts/tewi-font/metadata.xml
new file mode 100644
index 0000000..4abb855
--- /dev/null
+++ b/media-fonts/tewi-font/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>azahi@teknik.io</email>
+		<name>azahi</name>
+	</maintainer>
+	<use>
+		<flag name="pcf">
+			Install pcf files instead of bdf
+		</flag>
+	</use>
+</pkgmetadata>
diff --git a/media-fonts/tewi-font/tewi-font-9999.ebuild b/media-fonts/tewi-font/tewi-font-9999.ebuild
new file mode 100644
index 0000000..198e259
--- /dev/null
+++ b/media-fonts/tewi-font/tewi-font-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit git-r3 font python-any-r1
+
+DESCRIPTION="A small bitmap font"
+HOMEPAGE="https://github.com/lucy/tewi-font"
+EGIT_REPO_URI="https://github.com/lucy/tewi-font.git"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="+pcf"
+
+DEPEND="x11-libs/libX11
+	pcf? ( x11-apps/bdftopcf )
+"
+RDEPEND="x11-libs/libX11"
+
+src_compile() {
+	if use pcf; then
+		emake
+	else
+		emake var
+	fi
+}
+
+src_install() {
+	insinto "/usr/share/fonts/${PN}"
+
+	if use pcf; then
+		doins out/*
+	else
+		doins *.bdf
+	fi
+
+	font_src_install
+}

Consider giving Nix/NixOS a try! <3