From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/pydvdread: metadata.xml pydvdread-1.0.ebuild ChangeLog |
Date: | Mon, 31 Dec 2012 08:30:17 |
Message-Id: | 20121231083006.1C2302171D@flycatcher.gentoo.org |
1 | vapier 12/12/31 08:30:06 |
2 | |
3 | Added: metadata.xml pydvdread-1.0.ebuild ChangeLog |
4 | Log: |
5 | Initial ebuild by me. |
6 | |
7 | (Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/pydvdread/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pydvdread/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pydvdread/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>python</herd> |
21 | </pkgmetadata> |
22 | |
23 | |
24 | |
25 | 1.1 dev-python/pydvdread/pydvdread-1.0.ebuild |
26 | |
27 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pydvdread/pydvdread-1.0.ebuild?rev=1.1&view=markup |
28 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pydvdread/pydvdread-1.0.ebuild?rev=1.1&content-type=text/plain |
29 | |
30 | Index: pydvdread-1.0.ebuild |
31 | =================================================================== |
32 | # Copyright 1999-2012 Gentoo Foundation |
33 | # Distributed under the terms of the GNU General Public License v2 |
34 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pydvdread/pydvdread-1.0.ebuild,v 1.1 2012/12/31 08:30:05 vapier Exp $ |
35 | |
36 | EAPI="4" |
37 | PYTHON_DEPEND="2" |
38 | SUPPORT_PYTHON_ABIS="1" |
39 | |
40 | inherit distutils eutils |
41 | |
42 | DESCRIPTION="A set of Python bindings for the libdvdread library" |
43 | HOMEPAGE="http://pydvdread.sourceforge.net/" |
44 | SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.bz2" |
45 | |
46 | LICENSE="GPL-2" |
47 | SLOT="0" |
48 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
49 | IUSE="" |
50 | RESTRICT="test" # Requires an actual DVD to test. |
51 | |
52 | DEPEND="media-libs/libdvdread" |
53 | RDEPEND="${DEPEND}" |
54 | |
55 | src_prepare() { |
56 | epatch "${FILESDIR}"/${P}-py3k.patch |
57 | epatch "${FILESDIR}"/${P}-api-update.patch |
58 | sed -i '/assert_(isinstance(.*, int))/s:int))$:(int, long))):' tests/*.py || die |
59 | distutils_src_prepare |
60 | } |
61 | |
62 | src_compile() { |
63 | # We had to patch some of the .i files, so regen the .py |
64 | # so that the distutils copy doesn't import old stuff. |
65 | # XXX: A python/swig expert might know a better way to do this. |
66 | set -- swig -python -o src/dvdread/all_wrap.c src/dvdread/all.i |
67 | echo "$@" |
68 | "$@" || die |
69 | distutils_src_compile |
70 | } |
71 | |
72 | src_test() { |
73 | testing() { |
74 | PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" tests/TestAll.py -q |
75 | } |
76 | python_execute_function testing |
77 | } |
78 | |
79 | |
80 | |
81 | 1.1 dev-python/pydvdread/ChangeLog |
82 | |
83 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pydvdread/ChangeLog?rev=1.1&view=markup |
84 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pydvdread/ChangeLog?rev=1.1&content-type=text/plain |
85 | |
86 | Index: ChangeLog |
87 | =================================================================== |
88 | # ChangeLog for dev-python/pydvdread |
89 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
90 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pydvdread/ChangeLog,v 1.1 2012/12/31 08:30:05 vapier Exp $ |
91 | |
92 | *pydvdread-1.0 (31 Dec 2012) |
93 | |
94 | 31 Dec 2012; Mike Frysinger <vapier@g.o> |
95 | +files/pydvdread-1.0-api-update.patch, +files/pydvdread-1.0-py3k.patch, |
96 | +metadata.xml, +pydvdread-1.0.ebuild: |
97 | Initial ebuild by me. |