public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/terminus-font/
Date: Mon, 19 Jul 2021 16:04:41 +0000 (UTC)	[thread overview]
Message-ID: <1626710672.b771ccd62d5f2b03b4d3f09c0f9a92418496afa7.marecki@gentoo> (raw)

commit:     b771ccd62d5f2b03b4d3f09c0f9a92418496afa7
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 19 15:57:16 2021 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Jul 19 16:04:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b771ccd6

media-fonts/terminus-font: fix PCF-related USE flags

Since version 4.46 upstream build scripts no longer install PCFs for
8-bit encodings unless explicitly told to - meaning on the one one hand
both the building and the installation of Unicode and 8-bit PCF files is
now handled by separate make targets, and on the other that there is no
longer any need for "install all PCFs, then if only Unicode is requested
delete other encodings" logic.

In short: if you want Unicode PCFs set USE=pcf-unicode (ebuild default),
if you want 8-bit ones set USE=pcf-8bit (off by default).

Closes: https://bugs.gentoo.org/660966
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 .../terminus-font/terminus-font-4.49.1.ebuild      | 34 +++++++++-------------
 1 file changed, 14 insertions(+), 20 deletions(-)

diff --git a/media-fonts/terminus-font/terminus-font-4.49.1.ebuild b/media-fonts/terminus-font/terminus-font-4.49.1.ebuild
index 7fbe98e86d7..6c5eb7ba0f4 100644
--- a/media-fonts/terminus-font/terminus-font-4.49.1.ebuild
+++ b/media-fonts/terminus-font/terminus-font-4.49.1.ebuild
@@ -13,20 +13,21 @@ 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 ~mips ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="a-like-o +center-tilde distinct-l +otf +pcf +pcf-unicode-only +psf quote
+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-arch/gzip
 	${PYTHON_DEPS}
 	virtual/awk
-	pcf? ( x11-apps/bdftopcf )"
+	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 ) )"
+REQUIRED_USE="X? ( || ( otf pcf-8bit pcf-unicode ) )"
 
 pkg_setup() {
 	python_setup
@@ -62,33 +63,26 @@ src_configure() {
 
 src_compile() {
 	local args=(
-		$(usex psf 'psf psf-vgaw' '')
-		$(usex pcf 'pcf pcf-8bit' '')
-		$(usex otf otb '')
+		$(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 psf 'install-psf install-psf-vgaw install-psf-ref' '')
-		$(usex pcf 'install-pcf' '')
-		$(usex otf 'install-otb' '')
+		$(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[@]}"
+	[[ ${#args[@]} -gt 0 ]] && emake DESTDIR="${ED}" CHECKDIR="${ED}" "${args[@]}"
 
-	# Remove trans files that the kbd package takes care of installing.
-	rm -f "${ED}"/usr/share/consoletrans/*.trans
-
-	if use pcf-unicode-only; then
-		# Only the ter-x* fonts are unicode (ISO-10646-1) based
-		rm -f "${ED}"/usr/share/fonts/terminus/ter-[0-9a-wy-z]* || die
-	fi
-
-	use otf && FONT_SUFFIX=otb
-	font_src_install
+	use otf && FONT_SUFFIX=otb font_src_install
 
 	einstalldocs
 }


             reply	other threads:[~2021-07-19 16:04 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-19 16:04 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-24 20:25 [gentoo-commits] repo/gentoo:master commit in: media-fonts/terminus-font/ Andreas Sturmlechner
2024-04-24 14:11 Sam James
2023-12-16 21:39 Marek Szuba
2023-07-03 22:02 Conrad Kostecki
2023-05-14 14:51 Piotr Karbowski
2022-08-21  1:16 Marek Szuba
2021-08-31 21:25 Marek Szuba
2021-08-11 16:02 Marek Szuba
2021-07-19 16:04 Marek Szuba
2021-07-08  9:35 Marek Szuba
2021-07-08  9:35 Marek Szuba
2021-07-07 12:13 Marek Szuba
2021-07-07 12:13 Marek Szuba
2021-07-07 12:13 Marek Szuba
2021-07-03 20:12 Piotr Karbowski
2021-07-02  9:34 Sergei Trofimovich
2021-07-02  9:18 Marek Szuba
2021-06-05 21:43 Sergei Trofimovich
2021-06-05 19:22 Matt Turner
2021-06-05 10:50 Sergei Trofimovich
2021-05-15 13:58 Sergei Trofimovich
2021-03-13  9:53 Sergei Trofimovich
2021-03-07 19:44 Sam James
2021-03-07 14:41 Agostino Sarubbo
2021-03-06 18:38 Sam James
2021-03-06 18:38 Sam James
2021-03-06 18:37 Sam James
2021-03-06 15:37 Thomas Deutschmann
2021-01-06 14:01 Fabian Groffen
2020-12-26 19:26 Sergei Trofimovich
2020-11-10 23:49 Sergei Trofimovich
2020-07-25  9:18 Sergei Trofimovich
2020-07-17 15:17 Agostino Sarubbo
2020-07-17 15:12 Agostino Sarubbo
2020-07-17 15:09 Agostino Sarubbo
2020-07-17 15:05 Agostino Sarubbo
2020-07-17 14:47 Sam James
2020-07-17  7:02 Agostino Sarubbo
2020-06-20 19:49 Sergei Trofimovich
2020-06-16  7:03 Sergei Trofimovich
2020-06-15 22:04 Sergei Trofimovich
2020-06-15 22:04 Sergei Trofimovich
2020-06-14 17:43 Sergei Trofimovich
2020-06-14 13:29 Sergei Trofimovich
2020-05-01 17:48 Agostino Sarubbo
2020-05-01 17:46 Agostino Sarubbo
2020-05-01 17:44 Agostino Sarubbo
2020-05-01 17:43 Agostino Sarubbo
2020-05-01 17:42 Agostino Sarubbo
2020-05-01  8:40 Mart Raudsepp
2020-04-19  2:35 Craig Andrews
2019-08-12 19:58 Michał Górny
2019-08-07 13:44 Lars Wendler
2019-01-02 12:48 Lars Wendler
2018-06-25  8:31 Johannes Huber
2018-06-19 14:32 Tobias Klausmann
2018-05-30 16:30 Markus Meier
2018-05-26 10:20 Mart Raudsepp
2018-05-25 23:58 Thomas Deutschmann
2018-05-25  8:41 Sergei Trofimovich
2018-05-24 14:31 Agostino Sarubbo
2018-05-23 20:01 Johannes Huber
2017-11-09 22:43 Sergei Trofimovich
2017-11-09 22:43 Sergei Trofimovich
2017-08-21  8:47 Lars Wendler
2017-08-19  0:31 Thomas Deutschmann
2017-07-30 11:24 Sergei Trofimovich
2017-07-24 17:59 Markus Meier
2017-07-19 18:06 Tobias Klausmann
2017-07-17  9:09 Sergei Trofimovich
2017-07-17  8:12 Lars Wendler
2017-01-29 18:56 Fabian Groffen
2016-04-07 14:04 Lars Wendler
2016-04-07 14:04 Lars Wendler
2016-03-04 20:52 Stephen Klimaszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1626710672.b771ccd62d5f2b03b4d3f09c0f9a92418496afa7.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox