diff options
Diffstat (limited to 'media-fonts')
-rw-r--r-- | media-fonts/Manifest.gz | bin | 37584 -> 37584 bytes | |||
-rw-r--r-- | media-fonts/terminus-font/Manifest | 1 | ||||
-rw-r--r-- | media-fonts/terminus-font/terminus-font-4.49.1-r1.ebuild | 101 |
3 files changed, 102 insertions, 0 deletions
diff --git a/media-fonts/Manifest.gz b/media-fonts/Manifest.gz Binary files differindex 8cfd2c7cc118..5b7d79c93d06 100644 --- a/media-fonts/Manifest.gz +++ b/media-fonts/Manifest.gz diff --git a/media-fonts/terminus-font/Manifest b/media-fonts/terminus-font/Manifest index 0e67a28a5cae..248759923a4f 100644 --- a/media-fonts/terminus-font/Manifest +++ b/media-fonts/terminus-font/Manifest @@ -1,3 +1,4 @@ DIST terminus-font-4.49.1.tar.gz 648345 BLAKE2B 8c2edff7e57572361cf9a4907a165f8af69cbd5a3ae15817d02d43ab5134278ab64b269e6bd8c79d2107e5c8c51b58f07ab45c308891464cbc8e3e15767efadb SHA512 2e3a99960c459a453b5879bebbebeb653f0a22060177bf75c67bbeb7d32cfe1acce9e74a88fdc42e299b6dc402e0708552487abd26e80e985c7d6059b0d445a8 +EBUILD terminus-font-4.49.1-r1.ebuild 2817 BLAKE2B 767627e4ef972516ce917ecaea3b8a392aec0cf769b88da223db758d8835f2b1e138d623eec158e648bb99872b35a60fb29481738388864c091e69d65c9ee555 SHA512 0a2d454290d8dba5fa18fb82d2af1117b772ebf91a51dd694c52ebcf00d5bc35ebf920265f74a7cbd9cc014fd8e10ead9e34c05767949010302bf8e2be3bfdca EBUILD terminus-font-4.49.1.ebuild 2809 BLAKE2B cc06cae4eabb9c768dbffc0c3687661e2bd8434e84d606149623b3f69aacb6fc49e395edc7f3867300d1174bf3b21e95573dce0dec836592f93f223c669b2fb4 SHA512 f1f8cec16209ac52e3dd51a8662b2512d3bf9cf24e362e1e9cc317ded1d4141069d9b1da0c4dabae65fa2aaa237a8dea6c281becc7406456eb277f4d3b676db0 MISC metadata.xml 1826 BLAKE2B d85b13bc9a1fee0c68696b58c4b952b2848f1589f97117c6ef1df0656634e9af2fbd6266237f45f877c13b9133f2ed593b2f0523c9abbb95160e011348806f9e SHA512 c10ac329ab402c234aef6c908e9e410b06755592fe9ce7dc246967e44797a48374b95eb016968d11905f4a2303207fc8661f9a72ed6fd2b0b78a78d01a001e36 diff --git a/media-fonts/terminus-font/terminus-font-4.49.1-r1.ebuild b/media-fonts/terminus-font/terminus-font-4.49.1-r1.ebuild new file mode 100644 index 000000000000..faa8d85eb7c5 --- /dev/null +++ b/media-fonts/terminus-font/terminus-font-4.49.1-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit font python-any-r1 + +DESCRIPTION="A clean fixed font for the console and X11" +HOMEPAGE="https://terminus-font.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}-$(ver_cut 1-2)/${P}.tar.gz" + +LICENSE="OFL-1.1 GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="a-like-o +center-tilde distinct-l +otf pcf-8bit +pcf-unicode +psf quote + ru-dv +ru-g ru-i ru-k" + +BDEPEND="app-alternatives/gzip + ${PYTHON_DEPS} + app-alternatives/awk + pcf-8bit? ( x11-apps/bdftopcf ) + pcf-unicode? ( x11-apps/bdftopcf )" +RDEPEND="" + +FONTDIR=/usr/share/fonts/terminus +FONT_CONF=( 75-yes-terminus.conf ) +DOCS=( README README-BG AUTHORS CHANGES ) + +REQUIRED_USE="X? ( || ( otf pcf-8bit pcf-unicode ) )" + +pkg_setup() { + python_setup +} + +src_prepare() { + default + + # Upstream patches. Some of them are suggested to be applied by default + # dv - de NOT like latin g, but like caps greek delta + # ve NOT like greek beta, but like caps latin B + # ge - ge NOT like "mirrored" latin s, but like caps greek gamma + # ka - small ka NOT like minimised caps latin K, but like small latin k + use a-like-o && eapply "${S}"/alt/ao2.diff + use center-tilde && eapply "${S}"/alt/td1.diff + use distinct-l && eapply "${S}"/alt/ll2.diff + use ru-i && eapply "${S}"/alt/ij1.diff + use ru-k && eapply "${S}"/alt/ka2.diff + use ru-dv && eapply "${S}"/alt/dv1.diff + use ru-g && eapply "${S}"/alt/ge2.diff + use quote && eapply "${S}"/alt/gq2.diff +} + +src_configure() { + local configure_args=( + --prefix="${EPREFIX}"/usr + --psfdir="${EPREFIX}"/usr/share/consolefonts + --x11dir="${EPREFIX}"/${FONTDIR} + ) + # selfwritten configure script + ./configure "${configure_args[@]}" || die +} + +src_compile() { + local args=( + $(usex otf otb "") + $(usex pcf-8bit "pcf-8bit" "") + $(usex pcf-unicode "pcf" "") + $(usex psf "psf psf-vgaw" "") + ) + [[ ${#args[@]} -gt 0 ]] && emake "${args[@]}" +} + +src_install() { + local args=( + $(usex otf "install-otb" "") + $(usex pcf-8bit "install-pcf-8bit" "") + $(usex pcf-unicode "install-pcf" "") + $(usex psf "install-psf install-psf-vgaw install-psf-ref" "") + ) + # Set the CHECKDIR to a dummy location so we always get the same set of + # files installed regardless of what is in / or ROOT or wherever. + [[ ${#args[@]} -gt 0 ]] && emake DESTDIR="${D}" CHECKDIR="${D}" "${args[@]}" + + use otf && FONT_SUFFIX=otb font_src_install + + einstalldocs +} + +pkg_postinst() { + if use otf || use pcf-8bit || use pcf-unicode; then + font_pkg_postinst + fi +} + +pkg_postrm() { + if use otf || use pcf-8bit || use pcf-unicode; then + font_pkg_postrm + fi +} |