/[gentoo-x86]/net-p2p/tribler/tribler-6.2.0.ebuild
Gentoo

Contents of /net-p2p/tribler/tribler-6.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Aug 11 22:59:17 2013 UTC (4 years, 5 months ago) by aballier
Branch: MAIN
Changes since 1.1: +2 -2 lines
depend on ffmpeg:0

(Portage version: 2.2.0_alpha196/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 blueness 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 aballier 1.2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/tribler/tribler-6.2.0.ebuild,v 1.1 2013/08/02 13:31:39 blueness Exp $
4 blueness 1.1
5     EAPI="5"
6     PYTHON_DEPEND="2"
7     PYTHON_USE_WITH="sqlite"
8    
9     inherit eutils python unpacker
10    
11     DESCRIPTION="Bittorrent client that does not require a website to discover content"
12     HOMEPAGE="http://www.tribler.org/"
13     SRC_URI="
14     http://dl.tribler.org/tribler_6.2.0ubuntu1_all.deb
15     x86? ( http://dl.tribler.org/tribler-swift_6.2.0ubuntu1_i386.deb )
16     amd64? ( http://dl.tribler.org/tribler-swift_6.2.0ubuntu1_amd64.deb )"
17    
18     LICENSE="LGPL-2.1"
19     SLOT="0"
20     KEYWORDS="~amd64 ~x86"
21     IUSE="vlc"
22    
23     RDEPEND="
24     dev-python/apsw
25     dev-python/feedparser
26     dev-python/m2crypto
27     dev-python/netifaces
28     dev-libs/openssl
29     dev-python/wxpython
30     net-libs/rb_libtorrent
31     vlc? (
32     media-video/vlc
33 aballier 1.2 media-video/ffmpeg:0
34 blueness 1.1 )"
35    
36     DEPEND="${RDEPEND}
37     app-arch/unzip"
38    
39     S="${WORKDIR}"
40    
41     QA_PREBUILT="/usr/lib/tribler/swift"
42    
43     pkg_setup() {
44     python_set_active_version 2
45     python_pkg_setup
46     }
47    
48     src_prepare() {
49     epatch "${FILESDIR}/${PN}-log2homedir.patch"
50     epatch "${FILESDIR}/${P}-fix-desktop.patch"
51    
52     python_convert_shebangs -r 2 .
53     }
54    
55     src_compile() { :; }
56    
57     src_install() {
58     #Remove a dead sym link
59     rm usr/share/tribler/Tribler/Main/webUI/static/mootools.js
60    
61     #Rename the doc dir properly
62     mv usr/share/doc/${PN} usr/share/doc/${P}
63    
64     #Move the readme to the doc dir
65     mv usr/share/${PN}/Tribler/readme.txt usr/share/doc/${P}
66    
67     #Remove the licenses scattered throughout
68     rm usr/share/doc/${P}/copyright
69     rm usr/share/${PN}/Tribler/*.txt
70     rm usr/share/${PN}/Tribler/Core/DecentralizedTracking/pymdht/LGPL-2.1.txt
71    
72     #Copy the rest over
73     cp -pPR usr/ "${ED}"/
74     }
75    
76     pkg_postinst() {
77     python_mod_optimize "${ROOT}"usr/share/${PN}
78     }
79    
80     pkg_postrm() {
81     python_mod_cleanup "${ROOT}"usr/share/${PN}
82     }

  ViewVC Help
Powered by ViewVC 1.1.20