/[gentoo-x86]/net-p2p/qbittorrent/qbittorrent-3.0.0_rc4.ebuild
Gentoo

Contents of /net-p2p/qbittorrent/qbittorrent-3.0.0_rc4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 11 18:29:19 2012 UTC (7 years, 4 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.11.5/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/qbittorrent/qbittorrent-3.0.0_rc4.ebuild,v 1.1 2012/07/09 17:19:42 hwoarang Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2"
7
8 inherit python qt4-r2 versionator
9
10 MY_P="${P/_/}"
11 DESCRIPTION="BitTorrent client in C++ and Qt"
12 HOMEPAGE="http://www.qbittorrent.org/"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="dbus +X geoip"
19
20 QT_MIN="4.6.1"
21 # boost version so that we always have thread support
22 CDEPEND="net-libs/rb_libtorrent
23 >=x11-libs/qt-core-${QT_MIN}:4
24 X? ( >=x11-libs/qt-gui-${QT_MIN}:4 )
25 dbus? ( >=x11-libs/qt-dbus-${QT_MIN}:4 )
26 dev-libs/boost"
27 DEPEND="${CDEPEND}
28 virtual/pkgconfig"
29 RDEPEND="${CDEPEND}
30 geoip? ( dev-libs/geoip )"
31
32 DOCS="AUTHORS Changelog NEWS README TODO"
33
34 S="${WORKDIR}/${MY_P}"
35
36 pkg_setup() {
37 python_set_active_version 2
38 python_pkg_setup
39 }
40
41 src_prepare() {
42 # Respect LDFLAGS
43 sed -i -e 's/-Wl,--as-needed/$(LDFLAGS)/g' src/src.pro
44 qt4-r2_src_prepare
45 }
46
47 src_configure() {
48 local myconf
49 use X || myconf+=" --disable-gui"
50 use geoip || myconf+=" --disable-geoip-database"
51 use dbus || myconf+=" --disable-qt-dbus"
52
53 # slotted boost detection, bug #309415
54 BOOST_PKG="$(best_version ">=dev-libs/boost-1.34.1")"
55 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
56 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
57 myconf+=" --with-libboost-inc=/usr/include/boost-${BOOST_VER}"
58
59 # econf fails, since this uses qconf
60 ./configure --prefix=/usr --qtdir=/usr ${myconf} || die "configure failed"
61 eqmake4
62 }

  ViewVC Help
Powered by ViewVC 1.1.20