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