/[gentoo-x86]/net-p2p/ktorrent/ktorrent-4.2.1.ebuild
Gentoo

Contents of /net-p2p/ktorrent/ktorrent-4.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Jul 29 21:24:10 2012 UTC (2 years, 1 month ago) by jdhore
Branch: MAIN
Changes since 1.1: +2 -2 lines
marked x86 per bug 428338

(Portage version: 2.2.0_alpha120/cvs/Linux i686)

1 kensington 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/ktorrent/ktorrent-4.2.1.ebuild,v 1.1 2012/06/27 09:58:43 kensington Exp $
4 kensington 1.1
5     EAPI=4
6    
7     KDE_SCM="git"
8     KDE_MINIMAL="4.5"
9     LIBKT_VERSION_MIN="${PV}"
10     LIBKT_VERSION_MAX="99999999"
11     if [[ ${PV} != 9999* ]]; then
12     inherit versionator
13     # upstream likes to skip that _ in beta releases
14     MY_PV="${PV/_/}"
15     LIBKT_VERSION_MIN=$(($(get_major_version)-3)).$(get_version_component_range 2-3 ${PV})
16     LIBKT_VERSION_MAX=$(($(get_major_version)-3)).$(($(get_version_component_range 2)+1))
17     MY_P="${PN}-${MY_PV}"
18     KDE_HANDBOOK="optional"
19     KDE_DOC_DIRS="doc"
20    
21     KDE_LINGUAS="ar ast be bg ca ca@valencia cs da de el en_GB eo es et eu
22     fi fr ga gl hi hne hr hu is it ja km lt lv mai ms nb nds nl nn oc
23     pl pt pt_BR ro ru se si sk sl sr sr@ijekavian sr@ijekavianlatin
24     sr@latin sv tr uk zh_CN zh_TW"
25     SRC_URI="http://ktorrent.org/downloads/${MY_PV}/${MY_P}.tar.bz2"
26     S="${WORKDIR}"/"${MY_P}"
27    
28 jdhore 1.2 KEYWORDS="~amd64 ~ppc ~ppc64 x86"
29 kensington 1.1 else
30     LIBKT_VERSION_MIN="${PV}"
31     LIBKT_VERSION_MAX="99999999"
32     KEYWORDS=""
33     fi
34    
35     inherit kde4-base
36    
37     DESCRIPTION="A BitTorrent program for KDE."
38     HOMEPAGE="http://ktorrent.org/"
39    
40     LICENSE="GPL-2"
41     SLOT="4"
42     IUSE="+bwscheduler debug +downloadorder +infowidget +ipfilter +kross +logviewer
43     +magnetgenerator +mediaplayer plasma rss +scanfolder +search +shutdown +stats
44     +upnp webinterface +zeroconf"
45    
46     COMMONDEPEND="
47     <net-libs/libktorrent-${LIBKT_VERSION_MAX}
48     >=net-libs/libktorrent-${LIBKT_VERSION_MIN}
49     infowidget? ( dev-libs/geoip )
50     mediaplayer? ( >=media-libs/taglib-1.5 )
51     plasma? ( $(add_kdebase_dep libtaskmanager) )
52     rss? ( $(add_kdebase_dep kdepimlibs) )
53     shutdown? (
54     $(add_kdebase_dep libkworkspace)
55     $(add_kdebase_dep solid)
56     )
57     "
58     DEPEND="${COMMONDEPEND}
59     dev-libs/boost
60     sys-devel/gettext
61     "
62     RDEPEND="${COMMONDEPEND}
63     ipfilter? (
64     app-arch/bzip2
65     app-arch/unzip
66     $(add_kdebase_dep kdebase-kioslaves)
67     )
68     kross? ( $(add_kdebase_dep krosspython) )
69     "
70    
71     src_prepare() {
72     if ! use plasma; then
73     sed -i \
74     -e "s:add_subdirectory(plasma):#nada:g" \
75     CMakeLists.txt || die "Failed to make plasmoid optional"
76     fi
77    
78     kde4-base_src_prepare
79     }
80    
81     src_configure() {
82     mycmakeargs=(
83     $(cmake-utils_use_enable bwscheduler BWSCHEDULER_PLUGIN)
84     $(cmake-utils_use_enable downloadorder DOWNLOADORDER_PLUGIN)
85     $(cmake-utils_use_enable infowidget INFOWIDGET_PLUGIN)
86     $(cmake-utils_use_with infowidget SYSTEM_GEOIP)
87     $(cmake-utils_use_enable ipfilter IPFILTER_PLUGIN)
88     $(cmake-utils_use_enable kross SCRIPTING_PLUGIN)
89     $(cmake-utils_use_enable logviewer LOGVIEWER_PLUGIN)
90     $(cmake-utils_use_enable magnetgenerator MAGNETGENERATOR_PLUGIN)
91     $(cmake-utils_use_enable mediaplayer MEDIAPLAYER_PLUGIN)
92     $(cmake-utils_use_enable rss SYNDICATION_PLUGIN)
93     $(cmake-utils_use_enable scanfolder SCANFOLDER_PLUGIN)
94     $(cmake-utils_use_enable search SEARCH_PLUGIN)
95     $(cmake-utils_use_enable shutdown SHUTDOWN_PLUGIN)
96     $(cmake-utils_use_enable stats STATS_PLUGIN)
97     $(cmake-utils_use_enable upnp UPNP_PLUGIN)
98     $(cmake-utils_use_enable webinterface WEBINTERFACE_PLUGIN)
99     $(cmake-utils_use_enable zeroconf ZEROCONF_PLUGIN)
100     )
101     kde4-base_src_configure
102     }

  ViewVC Help
Powered by ViewVC 1.1.20