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