summaryrefslogtreecommitdiff
path: root/sys-apps
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-09-07 18:52:41 +0200
committerKarel Kočí <cynerd@email.cz>2020-09-07 18:55:32 +0200
commit8229611d82dbfa5d9cfb15dba584dc366abea7e1 (patch)
tree82f6219e0e8ba43f7ea7854a5ead83f701768480 /sys-apps
parent7f7be03d0b1411b09f4b15ae633e6f2de290aa83 (diff)
downloadgentoo-personal-overlay-8229611d82dbfa5d9cfb15dba584dc366abea7e1.tar.gz
gentoo-personal-overlay-8229611d82dbfa5d9cfb15dba584dc366abea7e1.tar.bz2
gentoo-personal-overlay-8229611d82dbfa5d9cfb15dba584dc366abea7e1.zip
sys-apps/personal-utils: do not run fontconfig when not available
Diffstat (limited to 'sys-apps')
-rwxr-xr-xsys-apps/personal-utils/files/emergefix20
-rw-r--r--sys-apps/personal-utils/personal-utils-1.5.10-r1.ebuild (renamed from sys-apps/personal-utils/personal-utils-1.5.9-r1.ebuild)0
2 files changed, 11 insertions, 9 deletions
diff --git a/sys-apps/personal-utils/files/emergefix b/sys-apps/personal-utils/files/emergefix
index dc7c1f2..bcec51d 100755
--- a/sys-apps/personal-utils/files/emergefix
+++ b/sys-apps/personal-utils/files/emergefix
@@ -26,12 +26,14 @@ run emerge --keep-going=y @preserved-rebuild
step "Clean packages"
run emerge --depclean -a "$@"
-step "Enable all fonts"
-enable_all_fonts() {
- eselect fontconfig list | \
- awk 'NR > 1 && $3 != "*" { print substr($1,2,length($1)-2) }' | \
- while read -r font; do
- eselect fontconfig enable "$font"
- done
-}
-enable_all_fonts
+if eselect modules has fontconfig; then
+ step "Enable all fonts"
+ enable_all_fonts() {
+ eselect fontconfig list | \
+ awk 'NR > 1 && $3 != "*" { print substr($1,2,length($1)-2) }' | \
+ while read -r font; do
+ eselect fontconfig enable "$font"
+ done
+ }
+ enable_all_fonts
+fi
diff --git a/sys-apps/personal-utils/personal-utils-1.5.9-r1.ebuild b/sys-apps/personal-utils/personal-utils-1.5.10-r1.ebuild
index db86a53..db86a53 100644
--- a/sys-apps/personal-utils/personal-utils-1.5.9-r1.ebuild
+++ b/sys-apps/personal-utils/personal-utils-1.5.10-r1.ebuild