From: | "Anthony G. Basile (blueness)" <blueness@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-p2p/bitcoin-qt: metadata.xml ChangeLog bitcoin-qt-0.5.1.ebuild |
Date: | Fri, 23 Dec 2011 19:38:21 |
Message-Id: | 20111223193811.363A52004B@flycatcher.gentoo.org |
1 | blueness 11/12/23 19:38:11 |
2 | |
3 | Added: metadata.xml ChangeLog bitcoin-qt-0.5.1.ebuild |
4 | Log: |
5 | Initial commit, proxy maintaining for Luke Dashjr, bug #328391 |
6 | |
7 | (Portage version: 2.1.10.41/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-p2p/bitcoin-qt/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-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 | <maintainer> |
25 | <email>luke_gentoo_bitcoin@××××××.org</email> |
26 | <name>Luke Dashjr</name> |
27 | </maintainer> |
28 | <use> |
29 | <flag name='eligius'>Enable using lower fees accepted by Eligius</flag> |
30 | <flag name='upnp'>Enable Universal Plug and Play</flag> |
31 | </use> |
32 | </pkgmetadata> |
33 | |
34 | |
35 | |
36 | 1.1 net-p2p/bitcoin-qt/ChangeLog |
37 | |
38 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?rev=1.1&view=markup |
39 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?rev=1.1&content-type=text/plain |
40 | |
41 | Index: ChangeLog |
42 | =================================================================== |
43 | |
44 | |
45 | *bitcoin-qt-0.5.1 (23 Dec 2011) |
46 | |
47 | 23 Dec 2011; Anthony G. Basile <blueness@g.o> |
48 | +bitcoin-qt-0.5.1.ebuild, +metadata.xml: |
49 | Initial commit, proxy maintaining for Luke Dashjr, bug #328391 |
50 | |
51 | |
52 | |
53 | |
54 | 1.1 net-p2p/bitcoin-qt/bitcoin-qt-0.5.1.ebuild |
55 | |
56 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.1.ebuild?rev=1.1&view=markup |
57 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.1.ebuild?rev=1.1&content-type=text/plain |
58 | |
59 | Index: bitcoin-qt-0.5.1.ebuild |
60 | =================================================================== |
61 | # Copyright 1999-2011 Gentoo Foundation |
62 | # Distributed under the terms of the GNU General Public License v2 |
63 | # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.1.ebuild,v 1.1 2011/12/23 19:38:11 blueness Exp $ |
64 | |
65 | EAPI=4 |
66 | |
67 | DB_VER="4.8" |
68 | |
69 | LANGS="da de en es es_CL hu it nb nl pt_BR ru uk zh_CN zh_TW" |
70 | inherit db-use eutils qt4-r2 versionator |
71 | |
72 | DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency" |
73 | HOMEPAGE="http://bitcoin.org/" |
74 | SRC_URI="https://github.com/bitcoin/bitcoin/tarball/v${PV/_/} -> bitcoin-v${PV}.tgz |
75 | eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.5-eligius_sendfee.patch ) |
76 | " |
77 | |
78 | LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain" |
79 | SLOT="0" |
80 | KEYWORDS="~amd64 ~arm ~x86" |
81 | IUSE="$IUSE dbus +eligius ssl upnp" |
82 | |
83 | RDEPEND=" |
84 | >=dev-libs/boost-1.41.0 |
85 | dev-libs/openssl[-bindist] |
86 | upnp? ( |
87 | net-libs/miniupnpc |
88 | ) |
89 | sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] |
90 | x11-libs/qt-gui |
91 | dbus? ( |
92 | x11-libs/qt-dbus |
93 | ) |
94 | " |
95 | DEPEND="${RDEPEND} |
96 | >=app-shells/bash-4.1 |
97 | " |
98 | |
99 | DOCS="doc/README" |
100 | |
101 | S="${WORKDIR}/bitcoin-bitcoin-5623ee7" |
102 | |
103 | src_prepare() { |
104 | cd src || die |
105 | use eligius && epatch "${DISTDIR}/0.5-eligius_sendfee.patch" |
106 | |
107 | local filt= yeslang= nolang= |
108 | |
109 | for lan in $LANGS; do |
110 | if [ ! -e qt/locale/bitcoin_$lan.ts ]; then |
111 | ewarn "Language '$lan' no longer supported. Ebuild needs update." |
112 | fi |
113 | done |
114 | |
115 | for ts in $(ls qt/locale/*.ts) |
116 | do |
117 | x="${ts/*bitcoin_/}" |
118 | x="${x/.ts/}" |
119 | if ! use "linguas_$x"; then |
120 | nolang="$nolang $x" |
121 | rm "$ts" |
122 | filt="$filt\\|$x" |
123 | else |
124 | yeslang="$yeslang $x" |
125 | fi |
126 | done |
127 | filt="bitcoin_\\(${filt:2}\\)\\.qm" |
128 | sed "/${filt}/d" -i 'qt/bitcoin.qrc' |
129 | einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang" |
130 | } |
131 | |
132 | src_configure() { |
133 | local OPTS=() |
134 | local BOOST_PKG BOOST_VER |
135 | |
136 | use dbus && OPTS+=("USE_DBUS=1") |
137 | use ssl && OPTS+=("DEFINES+=USE_SSL") |
138 | if use upnp; then |
139 | OPTS+=("USE_UPNP=1") |
140 | else |
141 | OPTS+=("USE_UPNP=-") |
142 | fi |
143 | |
144 | OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
145 | OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
146 | |
147 | BOOST_PKG="$(best_version 'dev-libs/boost')" |
148 | BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" |
149 | BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" |
150 | OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}") |
151 | OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}") |
152 | |
153 | eqmake4 "${PN}.pro" "${OPTS[@]}" |
154 | } |
155 | |
156 | src_compile() { |
157 | emake |
158 | } |
159 | |
160 | src_install() { |
161 | qt4-r2_src_install |
162 | dobin ${PN} |
163 | insinto /usr/share/pixmaps |
164 | newins "share/pixmaps/bitcoin.ico" "${PN}.ico" |
165 | make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P" |
166 | } |