1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 MY_PN="${PN/tribler/Tribler}"
8 MY_P="${MY_PN}_${PV}_src"
11 DESCRIPTION="Python based Bittorrent/Internet TV application"
12 HOMEPAGE="http://www.tribler.org/"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
17 KEYWORDS="~amd64 ~x86"
20 RDEPEND=">=dev-lang/python-2.4
21 >=dev-libs/openssl-0.9.8
22 >=dev-python/wxpython-2.8
23 >=dev-python/m2crypto-0.16
24 >=media-video/vlc-0.9"
27 >=dev-lang/swig-1.3.25"
33 # Because tribler.py has Windows CR/LF at the end of its lines
38 dodir /usr/share/${PN}
39 newbin tribler.sh tribler || die "Error: newbin failed"
40 insinto /usr/share/${PN}
41 doins -r ABC BitTornado Tribler Utility Dialogs icons Lang test \
42 TorrentMaker || die "Error: doins failed"
43 doins abcengine.py btdownloadheadless.py btshowmetainfo.py webtest.py \
44 interconn.py launchmanycore.py webservice.py safeguiupdate.py \
45 tribler.py *.ico *.xpm *.conf *.nsi *.command *.bmp cities.txt \
46 people.txt superpeer.txt || die "Error: doins failed"
48 make_desktop_entry "tribler" "Tribler P2P Bittorrent/Youtube client" \
49 ${PN}.xpm "Application;Network;P2P"
51 doins btcreatetorrent.py btlaunchmany.py bttrack.py || die "Error: doins failed"
52 dodoc LICENSE.txt protocol_v3.txt readme.txt
58 python_mod_optimize "${ROOT}"usr/share/${PN}
60 ewarn "VLC has not Python bindings available yet"
61 ewarn "the internal player controls will not work."
66 python_mod_cleanup "${ROOT}"usr/share/${PN}