/[gentoo-x86]/net-p2p/bitcoin-qt/bitcoin-qt-0.5.2_rc1.ebuild
Gentoo

Contents of /net-p2p/bitcoin-qt/bitcoin-qt-0.5.2_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 11 15:54:07 2012 UTC (2 years, 11 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bumps from release candidates

(Portage version: 2.1.10.41/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.5.2_rc1.ebuild,v 1.1 2012/01/06 17:21:30 blueness Exp $
4
5 EAPI=4
6
7 DB_VER="4.8"
8
9 LANGS="da de en es es_CL hu it nb nl pt_BR ru 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="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
15 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.5.2-eligius_sendfee.patch.xz )
16 "
17
18 LICENSE="MIT ISC GPL-3 md2k7-asyouwish LGPL-2.1 public-domain"
19 SLOT="0"
20 KEYWORDS="~amd64 ~arm ~x86"
21 IUSE="$IUSE dbus +eligius ssl upnp"
22
23 RDEPEND="
24 >=dev-libs/boost-1.41.0
25 dev-libs/openssl[-bindist]
26 upnp? (
27 net-libs/miniupnpc
28 )
29 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
30 x11-libs/qt-gui
31 dbus? (
32 x11-libs/qt-dbus
33 )
34 "
35 DEPEND="${RDEPEND}
36 >=app-shells/bash-4.1
37 "
38
39 DOCS="doc/README"
40
41 S="${WORKDIR}/bitcoin-bitcoind-stable"
42
43 src_prepare() {
44 cd src || die
45 use eligius && epatch "${WORKDIR}/0.5.2-eligius_sendfee.patch"
46
47 local filt= yeslang= nolang=
48
49 for lan in $LANGS; do
50 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
51 ewarn "Language '$lan' no longer supported. Ebuild needs update."
52 fi
53 done
54
55 for ts in $(ls qt/locale/*.ts)
56 do
57 x="${ts/*bitcoin_/}"
58 x="${x/.ts/}"
59 if ! use "linguas_$x"; then
60 nolang="$nolang $x"
61 rm "$ts"
62 filt="$filt\\|$x"
63 else
64 yeslang="$yeslang $x"
65 fi
66 done
67 filt="bitcoin_\\(${filt:2}\\)\\.qm"
68 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
69 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
70 }
71
72 src_configure() {
73 local OPTS=()
74 local BOOST_PKG BOOST_VER
75
76 use dbus && OPTS+=("USE_DBUS=1")
77 use ssl && OPTS+=("DEFINES+=USE_SSL")
78 if use upnp; then
79 OPTS+=("USE_UPNP=1")
80 else
81 OPTS+=("USE_UPNP=-")
82 fi
83
84 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
85 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
86
87 BOOST_PKG="$(best_version 'dev-libs/boost')"
88 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
89 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
90 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
91 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
92
93 eqmake4 "${PN}.pro" "${OPTS[@]}"
94 }
95
96 src_compile() {
97 emake
98 }
99
100 src_install() {
101 qt4-r2_src_install
102 dobin ${PN}
103 insinto /usr/share/pixmaps
104 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
105 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
106 }

  ViewVC Help
Powered by ViewVC 1.1.20