summaryrefslogtreecommitdiff
path: root/media-fonts/ibm-plex
diff options
context:
space:
mode:
Diffstat (limited to 'media-fonts/ibm-plex')
-rw-r--r--media-fonts/ibm-plex/Manifest3
-rw-r--r--media-fonts/ibm-plex/ibm-plex-1.2.3.ebuild57
-rw-r--r--media-fonts/ibm-plex/metadata.xml12
3 files changed, 72 insertions, 0 deletions
diff --git a/media-fonts/ibm-plex/Manifest b/media-fonts/ibm-plex/Manifest
new file mode 100644
index 000000000000..059cf289c9cc
--- /dev/null
+++ b/media-fonts/ibm-plex/Manifest
@@ -0,0 +1,3 @@
+DIST ibm-plex-1.2.3.tar.gz 64032367 BLAKE2B e99f6af7bbeb511c7204d2563f8cea5e21971e2e352d00c2180bae1cea6215d6622bcd811d3350de1c03bcfbdeedd4dc8f45475c12d7367989951b45569e5000 SHA512 9462b693bd4602d60f97435e18361c0896eb0ab00c6773ab590d85e44961de4348429bd6975522e120e56799937843f29b6f677fa6978b62525f5c4d8db5f5b8
+EBUILD ibm-plex-1.2.3.ebuild 1222 BLAKE2B 1f35cdf080047c1cf7db65859af33c369063867bc853f1ae9270953a10d5605ed925879a8e5e20c3c6ecba44e08e13f1f421cec9dd486cea9027b037b05747f9 SHA512 7b33ca07bb04b176a76b3a83ce9525af6bc576a8b11ca622f314b70613490ff006ecc62899b8b423e8bc3fb6641a3109361f3d2bccdb3a65adc9b8c4ddf5de6a
+MISC metadata.xml 350 BLAKE2B 7440f75b2e70848fdcaa34ba78a2b847b16e7202fa43e84b17b3c8abc6e0da2656e4d9e7488ff6f077ca5f245c8ff8582fb36b1169f8e258f3cead8bb02bdad0 SHA512 28b8cb595c5b0b4c5b56cafd8639a1ae59684b765309737bfc620110b376b73a4c86ec94ab9b4ff3161f7b8fdcc66b2c1a13874791d29c0ba024ad6b224b427a
diff --git a/media-fonts/ibm-plex/ibm-plex-1.2.3.ebuild b/media-fonts/ibm-plex/ibm-plex-1.2.3.ebuild
new file mode 100644
index 000000000000..6c881dc2157a
--- /dev/null
+++ b/media-fonts/ibm-plex/ibm-plex-1.2.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit font
+
+DESCRIPTION="The package of IBM's typeface"
+HOMEPAGE="https://github.com/IBM/plex"
+SRC_URI="https://github.com/IBM/plex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="otf +ttf"
+
+REQUIRED_USE="^^ ( otf ttf )"
+
+S="${WORKDIR}/${P/ibm-}"
+
+DOCS=( README.md )
+
+FONT_SUFFIX=""
+
+src_install() {
+
+if use otf; then
+
+ FONT_SUFFIX+="otf"
+
+ FONT_S="
+ "${S}"/IBM-Plex-Devanagari/fonts/complete/otf
+ "${S}"/IBM-Plex-Mono/fonts/complete/otf
+ "${S}"/IBM-Plex-Sans-Condensed/fonts/complete/otf
+ "${S}"/IBM-Plex-Sans-Hebrew/fonts/complete/otf
+ "${S}"/IBM-Plex-Sans/fonts/complete/otf
+ "${S}"/IBM-Plex-Serif/fonts/complete/otf
+ "${S}"/IBM-Plex-Thai/fonts/complete/otf"
+fi
+
+if use ttf; then
+
+ FONT_SUFFIX+="ttf"
+
+ FONT_S="
+ "${S}"/IBM-Plex-Devanagari/fonts/complete/ttf
+ "${S}"/IBM-Plex-Mono/fonts/complete/ttf
+ "${S}"/IBM-Plex-Sans-Condensed/fonts/complete/ttf
+ "${S}"/IBM-Plex-Sans-Hebrew/fonts/complete/ttf
+ "${S}"/IBM-Plex-Sans/fonts/complete/ttf
+ "${S}"/IBM-Plex-Serif/fonts/complete/ttf
+ "${S}"/IBM-Plex-Thai/fonts/complete/ttf"
+fi
+
+font_src_install
+
+}
diff --git a/media-fonts/ibm-plex/metadata.xml b/media-fonts/ibm-plex/metadata.xml
new file mode 100644
index 000000000000..dd808ac32815
--- /dev/null
+++ b/media-fonts/ibm-plex/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zlogene@gentoo.org</email>
+ <name>Mikle Kolyada</name>
+ </maintainer>
+ <use>
+ <flag name="otf">Install OTF fonts</flag>
+ <flag name="ttf">Install TTF fonts</flag>
+ </use>
+</pkgmetadata>