diff options
Diffstat (limited to 'net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild')
-rw-r--r-- | net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild index 6f9997e672af..202dbe527921 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 |