summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-04-22 11:05:07 +0200
committerKarel Kočí <cynerd@email.cz>2020-04-22 11:05:07 +0200
commit36545821140f2e331bbc174cee674670edb4e399 (patch)
treea746a951647ab4b7425ccc3aaec67e088dac60e6
parentf616462f87117b67cd65ab919056f47114f2f9cb (diff)
downloadgentoo-personal-overlay-36545821140f2e331bbc174cee674670edb4e399.tar.gz
gentoo-personal-overlay-36545821140f2e331bbc174cee674670edb4e399.tar.bz2
gentoo-personal-overlay-36545821140f2e331bbc174cee674670edb4e399.zip
sys-apps/personal-utils: enable all fonts in emergefix
-rwxr-xr-xsys-apps/personal-utils/files/emergefix38
-rw-r--r--sys-apps/personal-utils/personal-utils-1.5.8-r1.ebuild (renamed from sys-apps/personal-utils/personal-utils-1.5.7-r1.ebuild)0
2 files changed, 25 insertions, 13 deletions
diff --git a/sys-apps/personal-utils/files/emergefix b/sys-apps/personal-utils/files/emergefix
index 2a3a3b0..d621173 100755
--- a/sys-apps/personal-utils/files/emergefix
+++ b/sys-apps/personal-utils/files/emergefix
@@ -1,25 +1,37 @@
#!/bin/sh
set -e
-fail_ask() {
- echo -ne "\e[1;31mContinue?\e[0m "
- read
+step() {
+ echo -e '\e[1;34m==========' "$@" '==========\e[0m'
}
-get_perl_version() {
- equery list -F '$version' dev-lang/perl
+run() {
+ "$@" || {
+ echo -ne "\e[1;31mContinue?\e[0m "
+ read
+ }
}
#################################################################################
-echo -e '\e[1;34m========== Update packages ==========\e[0m'
-emerge -auDU --with-bdeps=y --keep-going @world "$@" || fail_ask
+step "Update packages"
+run emerge -auDU --with-bdeps=y --keep-going @world "$@"
-echo -e '\e[1;34m========== Rebuil packages ==========\e[0m'
-revdep-rebuild -- "$@" || fail_ask
+step "Rebuil packages"
+run revdep-rebuild -- "$@"
-echo -e '\e[1;34m========== Rebuild preserved ones ==========\e[0m'
-emerge --keep-going=y @preserved-rebuild || fail_ask
+step "Rebuild preserved ones"
+run emerge --keep-going=y @preserved-rebuild
-echo -e '\e[1;34m========== Clean packages ==========\e[0m'
-emerge --depclean -a "$@"
+step "Clean packages"
+run emerge --depclean -a "$@"
+
+step "Enable all fonts"
+enable_all_fonts() {
+ eselect fontconfig list | \
+ awk ' $3 != "*" { print substr($1,2,length($1)-2) }' | \
+ while read -r font; do
+ eselect fontconfig enable "$font"
+ done
+}
+enable_all_fonts
diff --git a/sys-apps/personal-utils/personal-utils-1.5.7-r1.ebuild b/sys-apps/personal-utils/personal-utils-1.5.8-r1.ebuild
index db86a53..db86a53 100644
--- a/sys-apps/personal-utils/personal-utils-1.5.7-r1.ebuild
+++ b/sys-apps/personal-utils/personal-utils-1.5.8-r1.ebuild