summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-10-10 12:40:28 +0200
committerPacho Ramos <pacho@gentoo.org>2023-10-10 12:40:28 +0200
commit4c2dfaefb04ef3949ab96bb8a85977c4abd75d06 (patch)
treec26206bc55cbc0bbb0c80a18a1ac830db6de672c /media-fonts
parentdev-lisp/sbcl: bump to 2.3.9 (diff)
downloadgentoo-4c2dfaefb04ef3949ab96bb8a85977c4abd75d06.tar.gz
gentoo-4c2dfaefb04ef3949ab96bb8a85977c4abd75d06.tar.bz2
gentoo-4c2dfaefb04ef3949ab96bb8a85977c4abd75d06.zip
media-fonts/urw-fonts: Install also t1 fonts
As other distributions do. Thanks-to: Michelangelo Scopelliti Closes: https://bugs.gentoo.org/911934 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/urw-fonts/urw-fonts-20230503-r1.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/media-fonts/urw-fonts/urw-fonts-20230503-r1.ebuild b/media-fonts/urw-fonts/urw-fonts-20230503-r1.ebuild
new file mode 100644
index 000000000000..ed5dfbc60cec
--- /dev/null
+++ b/media-fonts/urw-fonts/urw-fonts-20230503-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit font
+
+DESCRIPTION="(URW)++ base 35 font set"
+HOMEPAGE="https://github.com/ArtifexSoftware/urw-base35-fonts"
+COMMIT="3c0ba3b5687632dfc66526544a4e811fe0ec0cd9"
+SRC_URI="https://github.com/ArtifexSoftware/urw-base35-fonts/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+
+S="${WORKDIR}/urw-base35-fonts-${COMMIT}"
+
+FONT_S="${S}/fonts"
+FONT_SUFFIX="afm otf t1 ttf"
+FONT_PRIORITY="61" # Same as in Fedora
+FONT_CONF=(
+ fontconfig/${FONT_PRIORITY}-urw-bookman.conf
+ fontconfig/${FONT_PRIORITY}-urw-c059.conf
+ fontconfig/${FONT_PRIORITY}-urw-d050000l.conf
+ fontconfig/${FONT_PRIORITY}-urw-fallback-backwards.conf
+ fontconfig/${FONT_PRIORITY}-urw-fallback-generics.conf
+ fontconfig/${FONT_PRIORITY}-urw-fallback-specifics.conf
+ fontconfig/${FONT_PRIORITY}-urw-gothic.conf
+ fontconfig/${FONT_PRIORITY}-urw-nimbus-mono-ps.conf
+ fontconfig/${FONT_PRIORITY}-urw-nimbus-roman.conf
+ fontconfig/${FONT_PRIORITY}-urw-nimbus-sans-narrow.conf
+ fontconfig/${FONT_PRIORITY}-urw-nimbus-sans.conf
+ fontconfig/${FONT_PRIORITY}-urw-p052.conf
+ fontconfig/${FONT_PRIORITY}-urw-standard-symbols-ps.conf
+ fontconfig/${FONT_PRIORITY}-urw-z003.conf
+)
+
+src_prepare() {
+ default
+ cd "${S}"/fontconfig
+ for f in *.conf ; do
+ mv "${f}" "${FONT_PRIORITY}-${f}"
+ done
+}
+
+src_install() {
+ font_src_install
+ insinto /usr/share/metainfo
+ doins appstream/*.xml
+}