summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2015-10-16 00:00:03 +0000
committerAnthony G. Basile <blueness@gentoo.org>2015-10-23 13:16:17 -0400
commit20bb60b58d093a22f9d875a28f6a80ff3d5aea8b (patch)
tree317ced2591313aea30636d5fda8ab77551f9e911 /net-p2p/bitcoin-qt
parentbitcoincore: Bump to 0.11.1 (diff)
downloadgentoo-20bb60b58d093a22f9d875a28f6a80ff3d5aea8b.tar.gz
gentoo-20bb60b58d093a22f9d875a28f6a80ff3d5aea8b.tar.bz2
gentoo-20bb60b58d093a22f9d875a28f6a80ff3d5aea8b.zip
bitcoincore 0.11.1 & 9999: hasufell's suggestions
Diffstat (limited to 'net-p2p/bitcoin-qt')
-rw-r--r--net-p2p/bitcoin-qt/bitcoin-qt-0.11.1.ebuild16
-rw-r--r--net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild16
2 files changed, 20 insertions, 12 deletions
diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.11.1.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.11.1.ebuild
index d2618cfd98f..28a0513b031 100644
--- a/net-p2p/bitcoin-qt/bitcoin-qt-0.11.1.ebuild
+++ b/net-p2p/bitcoin-qt/bitcoin-qt-0.11.1.ebuild
@@ -33,12 +33,12 @@ RDEPEND="
DEPEND="${RDEPEND}
qt5? ( dev-qt/linguist-tools:5 )
"
-REQUIRED_USE="${REQUIRED_USE} ^^ ( qt4 qt5 )"
+REQUIRED_USE="^^ ( qt4 qt5 )"
src_prepare() {
bitcoincore_prepare
- local filt= yeslang= nolang=
+ local filt= yeslang= nolang= lan ts x
for lan in $LANGS; do
if [ ! -e src/qt/locale/bitcoin_$lan.ts ]; then
@@ -46,21 +46,21 @@ src_prepare() {
fi
done
- for ts in $(ls src/qt/locale/*.ts)
+ for ts in src/qt/locale/*.ts
do
x="${ts/*bitcoin_/}"
x="${x/.ts/}"
if ! use "linguas_$x"; then
nolang="$nolang $x"
- rm "$ts"
+ rm "$ts" || die
filt="$filt\\|$x"
else
yeslang="$yeslang $x"
fi
done
filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
- sed "/${filt}/d" -i 'src/qt/bitcoin_locale.qrc'
- sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include'
+ sed "/${filt}/d" -i 'src/qt/bitcoin_locale.qrc' || die
+ sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include' || die
einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
bitcoincore_autoreconf
@@ -89,6 +89,10 @@ src_install() {
fi
}
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
update_caches() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update
diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild
index 6f9997e672a..202dbe52792 100644
--- a/net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild
+++ b/net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild
@@ -30,12 +30,12 @@ RDEPEND="
DEPEND="${RDEPEND}
qt5? ( dev-qt/linguist-tools:5 )
"
-REQUIRED_USE="${REQUIRED_USE} ^^ ( qt4 qt5 )"
+REQUIRED_USE="^^ ( qt4 qt5 )"
src_prepare() {
bitcoincore_prepare
- local filt= yeslang= nolang=
+ local filt= yeslang= nolang= lan ts x
for lan in $LANGS; do
if [ ! -e src/qt/locale/bitcoin_$lan.ts ]; then
@@ -43,21 +43,21 @@ src_prepare() {
fi
done
- for ts in $(ls src/qt/locale/*.ts)
+ for ts in src/qt/locale/*.ts
do
x="${ts/*bitcoin_/}"
x="${x/.ts/}"
if ! use "linguas_$x"; then
nolang="$nolang $x"
- rm "$ts"
+ rm "$ts" || die
filt="$filt\\|$x"
else
yeslang="$yeslang $x"
fi
done
filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
- sed "/${filt}/d" -i 'src/qt/bitcoin_locale.qrc'
- sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include'
+ sed "/${filt}/d" -i 'src/qt/bitcoin_locale.qrc' || die
+ sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include' || die
einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
bitcoincore_autoreconf
@@ -86,6 +86,10 @@ src_install() {
fi
}
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
update_caches() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update