diff options
Diffstat (limited to 'media-fonts')
-rw-r--r-- | media-fonts/gohufont/Manifest | 1 | ||||
-rw-r--r-- | media-fonts/gohufont/gohufont-2.1.ebuild | 23 | ||||
-rw-r--r-- | media-fonts/gohufont/metadata.xml | 8 | ||||
-rw-r--r-- | media-fonts/sarasa-gothic/Manifest | 2 | ||||
-rw-r--r-- | media-fonts/sarasa-gothic/metadata.xml | 16 | ||||
-rw-r--r-- | media-fonts/sarasa-gothic/sarasa-gothic-0.6.0.ebuild | 47 | ||||
-rw-r--r-- | media-fonts/siji/metadata.xml | 13 | ||||
-rw-r--r-- | media-fonts/siji/siji-9999.ebuild | 34 | ||||
-rw-r--r-- | media-fonts/tewi-font/metadata.xml | 13 | ||||
-rw-r--r-- | media-fonts/tewi-font/tewi-font-9999.ebuild | 42 |
10 files changed, 199 insertions, 0 deletions
diff --git a/media-fonts/gohufont/Manifest b/media-fonts/gohufont/Manifest new file mode 100644 index 0000000..ad70699 --- /dev/null +++ b/media-fonts/gohufont/Manifest @@ -0,0 +1 @@ +DIST gohufont-2.1.tar.gz 79758 BLAKE2B a6580399f1f778022dd83e32c9de73d39e0844c30f8a9c849ae9681286d75dbdd86dc8b91699925b1b49f5ccd9b189acb79aa560d6f6c53ccb3f285d3f748e8b SHA512 d4bdca3344d8a62947078ed243b257da86dfec59d78d7362eb5d5f75ef4d315ff6b955d2caf4110646ef5619e7912f2db06faa5e016d8fad6804d3048f4406c7 diff --git a/media-fonts/gohufont/gohufont-2.1.ebuild b/media-fonts/gohufont/gohufont-2.1.ebuild new file mode 100644 index 0000000..baa453a --- /dev/null +++ b/media-fonts/gohufont/gohufont-2.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit font font-ebdftopcf + +DESCRIPTION="A monospace bitmap font." +HOMEPAGE="http://font.gohu.org/" +SRC_URI="https://github.com/hchargois/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_compile() { + font-ebdftopcf_src_compile +} diff --git a/media-fonts/gohufont/metadata.xml b/media-fonts/gohufont/metadata.xml new file mode 100644 index 0000000..7869e07 --- /dev/null +++ b/media-fonts/gohufont/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/media-fonts/sarasa-gothic/Manifest b/media-fonts/sarasa-gothic/Manifest new file mode 100644 index 0000000..4985c42 --- /dev/null +++ b/media-fonts/sarasa-gothic/Manifest @@ -0,0 +1,2 @@ +DIST sarasa-gothic-ttc-0.6.0.7z 71670919 BLAKE2B 7a2da6fb0f32d51a470fdd15de68bae9ef878fe342c50239ffee45eaae9f506551be917d0867533652ae660b7a4feae560ce2aebc6d545609a82631bd5e647bb SHA512 d37b9f404710d98ce3598c7cd29439768fcd50539ad5ed44e6dfdd7bb900fe677782a6f84ee1f788f4c6b45c3a187339eb9b335fcbb61973dad0d928fc6e8eb7 +DIST sarasa-gothic-ttf-0.6.0.7z 77386486 BLAKE2B 068e307521cee47f02d60c0ae1d6a06de9c785bf93d6b041d7df7a402dd218b2d56e928f657e66426d0730f22cb2a1ef12d86c2a661c652359f0fa87ab5f7ec8 SHA512 61112dd76bcfbd7158968b5b29f83c1e18997dfd4a95fea85d1fa9154a1ee717348d38657445ea4bb58e94c731a5fa4c1dc79683de6f895d6d35c05888aeacd8 diff --git a/media-fonts/sarasa-gothic/metadata.xml b/media-fonts/sarasa-gothic/metadata.xml new file mode 100644 index 0000000..4fce22a --- /dev/null +++ b/media-fonts/sarasa-gothic/metadata.xml @@ -0,0 +1,16 @@ +<?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="gothic">Install gothic font variant</flag> + <flag name="mono">Install mono font variant</flag> + <flag name="term">Install term font variant</flag> + <flag name="ttc">Install ttc font files</flag> + <flag name="ttf">Install ttf font files</flag> + <flag name="ui">Install ui font variant</flag> + </use> +</pkgmetadata> diff --git a/media-fonts/sarasa-gothic/sarasa-gothic-0.6.0.ebuild b/media-fonts/sarasa-gothic/sarasa-gothic-0.6.0.ebuild new file mode 100644 index 0000000..bd12fe5 --- /dev/null +++ b/media-fonts/sarasa-gothic/sarasa-gothic-0.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit font + +DESCRIPTION="A CJK programming font based on Iosevka and Source Han Sans" +HOMEPAGE="https://github.com/be5invis/${PN}" +SRC_URI="https://github.com/be5invis/${PN}/releases/download/v${PV/_/-}/" +SRC_URI="ttc? ( ${SRC_URI}${PN}-ttc-${PV%_*}.7z ) + ttf? ( ${SRC_URI}${PN}-ttf-${PV%_*}.7z ) +" +RESTRICT="primaryuri" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE_FONT_TYPES=( ttc +ttf ) +IUSE_FONT_VARIANTS=( gothic +mono term ui ) +IUSE_L10N=( ja ko zh-CN zh-TW ) +IUSE="${IUSE_L10N[@]/#/l10n_} ${IUSE_FONT_TYPES[@]} ${IUSE_FONT_VARIANTS[@]}" +REQUIRED_USE="|| ( l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW ) + ?? ( ${IUSE_FONT_TYPES[@]/#+/} ) +" + +DEPEND="app-arch/p7zip" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_prepare() { + default + + use ttc && return + + rm -f \ + $(usex !l10n_ja "${PN%-*}*-j-*.ttf") \ + $(usex !l10n_ko "${PN%-*}*-cl-*.ttf") \ + $(usex !l10n_zh-CN "${PN%-*}*-sc-*.ttf") \ + $(usex !l10n_zh-TW "${PN%-*}*-tc-*.ttf") + + local i + for i in "${IUSE_FONT_VARIANTS[@]/#+/}"; do + use ${_v} || rm -f ${PN%-*}-${i}-*.ttf + done +} 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 +} 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 +} |