Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/litecoin-qt: litecoin-qt-0.8.7.2.ebuild ChangeLog litecoin-qt-0.8.5.3_rc3.ebuild litecoin-qt-0.8.6.1.ebuild
Date: Thu, 28 Aug 2014 23:09:02
Message-Id: 20140828230858.9BBBE41CE@oystercatcher.gentoo.org
1 blueness 14/08/28 23:08:58
2
3 Modified: ChangeLog
4 Added: litecoin-qt-0.8.7.2.ebuild
5 Removed: litecoin-qt-0.8.5.3_rc3.ebuild
6 litecoin-qt-0.8.6.1.ebuild
7 Log:
8 Version bump, remove older
9
10 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
11
12 Revision Changes Path
13 1.5 net-p2p/litecoin-qt/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoin-qt/ChangeLog?rev=1.5&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoin-qt/ChangeLog?rev=1.5&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoin-qt/ChangeLog?r1=1.4&r2=1.5
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-p2p/litecoin-qt/ChangeLog,v
22 retrieving revision 1.4
23 retrieving revision 1.5
24 diff -u -r1.4 -r1.5
25 --- ChangeLog 10 Aug 2014 20:37:19 -0000 1.4
26 +++ ChangeLog 28 Aug 2014 23:08:58 -0000 1.5
27 @@ -1,6 +1,13 @@
28 # ChangeLog for net-p2p/litecoin-qt
29 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/litecoin-qt/ChangeLog,v 1.4 2014/08/10 20:37:19 slyfox Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/litecoin-qt/ChangeLog,v 1.5 2014/08/28 23:08:58 blueness Exp $
32 +
33 +*litecoin-qt-0.8.7.2 (28 Aug 2014)
34 +
35 + 28 Aug 2014; Anthony G. Basile <blueness@g.o>
36 + +litecoin-qt-0.8.7.2.ebuild, -litecoin-qt-0.8.5.3_rc3.ebuild,
37 + -litecoin-qt-0.8.6.1.ebuild:
38 + Version bump, remove older
39
40 10 Aug 2014; Sergei Trofimovich <slyfox@g.o>
41 litecoin-qt-0.8.5.3_rc3.ebuild, litecoin-qt-0.8.6.1.ebuild,
42
43
44
45 1.1 net-p2p/litecoin-qt/litecoin-qt-0.8.7.2.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoin-qt/litecoin-qt-0.8.7.2.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoin-qt/litecoin-qt-0.8.7.2.ebuild?rev=1.1&content-type=text/plain
49
50 Index: litecoin-qt-0.8.7.2.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-p2p/litecoin-qt/litecoin-qt-0.8.7.2.ebuild,v 1.1 2014/08/28 23:08:58 blueness Exp $
55
56 EAPI=5
57
58 DB_VER="4.8"
59
60 LANGS="af_ZA ar bg bs ca ca_ES cs cy da de el_GR en eo es es_CL et eu_ES fa fa_IR fi fr fr_CA gu_IN he hi_IN hr hu it ja la lt lv_LV nb nl pl pt_BR pt_PT ro_RO ru sk sr sv th_TH tr uk zh_CN zh_TW"
61 inherit db-use eutils fdo-mime gnome2-utils kde4-functions qt4-r2
62
63 MyPV="${PV/_/-}"
64 MyPN="litecoin"
65 MyP="${MyPN}-${MyPV}"
66
67 DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine"
68 HOMEPAGE="https://litecoin.org/"
69 SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyP}.tar.gz"
70
71 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain || ( CC-BY-SA-3.0 LGPL-2.1 )"
72 SLOT="0"
73 KEYWORDS="~amd64 ~x86"
74 IUSE="dbus ipv6 kde +qrcode upnp"
75
76 RDEPEND="
77 dev-libs/boost[threads(+)]
78 dev-libs/openssl:0[-bindist]
79 qrcode? (
80 media-gfx/qrencode
81 )
82 upnp? (
83 net-libs/miniupnpc
84 )
85 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
86 <=dev-libs/leveldb-1.12.0[-snappy]
87 dev-qt/qtgui:4
88 dbus? (
89 dev-qt/qtdbus:4
90 )
91 "
92 DEPEND="${RDEPEND}
93 >=app-shells/bash-4.1
94 "
95
96 DOCS="doc/README.md doc/release-notes.md"
97
98 S="${WORKDIR}/${MyP}"
99
100 src_prepare() {
101 epatch "${FILESDIR}"/${MyPN}-sys_leveldb.patch
102 rm -r src/leveldb
103
104 cd src || die
105
106 local filt= yeslang= nolang=
107
108 for lan in $LANGS; do
109 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
110 ewarn "Language '$lan' no longer supported. Ebuild needs update."
111 fi
112 done
113
114 for ts in $(ls qt/locale/*.ts)
115 do
116 x="${ts/*bitcoin_/}"
117 x="${x/.ts/}"
118 if ! use "linguas_$x"; then
119 nolang="$nolang $x"
120 rm "$ts"
121 filt="$filt\\|$x"
122 else
123 yeslang="$yeslang $x"
124 fi
125 done
126
127 filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
128 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
129 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
130 }
131
132 src_configure() {
133 OPTS=()
134
135 use dbus && OPTS+=("USE_DBUS=1")
136 if use upnp; then
137 OPTS+=("USE_UPNP=1")
138 else
139 OPTS+=("USE_UPNP=-")
140 fi
141
142 use qrcode && OPTS+=("USE_QRCODE=1")
143 use ipv6 || OPTS+=("USE_IPV6=-")
144
145 OPTS+=("USE_SYSTEM_LEVELDB=1")
146 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
147 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
148
149 if has_version '>=dev-libs/boost-1.52'; then
150 OPTS+=("LIBS+=-lboost_chrono\$\$BOOST_LIB_SUFFIX")
151 fi
152
153 #The litecoin codebase is mostly taken from bitcoin-qt
154 eqmake4 bitcoin-qt.pro "${OPTS[@]}"
155 }
156
157 #Tests are broken with and without our litecoin-sys_leveldb.patch
158 #src_test() {
159 # cd src || die
160 # emake -f makefile.unix "${OPTS[@]}" test_litecoin
161 # ./test_litecoin || die 'Tests failed'
162 #}
163
164 src_install() {
165 qt4-r2_src_install
166
167 dobin ${PN}
168
169 insinto /usr/share/pixmaps
170 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
171
172 make_desktop_entry "${PN} %u" "Litecoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;Office;Finance;" "MimeType=x-scheme-handler/litecoin;\nTerminal=false"
173
174 newman contrib/debian/manpages/bitcoin-qt.1 ${PN}.1
175
176 if use kde; then
177 insinto /usr/share/kde4/services
178 newins contrib/debian/bitcoin-qt.protocol ${PN}.protocol
179 fi
180 }
181
182 update_caches() {
183 gnome2_icon_cache_update
184 fdo-mime_desktop_database_update
185 buildsycoca
186 }
187
188 pkg_postinst() {
189 update_caches
190 }
191
192 pkg_postrm() {
193 update_caches
194 }