/[gentoo-x86]/net-p2p/bitcoin-qt/bitcoin-qt-0.6.0_rc5.ebuild
Gentoo

Contents of /net-p2p/bitcoin-qt/bitcoin-qt-0.6.0_rc5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 4 13:54:36 2012 UTC (2 years, 4 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumps

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.6.0_rc5.ebuild,v 1.1 2012/03/26 22:54:24 blueness Exp $
4
5 EAPI="4"
6
7 DB_VER="4.8"
8
9 LANGS="ca_ES cs da de en es es_CL et eu_ES fa fa_IR fi fr_CA fr_FR hr hu it lt nb nl pl pt_BR ro_RO ru sk sr sv tr uk zh_CN zh_TW"
10 inherit db-use eutils qt4-r2 versionator
11
12 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
13 HOMEPAGE="http://bitcoin.org/"
14 SRC_URI="https://nodeload.github.com/bitcoin/bitcoin/tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
15 "
16
17 LICENSE="MIT ISC GPL-3 md2k7-asyouwish LGPL-2.1 public-domain"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="$IUSE 1stclassmsg dbus +eligius +qrcode ssl upnp"
21
22 RDEPEND="
23 >=dev-libs/boost-1.41.0
24 dev-libs/openssl[-bindist]
25 qrcode? (
26 media-gfx/qrencode
27 )
28 upnp? (
29 net-libs/miniupnpc
30 )
31 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
32 x11-libs/qt-gui
33 dbus? (
34 x11-libs/qt-dbus
35 )
36 "
37 DEPEND="${RDEPEND}
38 >=app-shells/bash-4.1
39 "
40
41 DOCS="doc/README"
42
43 S="${WORKDIR}/bitcoin-bitcoin-5b22438"
44
45 src_prepare() {
46 cd src || die
47 use eligius && epatch "${FILESDIR}/9999-eligius_sendfee.patch"
48
49 local filt= yeslang= nolang=
50
51 for lan in $LANGS; do
52 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
53 ewarn "Language '$lan' no longer supported. Ebuild needs update."
54 fi
55 done
56
57 for ts in $(ls qt/locale/*.ts)
58 do
59 x="${ts/*bitcoin_/}"
60 x="${x/.ts/}"
61 if ! use "linguas_$x"; then
62 nolang="$nolang $x"
63 rm "$ts"
64 filt="$filt\\|$x"
65 else
66 yeslang="$yeslang $x"
67 fi
68 done
69 filt="bitcoin_\\(${filt:2}\\)\\.qm"
70 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
71 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
72 }
73
74 src_configure() {
75 OPTS=()
76 local BOOST_PKG BOOST_VER
77
78 use dbus && OPTS+=("USE_DBUS=1")
79 use ssl && OPTS+=("DEFINES+=USE_SSL")
80 if use upnp; then
81 OPTS+=("USE_UPNP=1")
82 else
83 OPTS+=("USE_UPNP=-")
84 fi
85 use qrcode && OPTS+=("USE_QRCODE=1")
86 use 1stclassmsg && OPTS+=("FIRST_CLASS_MESSAGING=1")
87
88 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
89 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
90
91 BOOST_PKG="$(best_version 'dev-libs/boost')"
92 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
93 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
94 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
95 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
96
97 eqmake4 "${PN}.pro" "${OPTS[@]}"
98 }
99
100 src_compile() {
101 emake
102 }
103
104 src_test() {
105 cd src || die
106 emake -f makefile.unix "${OPTS[@]}" test_bitcoin
107 ./test_bitcoin || die 'Tests failed'
108 }
109
110 src_install() {
111 qt4-r2_src_install
112 dobin ${PN}
113 insinto /usr/share/pixmaps
114 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
115 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
116 }

  ViewVC Help
Powered by ViewVC 1.1.20