Lines 3-18
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/yasm-1.2.0.ebuild,v 1.8 2012/06/16 10:48:02 grobian Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/yasm-1.2.0.ebuild,v 1.8 2012/06/16 10:48:02 grobian Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
PYTHON_DEPEND="python? 2:2.7" |
6 |
PYTHON_DEPEND="2:2.7" |
7 |
inherit autotools eutils python |
7 |
inherit autotools eutils python |
|
|
8 |
[[ ${PV} == 9999* ]] && inherit git-2 |
8 |
|
9 |
|
9 |
DESCRIPTION="An assembler for x86 and x86_64 instruction sets" |
10 |
DESCRIPTION="An assembler for x86 and x86_64 instruction sets" |
10 |
HOMEPAGE="http://www.tortall.net/projects/yasm/" |
11 |
HOMEPAGE="http://www.tortall.net/projects/yasm/" |
11 |
SRC_URI="http://www.tortall.net/projects/yasm/releases/${P}.tar.gz" |
12 |
if [[ ${PV} == 9999* ]]; then |
|
|
13 |
EGIT_REPO_URI="git://github.com/yasm/yasm.git" |
14 |
SRC_URI="" |
15 |
else |
16 |
SRC_URI="http://www.tortall.net/projects/yasm/releases/${P}.tar.gz" |
17 |
fi |
12 |
|
18 |
|
13 |
LICENSE="BSD-2 BSD || ( Artistic GPL-2 LGPL-2 )" |
19 |
LICENSE="BSD-2 BSD || ( Artistic GPL-2 LGPL-2 )" |
14 |
SLOT="0" |
20 |
SLOT="0" |
15 |
KEYWORDS="-* amd64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" |
21 |
KEYWORDS="" |
16 |
IUSE="nls python" |
22 |
IUSE="nls python" |
17 |
|
23 |
|
18 |
RDEPEND="nls? ( virtual/libintl )" |
24 |
RDEPEND="nls? ( virtual/libintl )" |
Lines 22-43
DEPEND="nls? ( sys-devel/gettext )
Link Here
|
22 |
DOCS=( AUTHORS ) |
28 |
DOCS=( AUTHORS ) |
23 |
|
29 |
|
24 |
pkg_setup() { |
30 |
pkg_setup() { |
25 |
if use python; then |
31 |
python_set_active_version 2 |
26 |
python_set_active_version 2 |
32 |
python_pkg_setup |
27 |
python_pkg_setup |
|
|
28 |
fi |
29 |
} |
33 |
} |
30 |
|
34 |
|
31 |
src_prepare() { |
35 |
src_prepare() { |
32 |
epatch "${FILESDIR}/${P}-fix_cython_check.patch" |
|
|
33 |
# ksh doesn't grok $(xxx), makes aclocal fail |
36 |
# ksh doesn't grok $(xxx), makes aclocal fail |
34 |
sed -i -e '1c\#!/usr/bin/env sh' YASM-VERSION-GEN.sh || die |
37 |
sed -i -e '1c\#!/usr/bin/env sh' YASM-VERSION-GEN.sh || die |
35 |
eautoreconf |
38 |
eautoreconf |
36 |
} |
39 |
} |
37 |
|
40 |
|
38 |
src_configure() { |
41 |
src_configure() { |
|
|
42 |
# Python is required for generating x86insns.c, see |
43 |
# modules/arch/x86/Makefile.inc for more details. |
39 |
econf \ |
44 |
econf \ |
40 |
$(use_enable python) \ |
45 |
--disable-warnerror \ |
|
|
46 |
--enable-python \ |
41 |
$(use_enable python python-bindings) \ |
47 |
$(use_enable python python-bindings) \ |
42 |
$(use_enable nls) |
48 |
$(use_enable nls) |
43 |
} |
49 |
} |