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