summary refs log tree commit diff
path: root/media-fonts/siji
diff options
context:
space:
mode:
Diffstat (limited to 'media-fonts/siji')
-rw-r--r--media-fonts/siji/metadata.xml13
-rw-r--r--media-fonts/siji/siji-9999.ebuild34
2 files changed, 47 insertions, 0 deletions
diff --git a/media-fonts/siji/metadata.xml b/media-fonts/siji/metadata.xml
new file mode 100644
index 0000000..4abb855
--- /dev/null
+++ b/media-fonts/siji/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/siji/siji-9999.ebuild b/media-fonts/siji/siji-9999.ebuild
new file mode 100644
index 0000000..dc4630e
--- /dev/null
+++ b/media-fonts/siji/siji-9999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit git-r3 font
+
+DESCRIPTION="An iconic bitmap font based on Stlarch with additional glyphs"
+HOMEPAGE="https://github.com/stark/siji"
+EGIT_REPO_URI="https://github.com/stark/siji.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="+pcf"
+
+DEPEND="x11-apps/bdftopcf"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+	if use pcf; then
+		bdftopcf bdf/${PN}.bdf -o pcf/${PN}.pcf
+	fi
+}
+
+src_install() {
+	insinto "/usr/share/fonts/${PN}"
+
+	if use pcf; then
+		doins pcf/*
+	else
+		doins bdf/*
+	fi
+}

Consider giving Nix/NixOS a try! <3