| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2013 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/Attic/bitcoin-qt-0.6.0.10_rc3.ebuild,v 1.1 2012/10/08 18:26:45 blueness Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/Attic/bitcoin-qt-0.6.0.10_rc3.ebuild,v 1.2 2013/01/13 22:40:35 blueness Exp $ |
| 4 | |
4 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | |
6 | |
| 7 | DB_VER="4.8" |
7 | DB_VER="4.8" |
| 8 | |
8 | |
| … | |
… | |
| 19 | SLOT="0" |
19 | SLOT="0" |
| 20 | KEYWORDS="~amd64 ~arm ~x86" |
20 | KEYWORDS="~amd64 ~arm ~x86" |
| 21 | IUSE="$IUSE 1stclassmsg dbus +eligius +qrcode ssl upnp" |
21 | IUSE="$IUSE 1stclassmsg dbus +eligius +qrcode ssl upnp" |
| 22 | |
22 | |
| 23 | RDEPEND=" |
23 | RDEPEND=" |
| 24 | >=dev-libs/boost-1.41.0 |
24 | >=dev-libs/boost-1.41.0[threads(+)] |
| 25 | dev-libs/openssl[-bindist] |
25 | dev-libs/openssl[-bindist] |
| 26 | qrcode? ( |
26 | qrcode? ( |
| 27 | media-gfx/qrencode |
27 | media-gfx/qrencode |
| 28 | ) |
28 | ) |
| 29 | upnp? ( |
29 | upnp? ( |
| … | |
… | |
| 72 | einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang" |
72 | einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang" |
| 73 | } |
73 | } |
| 74 | |
74 | |
| 75 | src_configure() { |
75 | src_configure() { |
| 76 | OPTS=() |
76 | OPTS=() |
| 77 | local BOOST_PKG BOOST_VER |
|
|
| 78 | |
77 | |
| 79 | use dbus && OPTS+=("USE_DBUS=1") |
78 | use dbus && OPTS+=("USE_DBUS=1") |
| 80 | use ssl && OPTS+=("DEFINES+=USE_SSL") |
79 | use ssl && OPTS+=("DEFINES+=USE_SSL") |
| 81 | if use upnp; then |
80 | if use upnp; then |
| 82 | OPTS+=("USE_UPNP=1") |
81 | OPTS+=("USE_UPNP=1") |
| … | |
… | |
| 86 | use qrcode && OPTS+=("USE_QRCODE=1") |
85 | use qrcode && OPTS+=("USE_QRCODE=1") |
| 87 | use 1stclassmsg && OPTS+=("FIRST_CLASS_MESSAGING=1") |
86 | use 1stclassmsg && OPTS+=("FIRST_CLASS_MESSAGING=1") |
| 88 | |
87 | |
| 89 | OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
88 | OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
| 90 | OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
89 | OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
| 91 | |
|
|
| 92 | BOOST_PKG="$(best_version 'dev-libs/boost')" |
|
|
| 93 | BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" |
|
|
| 94 | BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" |
|
|
| 95 | OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}") |
|
|
| 96 | OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}") |
|
|
| 97 | |
90 | |
| 98 | eqmake4 "${PN}.pro" "${OPTS[@]}" |
91 | eqmake4 "${PN}.pro" "${OPTS[@]}" |
| 99 | } |
92 | } |
| 100 | |
93 | |
| 101 | src_compile() { |
94 | src_compile() { |