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

Contents of /net-p2p/qbittorrent/qbittorrent-2.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 11 22:58:10 2011 UTC (8 years, 10 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.9.30/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/qbittorrent/qbittorrent-2.6.0.ebuild,v 1.1 2011/01/09 22:27:09 hwoarang Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2"
7
8 inherit python confutils 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="+X geoip libnotify"
19
20 # boost version so that we always have thread support
21 CDEPEND="net-libs/rb_libtorrent
22 x11-libs/qt-core:4
23 x11-libs/qt-dbus:4
24 X? ( x11-libs/qt-gui:4
25 libnotify? ( x11-libs/qt-gui:4[glib] ) )
26 dev-libs/boost"
27 DEPEND="${CDEPEND}
28 dev-util/pkgconfig"
29 RDEPEND="${CDEPEND}
30 geoip? ( dev-libs/geoip )
31 libnotify? ( x11-libs/libnotify )"
32
33 DOCS="AUTHORS Changelog NEWS README TODO"
34
35 S="${WORKDIR}/${MY_P}"
36
37 pkg_setup() {
38 confutils_use_depend_all libnotify X
39 python_set_active_version 2
40 python_pkg_setup
41 }
42
43 src_prepare() {
44 # Respect LDFLAGS
45 sed -i -e 's/-Wl,--as-needed/$(LDFLAGS)/g' src/src.pro
46 qt4-r2_src_prepare
47 }
48
49 src_configure() {
50 local myconf
51 use X || myconf+=" --disable-gui"
52 use geoip || myconf+=" --disable-geoip-database"
53 use libnotify || myconf+=" --disable-libnotify"
54
55 # slotted boost detection, bug #309415
56 BOOST_PKG="$(best_version ">=dev-libs/boost-1.34.1")"
57 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
58 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
59 myconf+=" --with-libboost-inc=/usr/include/boost-${BOOST_VER}"
60
61 # econf fails, since this uses qconf
62 ./configure --prefix=/usr --qtdir=/usr ${myconf} || die "configure failed"
63 eqmake4
64 }

  ViewVC Help
Powered by ViewVC 1.1.20