summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eclass: standardize prologue/epilogueDavid Seifert2023-03-171-7/+7
| | | | | Closes: https://github.com/gentoo/gentoo/pull/30061 Signed-off-by: David Seifert <soap@gentoo.org>
* font.eclass: introduce FONT_OPENTYPE_COMPAT for converting old bitmap fontsSam James2022-11-201-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | >=x11-libs/pango-1.44 dropped support for old bitmap fonts. We can convert (or really, wrap/embed) fonts from the legacy .bdf and .pcf formats into the OTB wrapper format using x11-apps/fonttosfnt. This commit adds FONT_OPENTYPE_COMPAT to font.eclass which packages installing bitmap fonts can set to opt-in to conversion/wrapping. Note that the font conversion isn't perfect -- it's good enough in many cases, but in some cases they may require tweaking via fontconfig to get pixel size right, antialiasing settings, ... Adds IUSE=+opentype-compat to any ebuilds which set FONT_OPENTYPE_COMPAT; enabled by default given discoverability of this issue may be difficult and presumably any font package enabling FONT_OPENTYPE_COMPAT will be useless without it anyway. See also https://fedoraproject.org/wiki/BitmapFontConversion. Bug: https://bugs.gentoo.org/698922 Thanks-to: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
* font.eclass: Remove racy pkg_postinst codeMatt Turner2022-11-081-6/+0
| | | | | | | | | | | | | | | | | | | | | | | Noticed on ChromeOS when installing a large number of font packages in parallel: /usr/share/fonts/noto/NotoSerifThai-Regular.ttf#new' from 0004 (------r--) to 2440 (r--r-S---) * ERROR: media-fonts/ipaex-004.01-r1::chromiumos failed (postinst phase): * failed to fix font files perms The "#new" filename is the hint. Portage uses "#new" suffixes when copying files to the system, and then renames them to their final filenames. This code was executing while another font was in the process of being copied to the system. Font packages should just ensure that they install files with correct permissions to begin with, and all except media-fonts/x11fonts-jmk already use 0644 permissions. media-fonts/x11fonts-jmk used 0444 (which was probably fine) until the previous commit which changes its installed files to 0644. Bug: https://bugs.gentoo.org/187774 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* font.eclass: check for dir existence in _update_fontcacheSam James2022-10-191-3/+5
| | | | | | | | It's still subject to a narrow race but nowhere near as bad as removed-last-font-now- its-gone. Closes: https://bugs.gentoo.org/754702 Signed-off-by: Sam James <sam@gentoo.org>
* font.eclass: Support EAPI 8Matt Turner2022-04-031-3/+3
| | | | | Closes: https://bugs.gentoo.org/806496 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-5/+5
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* font.eclass: Cleanup double slashes, FONTDIR always starts w/ '/'Andreas Sturmlechner2021-03-261-5/+5
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* font.eclass: use BDEPEND with EAPI 7David Michael2021-03-261-10/+1
| | | | | | | | | | | | The mkfontscale program and encodings paths are used in the native root during src_install, so they need to be in BDEPEND. Also stop documenting DOCS as an eclass variable since it is a part of EAPI 6 and only used in eutils.eclass for EAPI 5 support. Closes: https://bugs.gentoo.org/776412 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* font.eclass: Drop EAPI-6 supportAndreas Sturmlechner2021-03-261-24/+10
| | | | | | Drop FONT_S space-delimited-list fallback support. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* font.eclass: Drop EAPI-5 supportAndreas Sturmlechner2021-03-261-6/+6
| | | | | | | Assign inherit guard right on top. Quote some vars. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass: [QA] Revert multiple meaningless doc changesMichał Górny2020-12-281-5/+0
| | | | | | | | | | | Revert multiple meaningless eclass documentation changes, notably adding a lot of placeholders and documenting implementation details. These changes were aimed at silencing (valid) documentation warnings without actually providing valuable documentation to the end users. While some of these changes were beneficial, it would take a lot of effort to review them all and the author is unwilling to fix his mistakes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/font: fixup documentationAaron Bauman2020-12-161-0/+5
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* font.eclass: Fix condition for FONT_S in src_install().Ulrich Müller2020-04-181-1/+1
| | | | | | | Whitespace can be other characters than literal space. Fixes: 58cea2803d7aa7b1a98f72aa55b6221618dc5e5f Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* font.eclass: Don't assign FONT_S in global scope, allow an array.Ulrich Müller2020-03-201-12/+24
| | | | | | | | | | | | | | | | Accessing ${S} in global scope is not allowed by PMS, therefore remove the global variable assignment of FONT_S which uses it. Add a fallback to ${S} in font_src_install() instead. Allow FONT_S to be an array, if there are multiple directories. Support for whitespace-separated lists will be kept for some time, and a QA warning will be shown. Die if pushd or popd fails. Closes: https://bugs.gentoo.org/613108 Closes: https://bugs.gentoo.org/709578 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* font.eclass: Ban EAPIs < 5David Seifert2019-12-111-27/+15
| | | | | | | | * Add inherit guard like all modern eclasses Closes: https://bugs.gentoo.org/679658 Closes: https://github.com/gentoo/gentoo/pull/13360 Signed-off-by: David Seifert <soap@gentoo.org>
* font.eclass: font_cleanup_dirs: Use `has` instead of `for`Andreas Sturmlechner2019-10-161-7/+5
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* font.eclass: Move while to primary shellAndreas Sturmlechner2019-10-161-2/+2
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* font.eclass: Add error handling where applicableAndreas Sturmlechner2019-10-161-15/+20
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* font.eclass: Port to EAPI-7Andreas Sturmlechner2019-10-161-38/+37
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* font.eclass: add README.md to dodoc listJoonas Niilola2019-09-231-1/+1
| | | | Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* font.eclass: add @SUPPORTED_EAPISJoonas Niilola2019-08-031-1/+2
| | | | Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* font.eclass: Drop x11-apps/mkfontdirMatt Turner2019-06-171-1/+1
| | | | | | | Now that x11-apps/mkfontscale 1.2.0 is stable everywhere, we can drop this. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* font.eclass: Don't set IUSE=X for media-fonts/encodingsMatt Turner2019-06-171-6/+7
| | | | | Closes: https://bugs.gentoo.org/665008 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* font.eclass: Allow for only >=x11-apps/mkfontscale-1.2.0Matt Turner2019-03-031-1/+1
| | | | | | mkfontdir is now part of mkfontscale-1.2.0. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* font.eclass: Add EAPI guardian block, bug 666635Andreas K. Hüttel2018-09-201-0/+5
| | | | Bug: https://bugs.gentoo.org/666635
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+250
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed