xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #194: xpra-0.7.0-r1.ebuild

File xpra-0.7.0-r1.ebuild, 1.9 KB (added by olifre, 9 years ago)

Modified version of the ebuild from Gentoo Portage for new archive

Line 
1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/x11-wm/xpra/xpra-0.6.4.ebuild,v 1.1 2012/10/06 09:24:29 xmw Exp $
4
5EAPI=3
6
7PYTHON_DEPEND="*"
8RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
9SUPPORT_PYTHON_ABIS="1"
10inherit distutils eutils
11
12DESCRIPTION="X Persistent Remote Apps (xpra) and Partitioning WM (parti) based on wimpiggy"
13HOMEPAGE="http://xpra.org/"
14SRC_URI="http://xpra.org/dists/gentoo/${PF}.tar.bz2"
15
16LICENSE="GPL-2"
17SLOT="0"
18KEYWORDS=""
19IUSE="+clipboard ffmpeg jpeg libnotify parti png +rencode server ssh x264"
20
21S="${WORKDIR}/${PF}"
22
23COMMON_DEPEND="dev-python/pygtk:2
24        x11-libs/libX11
25        x11-libs/libXcomposite
26        x11-libs/libXdamage
27        ffmpeg? (
28                virtual/ffmpeg
29                x264? ( media-libs/x264 )
30        )
31        server? ( x11-libs/libXtst )
32        !x11-wm/parti"
33
34RDEPEND="${COMMON_DEPEND}
35        x11-apps/xmodmap
36        parti? ( dev-python/ipython
37                 dev-python/dbus-python )
38        libnotify? ( dev-python/dbus-python )
39        jpeg? ( dev-python/imaging )
40        png? ( dev-python/imaging )
41        ssh? ( virtual/ssh )
42        server? ( x11-base/xorg-server[xvfb,-minimal] )"
43DEPEND="${COMMON_DEPEND}
44        virtual/pkgconfig
45        >=dev-python/cython-0.16"
46
47src_prepare() {
48        use server || epatch disable-posix-server.patch
49        if use ffmpeg ; then
50                use x264 || epatch disable-x264.patch
51        else
52                epatch disable-vpx.patch disable-x264.patch
53        fi
54        use clipboard || epatch disable-clipboard.patch
55        use rencode || epatch disable-rencode.patch
56
57        $(PYTHON -2) make_constants_pxi.py wimpiggy/lowlevel/constants.txt wimpiggy/lowlevel/constants.pxi || die
58
59        #python_copy_sources
60        #
61        #patching() {
62        #    [[ "${PYTHON_ABI}" == 2.* ]] && return
63        #       2to3 --no-diffs -x all -f except -w -n .
64        #}
65        #python_execute_function --action-message 'Applying patches with $(python_get_implementation) $(python_get_version)' -s patching
66}
67
68src_install() {
69        distutils_src_install
70        rm -vf "${ED}"usr/share/{parti,wimpiggy,xpra}/{README*,COPYING} || die
71}