2010-12-12 07:17:06 +01:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/yasm-1.1.0.ebuild,v 1.3 2010/11/03 12:02:48 phajdan.jr Exp $
|
|
|
|
|
|
|
|
EAPI=2
|
|
|
|
PYTHON_DEPEND="python? 2:2.4"
|
|
|
|
|
|
|
|
inherit autotools eutils python
|
|
|
|
|
|
|
|
DESCRIPTION="An assembler for x86 and x86_64 instruction sets"
|
|
|
|
HOMEPAGE="http://www.tortall.net/projects/yasm/"
|
|
|
|
SRC_URI="http://www.tortall.net/projects/yasm/releases/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Artistic BSD GPL-2 LGPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="-* amd64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
|
|
|
|
IUSE="nls python"
|
|
|
|
|
|
|
|
RDEPEND="nls? ( virtual/libintl )"
|
|
|
|
DEPEND="nls? ( sys-devel/gettext )
|
|
|
|
python? ( >=dev-python/cython-0.11.3 )"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
if use python; then
|
|
|
|
python_set_active_version 2
|
|
|
|
python_pkg_setup
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${PN}-1.1.0-skip_cython_check.patch
|
2010-12-26 19:24:20 +01:00
|
|
|
epatch "${FILESDIR}"/${PN}-1.1.0-cython-0.14.patch
|
2010-12-12 07:17:06 +01:00
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
$(use_enable python) \
|
|
|
|
$(use_enable python python-bindings) \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
$(use_enable nls)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2010-12-12 09:06:58 +01:00
|
|
|
if [ "$ABI" = x86 ] ; then
|
|
|
|
emake CFLAGS_FOR_BUILD="${CFLAGS}" CC_FOR_BUILD="${CC} -std=gnu99 ${CFLAGS}"
|
|
|
|
else
|
|
|
|
emake || die
|
|
|
|
fi
|
2010-12-12 07:17:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die
|
|
|
|
dodoc AUTHORS
|
|
|
|
}
|