Mercurial > hg > portage
annotate dev-python/qscintilla-python/qscintilla-python-2.7.2-r1.ebuild @ 371:08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 24 Nov 2014 11:28:15 +0100 |
parents | |
children |
rev | line source |
---|---|
371
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2014 Gentoo Foundation |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/qscintilla-python-2.7.2.ebuild,v 1.10 2014/11/20 00:41:25 pesa Exp $ |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 EAPI=5 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} ) |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 inherit eutils multilib python-r1 toolchain-funcs |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 MY_P=QScintilla-gpl-${PV} |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 DESCRIPTION="Python bindings for Qscintilla" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/qscintilla/intro" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 LICENSE="|| ( GPL-2 GPL-3 )" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 SLOT="0" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 IUSE="debug" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 DEPEND=" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 ${PYTHON_DEPS} |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 >=dev-python/sip-4.12:=[${PYTHON_USEDEP}] |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 =dev-python/PyQt4-4.10*[X,${PYTHON_USEDEP}] |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 dev-qt/qtcore:4 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 dev-qt/qtgui:4 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 ~x11-libs/qscintilla-${PV}:= |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 " |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 RDEPEND="${DEPEND}" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 S=${WORKDIR}/${MY_P}/Python |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 src_prepare() { |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 python_copy_sources |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 } |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 src_configure() { |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 configuration() { |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 local myconf=( |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 "${PYTHON}" configure-old.py |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 --apidir="${EPREFIX}"/usr/share/qt4/qsci |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 --destdir="$(python_get_sitedir)"/PyQt4 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 --sipdir="${EPREFIX}"/usr/share/sip |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 -n "${EPREFIX}"/usr/include/qt4 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 -o "${EPREFIX}"/usr/$(get_libdir)/qt4 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 -p 4 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 --no-timestamp |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 $(use debug && echo --debug) |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 ) |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 echo "${myconf[@]}" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 "${myconf[@]}" || die |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 } |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 python_parallel_foreach_impl run_in_build_dir configuration |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 } |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 src_compile() { |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
59 compilation() { |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
60 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
61 } |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
62 python_foreach_impl run_in_build_dir compilation |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
63 } |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
64 |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
65 src_install() { |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
66 python_foreach_impl run_in_build_dir default |
08cf4b4c2316
add a qscintilla ebuild that is python 3.4 aware
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
67 } |