Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoin-qt/
Date: Thu, 25 Aug 2016 18:13:17
Message-Id: 1472148695.32f13e2308cadeeca8c7236ba9c824ed07b9abf6.blueness@gentoo
1 commit: 32f13e2308cadeeca8c7236ba9c824ed07b9abf6
2 Author: Marc Popp <Marc.Popp <AT> sunny-computing <DOT> de>
3 AuthorDate: Thu Aug 25 16:47:17 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 18:11:35 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f13e23
7
8 net-p2p/litecoin-qt: Version Bump to 0.10.4.0, bug #592112
9
10 net-p2p/litecoin-qt/Manifest | 1 +
11 net-p2p/litecoin-qt/litecoin-qt-0.10.4.0.ebuild | 148 ++++++++++++++++++++++++
12 2 files changed, 149 insertions(+)
13
14 diff --git a/net-p2p/litecoin-qt/Manifest b/net-p2p/litecoin-qt/Manifest
15 index 992235c..a1d9c8d 100644
16 --- a/net-p2p/litecoin-qt/Manifest
17 +++ b/net-p2p/litecoin-qt/Manifest
18 @@ -1 +1,2 @@
19 DIST litecoin-0.10.2.2.tar.gz 4700783 SHA256 952c84b181323db17a8fa23217f59b576ad3ebad92c158b3a7c29d458a1130dc SHA512 46e4c014ae8527dd58af073bab96ea4fd55c69fcc63eaa4fd600bf3c1fc2102500151b49431a72b55334a409d4f5226937cd0c5337feaa4ad49e6ef9e9728aba WHIRLPOOL 5c1d5605d4afb16744fcf0b09dd52eb574aea0cdd9754f94d4cfd9ac064491a0e192d8c4b1a3324e355d71758735265b272dfa41f938212e17badb9f8a70698b
20 +DIST litecoin-0.10.4.0.tar.gz 4730189 SHA256 a9adb6d2ae555afdaa2a5febb81341ac506930cf04ab95b9dc3ab99a4de0405e SHA512 ae17e754d188efb1b51a376a52fe03e43b58c5059673b7dd4ecbf4f48574290b84011525fef2e10893f53e4da3d6ad9b5577001bb40aef7080d4c2479f4714a9 WHIRLPOOL 21737a593390cd8ef41e5adb77e6cd5ccb886bdbc8d2ea96078bac99ffab5c95347cd86f1e9047b5ee528a112bfe3ae0e5ef5be3498b7aa36ec169bdfdaf4818
21
22 diff --git a/net-p2p/litecoin-qt/litecoin-qt-0.10.4.0.ebuild b/net-p2p/litecoin-qt/litecoin-qt-0.10.4.0.ebuild
23 new file mode 100644
24 index 00000000..cf6fdd6
25 --- /dev/null
26 +++ b/net-p2p/litecoin-qt/litecoin-qt-0.10.4.0.ebuild
27 @@ -0,0 +1,148 @@
28 +# Copyright 1999-2016 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +EAPI=5
33 +
34 +DB_VER="4.8"
35 +
36 +LANGS="ach af_ZA ar be_BY bg bs ca_ES ca ca@valencia cmn cs cy da de el_GR en eo es_CL es_DO es_MX es es_UY et eu_ES fa_IR fa fi fr_CA fr gl gu_IN he hi_IN hr hu id_ID it ja ka kk_KZ ko_KR ky la lt lv_LV mn ms_MY nb nl pam pl pt_BR pt_PT ro_RO ru sah sk sl_SI sq sr sv th_TH tr uk ur_PK uz@Cyrl vi vi_VN zh_CN zh_HK zh_TW"
37 +
38 +inherit autotools db-use eutils fdo-mime gnome2-utils kde4-functions qt4-r2
39 +
40 +MyPV="${PV/_/-}"
41 +MyPN="litecoin"
42 +MyP="${MyPN}-${MyPV}"
43 +
44 +DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine"
45 +HOMEPAGE="https://litecoin.org/"
46 +SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyP}.tar.gz"
47 +
48 +LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain || ( CC-BY-SA-3.0 LGPL-2.1 )"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="dbus kde +qrcode qt5 upnp"
52 +
53 +RDEPEND="
54 + dev-libs/boost[threads(+)]
55 + dev-libs/openssl:0[-bindist]
56 + dev-libs/protobuf:=
57 + qrcode? (
58 + media-gfx/qrencode
59 + )
60 + upnp? (
61 + net-libs/miniupnpc
62 + )
63 + sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
64 + >=dev-libs/leveldb-1.18-r1
65 + !qt5? (
66 + dev-qt/qtcore:4[ssl]
67 + dev-qt/qtgui:4
68 + dbus? (
69 + dev-qt/qtdbus:4
70 + )
71 + )
72 + qt5? (
73 + dev-qt/qtnetwork:5[ssl]
74 + dev-qt/qtgui:5
75 + dbus? (
76 + dev-qt/qtdbus:5
77 + )
78 + )
79 +"
80 +DEPEND="${RDEPEND}
81 + >=app-shells/bash-4.1
82 +"
83 +
84 +DOCS="doc/README.md doc/release-notes.md"
85 +
86 +S="${WORKDIR}/${MyP}"
87 +
88 +src_prepare() {
89 + epatch "${FILESDIR}"/0.9.0-sys_leveldb.patch
90 + epatch "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
91 + epatch "${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch
92 + epatch "${FILESDIR}"/litecoin-0.10.2.2-fix-litecoin-qt_protocol.patch
93 + eautoreconf
94 + rm -r src/leveldb
95 +
96 + cd src || die
97 +
98 + local filt= yeslang= nolang=
99 +
100 + for lan in $LANGS; do
101 + if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
102 + ewarn "Language '$lan' no longer supported. Ebuild needs update."
103 + fi
104 + done
105 +
106 + for ts in $(ls qt/locale/*.ts)
107 + do
108 + x="${ts/*bitcoin_/}"
109 + x="${x/.ts/}"
110 + if ! use "linguas_$x"; then
111 + nolang="$nolang $x"
112 + #rm "$ts"
113 + filt="$filt\\|$x"
114 + else
115 + yeslang="$yeslang $x"
116 + fi
117 + done
118 +
119 + filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
120 + sed "/${filt}/d" -i 'qt/bitcoin_locale.qrc'
121 + einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
122 +}
123 +
124 +src_configure() {
125 + local my_econf=
126 + if use upnp; then
127 + my_econf="${my_econf} --with-miniupnpc --enable-upnp-default"
128 + else
129 + my_econf="${my_econf} --without-miniupnpc --disable-upnp-default"
130 + fi
131 + econf \
132 + --enable-wallet \
133 + --disable-ccache \
134 + --disable-static \
135 + --disable-tests \
136 + --with-system-leveldb \
137 + --with-system-libsecp256k1 \
138 + --without-libs \
139 + --without-utils \
140 + --without-daemon \
141 + --with-gui=$(usex qt5 qt5 qt4) \
142 + $(use_with dbus qtdbus) \
143 + $(use_with qrcode qrencode) \
144 + ${my_econf}
145 +}
146 +
147 +src_install() {
148 + default
149 +
150 + insinto /usr/share/pixmaps
151 + newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
152 +
153 + make_desktop_entry "${PN} %u" "Litecoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;Office;Finance;" "MimeType=x-scheme-handler/litecoin;\nTerminal=false"
154 +
155 + newman contrib/debian/manpages/bitcoin-qt.1 ${PN}.1
156 +
157 + if use kde; then
158 + insinto /usr/share/kde4/services
159 + newins contrib/debian/bitcoin-qt.protocol ${PN}.protocol
160 + fi
161 +}
162 +
163 +update_caches() {
164 + gnome2_icon_cache_update
165 + fdo-mime_desktop_database_update
166 + buildsycoca
167 +}
168 +
169 +pkg_postinst() {
170 + update_caches
171 +}
172 +
173 +pkg_postrm() {
174 + update_caches
175 +}