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