diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2017-01-03 03:44:25 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-01-05 09:07:53 -0500 |
commit | 68522f523411aeac4ce5e54120dc0d8362f44289 (patch) | |
tree | 9feaf9e3dd33bae345d8f6633f706deeefa3aaf0 /net-p2p/bitcoin-qt/bitcoin-qt-0.13.2.ebuild | |
parent | dev-libs/libsecp256k1: Bump to 0.0.0_pre20161213 (and update 9999) (diff) | |
download | gentoo-68522f523411aeac4ce5e54120dc0d8362f44289.tar.gz gentoo-68522f523411aeac4ce5e54120dc0d8362f44289.tar.bz2 gentoo-68522f523411aeac4ce5e54120dc0d8362f44289.zip |
Bitcoin 0.13.2
Diffstat (limited to 'net-p2p/bitcoin-qt/bitcoin-qt-0.13.2.ebuild')
-rw-r--r-- | net-p2p/bitcoin-qt/bitcoin-qt-0.13.2.ebuild | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.13.2.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.13.2.ebuild new file mode 100644 index 000000000000..30cc24aa0700 --- /dev/null +++ b/net-p2p/bitcoin-qt/bitcoin-qt-0.13.2.ebuild @@ -0,0 +1,131 @@ +# Copyright 2010-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +BITCOINCORE_COMMITHASH="0d719145b018e28d48d35c2646a5962b87c60436" +BITCOINCORE_LJR_DATE="20170102" +BITCOINCORE_IUSE="dbus kde +libevent ljr +qrcode qt5 +http test +tor upnp +wallet zeromq" +BITCOINCORE_POLICY_PATCHES="+rbf spamfilter" +LANGS="af af_ZA ar be_BY bg bg_BG ca ca@valencia ca_ES cs cs_CZ cy da de el el_GR en en_GB eo es es_AR es_CL es_CO es_DO es_ES es_MX es_UY es_VE et et_EE eu_ES fa fa_IR fi fr fr_CA fr_FR gl he hi_IN hr hu id_ID it it_IT ja ka kk_KZ ko_KR ku_IQ ky la lt lv_LV mk_MK mn ms_MY nb ne nl nl_NL pam pl pt_BR pt_PT ro ro_RO ru ru_RU sk sl_SI sq sr sr@latin sv ta th_TH tr tr_TR uk ur_PK uz@Cyrl vi vi_VN zh zh_CN zh_HK zh_TW" +KNOTS_LANGS="et_EE nl_NL" +BITCOINCORE_NEED_LEVELDB=1 +BITCOINCORE_NEED_LIBSECP256K1=1 +inherit bitcoincore eutils fdo-mime gnome2-utils kde4-functions qt4-r2 + +DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-libs/protobuf + qrcode? ( + media-gfx/qrencode + ) + !qt5? ( dev-qt/qtcore:4[ssl] dev-qt/qtgui:4 ) + qt5? ( dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 ) + dbus? ( + !qt5? ( dev-qt/qtdbus:4 ) + qt5? ( dev-qt/qtdbus:5 ) + ) +" +DEPEND="${RDEPEND} + qt5? ( dev-qt/linguist-tools:5 ) + ljr? ( + gnome-base/librsvg + media-gfx/imagemagick[png] + ) +" +REQUIRED_USE=" + http? ( libevent ) tor? ( libevent ) libevent? ( http tor ) + !libevent? ( ljr ) +" + +for lang in ${KNOTS_LANGS}; do + REQUIRED_USE="${REQUIRED_USE} linguas_${lang}? ( ljr )" +done + +src_prepare() { + bitcoincore_prepare + + local filt= yeslang= nolang= lan ts x + + for lan in $LANGS; do + if [ ! -e src/qt/locale/bitcoin_$lan.ts ]; then + if has $lan $KNOTS_LANGS && ! use ljr; then + # Expected + continue + fi + die "Language '$lan' no longer supported. Ebuild needs update." + fi + done + + for ts in src/qt/locale/*.ts + do + x="${ts/*bitcoin_/}" + x="${x/.ts/}" + if ! use "linguas_$x"; then + nolang="$nolang $x" + 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' || die + sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include' || die + einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang" + + bitcoincore_autoreconf +} + +src_configure() { + bitcoincore_conf \ + $(use_with dbus qtdbus) \ + $(use_with qrcode qrencode) \ + --with-gui=$(usex qt5 qt5 qt4) +} + +src_install() { + bitcoincore_src_install + + insinto /usr/share/pixmaps + if use ljr; then + newins "src/qt/res/rendered_icons/bitcoin.ico" "${PN}.ico" + else + newins "share/pixmaps/bitcoin.ico" "${PN}.ico" + fi + make_desktop_entry "${PN} %u" "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;Office;Finance;" "MimeType=x-scheme-handler/bitcoin;\nTerminal=false" + + dodoc doc/assets-attribution.md doc/bips.md doc/tor.md + doman contrib/debian/manpages/bitcoin-qt.1 + + use zeromq && dodoc doc/zmq.md + + if use kde; then + insinto /usr/share/kde4/services + doins contrib/debian/bitcoin-qt.protocol + dosym "../kde4/services/bitcoin-qt.protocol" "/usr/share/kservices5/bitcoin-qt.protocol" + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +update_caches() { + gnome2_icon_cache_update + fdo-mime_desktop_database_update + buildsycoca +} + +pkg_postinst() { + update_caches +} + +pkg_postrm() { + update_caches +} |