Lines 2-13
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/qscintilla-python-2.7.ebuild,v 1.1 2012/12/10 12:27:54 pesa Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/qscintilla-python-2.7.ebuild,v 1.1 2012/12/10 12:27:54 pesa Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=5 |
6 |
PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
6 |
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} ) |
7 |
SUPPORT_PYTHON_ABIS="1" |
|
|
8 |
RESTRICT_PYTHON_ABIS="*-jython *-pypy-*" |
9 |
|
7 |
|
10 |
inherit eutils python toolchain-funcs |
8 |
inherit eutils multilib python-r1 toolchain-funcs |
11 |
|
9 |
|
12 |
MY_P=QScintilla-gpl-${PV} |
10 |
MY_P=QScintilla-gpl-${PV} |
13 |
|
11 |
|
Lines 21-28
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc6
Link Here
|
21 |
IUSE="debug" |
19 |
IUSE="debug" |
22 |
|
20 |
|
23 |
DEPEND=" |
21 |
DEPEND=" |
24 |
>=dev-python/sip-4.12 |
22 |
>=dev-python/sip-4.12[${PYTHON_USEDEP}] |
25 |
>=dev-python/PyQt4-4.8[X] |
23 |
>=dev-python/PyQt4-4.8[X,${PYTHON_USEDEP}] |
26 |
~x11-libs/qscintilla-${PV} |
24 |
~x11-libs/qscintilla-${PV} |
27 |
" |
25 |
" |
28 |
RDEPEND="${DEPEND}" |
26 |
RDEPEND="${DEPEND}" |
Lines 32-45
S=${WORKDIR}/${MY_P}/Python
Link Here
|
32 |
src_prepare() { |
30 |
src_prepare() { |
33 |
epatch "${FILESDIR}/${PN}-2.5.1-disable_stripping.patch" |
31 |
epatch "${FILESDIR}/${PN}-2.5.1-disable_stripping.patch" |
34 |
|
32 |
|
35 |
python_src_prepare |
33 |
python_copy_sources |
36 |
} |
34 |
} |
37 |
|
35 |
|
38 |
src_configure() { |
36 |
src_configure() { |
39 |
configuration() { |
37 |
configuration() { |
40 |
local myconf=( |
38 |
local myconf=( |
41 |
"$(PYTHON)" configure.py |
39 |
"${PYTHON}" configure.py |
42 |
--destdir="${EPREFIX}$(python_get_sitedir)/PyQt4" |
40 |
--apidir="${EPREFIX}"/usr/share/qt4/qsci |
|
|
41 |
--destdir="$(python_get_sitedir)"/PyQt4 |
42 |
--sipdir="${EPREFIX}"/usr/share/sip |
43 |
-n "${EPREFIX}"/usr/include/qt4 |
44 |
-o "${EPREFIX}"/usr/$(get_libdir)/qt4 |
43 |
-p 4 |
45 |
-p 4 |
44 |
--no-timestamp |
46 |
--no-timestamp |
45 |
$(use debug && echo --debug) |
47 |
$(use debug && echo --debug) |
Lines 47-58
src_configure() {
Link Here
|
47 |
echo "${myconf[@]}" |
49 |
echo "${myconf[@]}" |
48 |
"${myconf[@]}" || die |
50 |
"${myconf[@]}" || die |
49 |
} |
51 |
} |
50 |
python_execute_function -s configuration |
52 |
python_parallel_foreach_impl run_in_build_dir configuration |
51 |
} |
53 |
} |
52 |
|
54 |
|
53 |
src_compile() { |
55 |
src_compile() { |
54 |
building() { |
56 |
building() { |
55 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" |
57 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" |
56 |
} |
58 |
} |
57 |
python_execute_function -s building |
59 |
python_foreach_impl run_in_build_dir building |
|
|
60 |
} |
61 |
|
62 |
src_install() { |
63 |
python_foreach_impl run_in_build_dir default |
58 |
} |
64 |
} |