Line
Link Here
|
0 |
-- yasm-1.1.0.ebuild |
0 |
++ yasm-1.1.0.ebuild |
Lines 4-11
Link Here
|
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=2 |
6 |
PYTHON_DEPEND="python? 2:2.4" |
6 |
PYTHON_DEPEND="python? 2:2.4" |
|
|
7 |
SUPPORT_PYTHON_ABIS="1" |
8 |
RESTRICT_PYTHON_ABIS="3.*" |
7 |
|
9 |
|
8 |
inherit autotools eutils python |
10 |
inherit autotools distutils eutils |
9 |
|
11 |
|
10 |
DESCRIPTION="An assembler for x86 and x86_64 instruction sets" |
12 |
DESCRIPTION="An assembler for x86 and x86_64 instruction sets" |
11 |
HOMEPAGE="http://www.tortall.net/projects/yasm/" |
13 |
HOMEPAGE="http://www.tortall.net/projects/yasm/" |
Lines 20-33
Link Here
|
20 |
DEPEND="nls? ( sys-devel/gettext ) |
22 |
DEPEND="nls? ( sys-devel/gettext ) |
21 |
python? ( >=dev-python/cython-0.11.3 )" |
23 |
python? ( >=dev-python/cython-0.11.3 )" |
22 |
|
24 |
|
|
|
25 |
DISTUTILS_SETUP_FILES=("tools/python-yasm/setup.py") |
26 |
|
23 |
pkg_setup() { |
27 |
pkg_setup() { |
24 |
if use python; then |
28 |
use python && python_pkg_setup |
25 |
python_set_active_version 2 |
|
|
26 |
python_pkg_setup |
27 |
fi |
28 |
} |
29 |
} |
29 |
|
30 |
|
30 |
src_prepare() { |
31 |
src_prepare() { |
|
|
32 |
# Python bindings are built/tested/installed manually. |
33 |
sed -e "/\$(PYTHON).*tools\/python-yasm\/setup\.py/d" -i tools/python-yasm/Makefile.inc || die |
34 |
sed -e "/TESTS += tools\/python-yasm\/tests\/python_test\.sh/d" -i tools/python-yasm/tests/Makefile.inc || die |
35 |
|
31 |
epatch "${FILESDIR}"/${PN}-1.1.0-skip_cython_check.patch |
36 |
epatch "${FILESDIR}"/${PN}-1.1.0-skip_cython_check.patch |
32 |
eautoreconf |
37 |
eautoreconf |
33 |
} |
38 |
} |
Lines 40-46
Link Here
|
40 |
$(use_enable nls) |
45 |
$(use_enable nls) |
41 |
} |
46 |
} |
42 |
|
47 |
|
|
|
48 |
src_compile() { |
49 |
default |
50 |
use python && distutils_src_compile |
51 |
} |
52 |
|
53 |
src_test() { |
54 |
default |
55 |
|
56 |
if use python; then |
57 |
testing() { |
58 |
# Based on tools/python-yasm/tests/python_test.sh. |
59 |
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*):tools/python-yasm" "$(PYTHON)" -c "import tests; raise SystemExit(tests.unit())" |
60 |
} |
61 |
python_execute_function testing |
62 |
fi |
63 |
} |
64 |
|
43 |
src_install() { |
65 |
src_install() { |
44 |
emake DESTDIR="${D}" install || die |
66 |
emake DESTDIR="${D}" install || die |
|
|
67 |
use python && distutils_src_install |
45 |
dodoc AUTHORS |
68 |
dodoc AUTHORS |
46 |
} |
69 |
} |