From: | "Ben de Groot (yngwin)" <yngwin@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/qscintilla-python: ChangeLog qscintilla-python-2.3.2.ebuild |
Date: | Fri, 21 Nov 2008 14:01:28 |
Message-Id: | E1L3WZa-00031F-8n@stork.gentoo.org |
1 | yngwin 08/11/21 14:01:26 |
2 | |
3 | Modified: ChangeLog |
4 | Added: qscintilla-python-2.3.2.ebuild |
5 | Log: |
6 | Version bump |
7 | (Portage version: 2.2_rc14/cvs/Linux 2.6.27-hh5 i686) |
8 | |
9 | Revision Changes Path |
10 | 1.12 dev-python/qscintilla-python/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla-python/ChangeLog?rev=1.12&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla-python/ChangeLog?rev=1.12&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla-python/ChangeLog?r1=1.11&r2=1.12 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/ChangeLog,v |
19 | retrieving revision 1.11 |
20 | retrieving revision 1.12 |
21 | diff -u -r1.11 -r1.12 |
22 | --- ChangeLog 27 Oct 2008 11:51:13 -0000 1.11 |
23 | +++ ChangeLog 21 Nov 2008 14:01:26 -0000 1.12 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for dev-python/qscintilla-python |
26 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/ChangeLog,v 1.11 2008/10/27 11:51:13 hawking Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/ChangeLog,v 1.12 2008/11/21 14:01:26 yngwin Exp $ |
29 | + |
30 | +*qscintilla-python-2.3.2 (21 Nov 2008) |
31 | + |
32 | + 21 Nov 2008; Ben de Groot <yngwin@g.o> |
33 | + +qscintilla-python-2.3.2.ebuild: |
34 | + Version bump |
35 | |
36 | 27 Oct 2008; Ali Polatel <hawking@g.o> |
37 | qscintilla-python-2.1.ebuild, qscintilla-python-2.2.ebuild, |
38 | |
39 | |
40 | |
41 | 1.1 dev-python/qscintilla-python/qscintilla-python-2.3.2.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla-python/qscintilla-python-2.3.2.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/qscintilla-python/qscintilla-python-2.3.2.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: qscintilla-python-2.3.2.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2008 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/qscintilla-python-2.3.2.ebuild,v 1.1 2008/11/21 14:01:26 yngwin Exp $ |
51 | |
52 | inherit eutils python |
53 | |
54 | MY_PN="qscintilla" |
55 | MY_P="${MY_PN/qs/QS}-gpl-${PV}" |
56 | |
57 | DESCRIPTION="Python bindings for Qscintilla" |
58 | HOMEPAGE="http://www.riverbankcomputing.co.uk/software/qscintilla/intro" |
59 | SRC_URI="http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${MY_P}.tar.gz" |
60 | |
61 | LICENSE="GPL-2" |
62 | SLOT="0" |
63 | KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
64 | IUSE="qt4" |
65 | |
66 | DEPEND=">=dev-python/sip-4.4 |
67 | =x11-libs/qscintilla-${PV}* |
68 | qt4? ( dev-python/PyQt4 ) |
69 | !qt4? ( dev-python/PyQt )" |
70 | RDEPEND="${DEPEND}" |
71 | |
72 | S=${WORKDIR}/${MY_P}/Python |
73 | |
74 | pkg_setup() { |
75 | # this package needs to have same qt flags with qscintilla. |
76 | if use qt4; then |
77 | if ! built_with_use 'x11-libs/qscintilla' 'qt4'; then |
78 | eerror "Please build qscintilla with qt4 useflag." |
79 | die "qscintilla built without qt4." |
80 | fi |
81 | else |
82 | if built_with_use 'x11-libs/qscintilla' 'qt4'; then |
83 | eerror "Please build qscintilla without qt4 useflag." |
84 | die "qscintilla built with qt4" |
85 | fi |
86 | fi |
87 | } |
88 | |
89 | src_unpack() { |
90 | unpack ${A} |
91 | cd "${S}" |
92 | |
93 | epatch "${FILESDIR}"/${PN}-2.2-nostrip.patch |
94 | } |
95 | |
96 | src_compile() { |
97 | local myconf="-o /usr/lib -n /usr/include" |
98 | if use qt4; then |
99 | myconf="${myconf} -p 4" |
100 | else |
101 | myconf="${myconf} -p 3" |
102 | fi |
103 | |
104 | python_version |
105 | ${python} configure.py ${myconf} || die "configure.py failed" |
106 | emake || die "emake failed" |
107 | } |
108 | |
109 | src_install() { |
110 | python_need_rebuild |
111 | emake DESTDIR="${D}" install || die "emake install failed" |
112 | } |