]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
Add ebuild to generate M+ terminal fonts.
authorNick Bowler <nbowler@draconx.ca>
Thu, 30 Apr 2015 12:24:46 +0000 (08:24 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 30 Apr 2015 12:24:46 +0000 (08:24 -0400)
media-fonts/mplus-t-fonts/Manifest [new file with mode: 0644]
media-fonts/mplus-t-fonts/mplus-t-fonts-20140706.ebuild [new file with mode: 0644]

diff --git a/media-fonts/mplus-t-fonts/Manifest b/media-fonts/mplus-t-fonts/Manifest
new file mode 100644 (file)
index 0000000..a7e5721
--- /dev/null
@@ -0,0 +1,2 @@
+DIST d180c0bfdd4e3911a18360b3ccacd5271441e240.tar.xz 15276 SHA256 05805d63b5c11e295cdc1b309e17140110444754fce69e296ae52afd65167f43 SHA512 5260d78f8530e25dbcebb7af5a68fe65891fc9174f02ff17960dd0cc90464386a8b8bbbc04f219a2b4f9cd542df0affeb02e1f6754f09c594f5082cbfbf3bc0a WHIRLPOOL 349204dd9e5c9258683e69ee9fc65d1448d4f4b5e52c8c236f10ca8935d3cdc35f7571e5fc2d073ca18d0ad05b0ae2dfcfa24684a33830d031849ba1755c337c
+EBUILD mplus-t-fonts-20140706.ebuild 842 SHA256 33b9978df4dc4a21fae009662c04ec5bf58f34ca964835314669ccefa8e5039a SHA512 13019097cab4b192c43e036e364dc755dfbe724592da55bc5b5269ebfec974edbf527978af84494fb0e080f112a2ee769612f7319c8dc957ec9cb81ba534844a WHIRLPOOL 16958acb597f15ea63b5045162f5f2683753a06e402105ca834ac2c6bae9bcaf9975e709fe5ba44f66c7470ead008193c7dfeb131e3e901ce06a987a9685fbb9
diff --git a/media-fonts/mplus-t-fonts/mplus-t-fonts-20140706.ebuild b/media-fonts/mplus-t-fonts/mplus-t-fonts-20140706.ebuild
new file mode 100644 (file)
index 0000000..f97972d
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright © 2014 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or later.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1 font
+
+SHA1=d180c0bfdd4e3911a18360b3ccacd5271441e240
+
+DESCRIPTION="Variant of the M+ fonts with enlarged CJK glyphs"
+SRC_URI="http://git.draconx.ca/gitweb/scripts.git/snapshot/$SHA1.tar.xz"
+
+LICENSE="WTFPL-2 mplus-fonts IPAfont"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="$PYTHON_DEPS
+       media-fonts/mplus-outline-fonts[ipafont]
+       media-gfx/fontforge[python]"
+
+S=$WORKDIR/$SHA1
+MPLUSDIR=$EPREFIX/usr/share/fonts/mplus-outline-fonts
+
+FONT_S=$S/inst
+FONT_SUFFIX=ttf
+
+pkg_setup() {
+       python-any-r1_pkg_setup
+       font_pkg_setup
+}
+
+src_compile() {
+       ln -s "$MPLUSDIR"/*.ttf . || die
+       python mplus-t-gen.py || die
+
+       mkdir inst
+       mv M+?T+IPAG.ttf inst
+}