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