Lines 2-14
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/shiboken/shiboken-1.1.2.ebuild,v 1.6 2012/11/21 11:27:46 ago Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/shiboken/shiboken-1.1.2.ebuild,v 1.6 2012/11/21 11:27:46 ago Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
PYTHON_DEPEND="2:2.6 3:3.2" |
7 |
PYTHON_COMPAT=( python{2_6,2_7,3_2} ) |
8 |
SUPPORT_PYTHON_ABIS="1" |
|
|
9 |
RESTRICT_PYTHON_ABIS="2.4 2.5 3.1 3.3 *-jython 2.7-pypy-*" |
10 |
|
8 |
|
11 |
inherit multilib cmake-utils python |
9 |
inherit multilib cmake-utils python-r1 |
12 |
|
10 |
|
13 |
DESCRIPTION="A tool for creating Python bindings for C++ libraries" |
11 |
DESCRIPTION="A tool for creating Python bindings for C++ libraries" |
14 |
HOMEPAGE="http://www.pyside.org/" |
12 |
HOMEPAGE="http://www.pyside.org/" |
Lines 16-22
SRC_URI="http://www.pyside.org/files/${P
Link Here
|
16 |
|
14 |
|
17 |
LICENSE="LGPL-2.1" |
15 |
LICENSE="LGPL-2.1" |
18 |
SLOT="0" |
16 |
SLOT="0" |
19 |
KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux" |
17 |
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
20 |
IUSE="test" |
18 |
IUSE="test" |
21 |
|
19 |
|
22 |
RDEPEND=" |
20 |
RDEPEND=" |
Lines 29-35
RDEPEND="
Link Here
|
29 |
" |
27 |
" |
30 |
DEPEND="${RDEPEND} |
28 |
DEPEND="${RDEPEND} |
31 |
test? ( |
29 |
test? ( |
32 |
dev-python/numpy |
30 |
dev-python/numpy[${PYTHON_USEDEP}] |
33 |
>=x11-libs/qt-gui-4.7.0:4 |
31 |
>=x11-libs/qt-gui-4.7.0:4 |
34 |
>=x11-libs/qt-test-4.7.0:4 |
32 |
>=x11-libs/qt-test-4.7.0:4 |
35 |
)" |
33 |
)" |
Lines 53-95
src_prepare() {
Link Here
|
53 |
src_configure() { |
51 |
src_configure() { |
54 |
configuration() { |
52 |
configuration() { |
55 |
local mycmakeargs=( |
53 |
local mycmakeargs=( |
56 |
-DPYTHON_EXECUTABLE="$(PYTHON -a)" |
54 |
-DPYTHON_EXECUTABLE="${PYTHON}" |
57 |
-DPYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" |
55 |
-DPYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" |
58 |
-DPYTHON_SUFFIX="-python${PYTHON_ABI}" |
56 |
-DPYTHON_SUFFIX="-${EPYTHON}" |
59 |
$(cmake-utils_use_build test TESTS) |
57 |
$(cmake-utils_use_build test TESTS) |
60 |
) |
58 |
) |
61 |
|
59 |
|
62 |
if [[ $(python_get_version -l --major) == 3 ]]; then |
60 |
if [[ ${EPYTHON} == python3* ]]; then |
63 |
mycmakeargs+=( |
61 |
mycmakeargs+=( |
64 |
-DUSE_PYTHON3=ON |
62 |
-DUSE_PYTHON3=ON |
65 |
-DPYTHON3_INCLUDE_DIR="${EPREFIX}$(python_get_includedir)" |
63 |
-DPYTHON3_INCLUDE_DIR="${EPREFIX}$(python_get_includedir)" |
66 |
-DPYTHON3_LIBRARY="${EPREFIX}$(python_get_library)" |
64 |
-DPYTHON3_LIBRARY="${EPREFIX}$(python_get_library_path)" |
67 |
) |
65 |
) |
68 |
fi |
66 |
fi |
69 |
|
67 |
|
70 |
CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_configure |
68 |
cmake-utils_src_configure |
71 |
} |
69 |
} |
72 |
python_execute_function configuration |
70 |
python_foreach_impl configuration |
73 |
} |
71 |
} |
74 |
|
72 |
|
75 |
src_compile() { |
73 |
src_compile() { |
76 |
compilation() { |
74 |
python_foreach_impl cmake-utils_src_make |
77 |
CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_make |
|
|
78 |
} |
79 |
python_execute_function compilation |
80 |
} |
75 |
} |
81 |
|
76 |
|
82 |
src_test() { |
77 |
src_test() { |
83 |
testing() { |
78 |
python_foreach_impl cmake-utils_src_test |
84 |
CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_test |
|
|
85 |
} |
86 |
python_execute_function testing |
87 |
} |
79 |
} |
88 |
|
80 |
|
89 |
src_install() { |
81 |
src_install() { |
90 |
installation() { |
82 |
installation() { |
91 |
CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_install |
83 |
cmake-utils_src_install |
92 |
mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-python${PYTHON_ABI}}.pc || die |
84 |
mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-${EPYTHON}}.pc || die |
93 |
} |
85 |
} |
94 |
python_execute_function installation |
86 |
python_foreach_impl installation |
95 |
} |
87 |
} |