From 5bf63fbc38da286dfd80f539e0fa688ff03a701c Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Mon, 5 Aug 2013 18:38:41 -0400 Subject: [PATCH] bump(dev-lang/yasm): sync with upstream --- .../portage-stable/dev-lang/yasm/ChangeLog | 241 ++++++++++++++++++ .../portage-stable/dev-lang/yasm/Manifest | 20 +- .../portage-stable/dev-lang/yasm/metadata.xml | 9 + .../dev-lang/yasm/yasm-1.2.0-r1.ebuild | 27 +- .../dev-lang/yasm/yasm-1.2.0.ebuild | 43 ++++ .../dev-lang/yasm/yasm-9999.ebuild | 62 +++++ 6 files changed, 387 insertions(+), 15 deletions(-) create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/yasm/ChangeLog create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/yasm/metadata.xml create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-9999.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/ChangeLog b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/ChangeLog new file mode 100644 index 0000000000..a7b8903d98 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/ChangeLog @@ -0,0 +1,241 @@ +# ChangeLog for dev-lang/yasm +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/ChangeLog,v 1.62 2013/06/30 15:09:42 jlec Exp $ + + 30 Jun 2013; Justin Lecher yasm-1.2.0-r1.ebuild, + yasm-9999.ebuild, metadata.xml: + Fix usage of python-r1.eclass + + 11 May 2013; Samuli Suominen yasm-1.2.0-r1.ebuild, + yasm-9999.ebuild: + Disable automagic app-text/xmlto usage to prevent manpages from getting + rebuilt unnecessarily wrt #459940 by Anton Kochkov + Pull in app-text/xmlto and app-text/docbook-xml-dtd:4.1.2 when required + Use python-r1.eclass instead of the obsolete python.eclass + +*yasm-1.2.0-r1 (15 Jan 2013) + + 15 Jan 2013; Mike Frysinger +yasm-1.2.0-r1.ebuild: + Add x32 support from upstream #435838 by Alphat-PC. + + 15 Jan 2013; Mike Frysinger yasm-1.2.0.ebuild, + yasm-9999.ebuild: + Update HOMEPAGE. + + 12 Dec 2012; Samuli Suominen metadata.xml: + Moving from amd64@ to base-system@ and adding myself to metadata.xml as well. + +*yasm-9999 (25 Sep 2012) + + 25 Sep 2012; Mike Frysinger +yasm-9999.ebuild: + Add live git ebuild #435838 by Alphat-PC. + + 16 Jun 2012; Fabian Groffen yasm-1.2.0.ebuild: + Fix autoreconf for platforms where /bin/sh doesn't understand $(xxx) + + 13 May 2012; Alexis Ballier yasm-1.2.0.ebuild: + keyword ~amd64-fbsd + + 03 Apr 2012; Mike Gilbert + +files/yasm-1.2.0-fix_cython_check.patch, yasm-1.2.0.ebuild: + Add patch to improve cython detection. Requested by Arfrever. + + 26 Jan 2012; Samuli Suominen -yasm-1.1.0-r1.ebuild, + -files/yasm-1.1.0-cython-0.14.patch, + -files/yasm-1.1.0-skip_cython_check.patch: + old + + 23 Dec 2011; Agostino Sarubbo yasm-1.2.0.ebuild: + Stable for X86, wrt bug #395775 + + 23 Dec 2011; Agostino Sarubbo yasm-1.2.0.ebuild: + Stable for AMD64, wrt bug #395775 + + 15 Dec 2011; Ulrich Mueller yasm-1.1.0-r1.ebuild, + yasm-1.2.0.ebuild: + Fix LICENSE, bug 360501 comment #12. + + 20 Nov 2011; Samuli Suominen yasm-1.1.0-r1.ebuild, + yasm-1.2.0.ebuild: + Missing BSD-2 license (frontends use it per COPYING) wrt #360501 by "Luke-Jr" + +*yasm-1.2.0 (19 Nov 2011) + + 19 Nov 2011; Samuli Suominen +yasm-1.2.0.ebuild: + Version bump. + + 26 Jan 2011; Markos Chandras yasm-1.1.0-r1.ebuild: + Stable on amd64 wrt bug #352742 + + 26 Jan 2011; Pawel Hajdan jr yasm-1.1.0-r1.ebuild: + x86 stable wrt bug #352742 + +*yasm-1.1.0-r1 (25 Dec 2010) + + 25 Dec 2010; Samuli Suominen +yasm-1.1.0-r1.ebuild, + +files/yasm-1.1.0-cython-0.14.patch: + Fix for Cython 0.14 wrt #348587 by Arfrever Frehtes Taifersar Arahesis. + + 03 Nov 2010; Pawel Hajdan jr yasm-1.1.0.ebuild: + x86 stable wrt bug #343143 + + 29 Oct 2010; Markos Chandras yasm-1.1.0.ebuild: + Stable on amd64 wrt bug #343143 + +*yasm-1.1.0 (20 Aug 2010) + + 20 Aug 2010; Samuli Suominen +yasm-1.1.0.ebuild, + +files/yasm-1.1.0-skip_cython_check.patch: + Version bump. + + 12 Jul 2010; Christian Faulhammer yasm-1.0.1.ebuild: + stable x86, bug 325273 + + 24 Jun 2010; Pacho Ramos yasm-1.0.1.ebuild: + stable amd64, bug 325273 + +*yasm-1.0.1 (03 Jun 2010) + + 03 Jun 2010; Lars Wendler +yasm-1.0.1.ebuild: + Version bump (bug #322655). + + 12 Apr 2010; Samuli Suominen yasm-1.0.0.ebuild: + LICENSE is all of Artistic, BSD, GPL-2 and LGPL-2. + +*yasm-1.0.0 (12 Apr 2010) + + 12 Apr 2010; Samuli Suominen +yasm-1.0.0.ebuild: + Version bump. + + 02 Jan 2010; Christian Faulhammer yasm-0.8.0.ebuild: + Transfer Prefix keywords + + 10 Jun 2009; Markus Meier yasm-0.8.0.ebuild: + x86 stable, bug #273035 + + 07 Jun 2009; Thomas Anderson yasm-0.8.0.ebuild: + stable amd64 as requested by Samuli Suominen to fix bug #273008. General QA + cleanup by myself and Samuli. Convert to EAPI 2 for simplicity. + + 19 Apr 2009; Markus Meier yasm-0.7.2: + x86 stable, bug #266057 + + 14 Apr 2009; Thomas Anderson yasm-0.7.2.ebuild: + stable amd64, bug 266057 + +*yasm-0.8.0 (13 Apr 2009) + + 13 Apr 2009; Mike Frysinger +yasm-0.8.0.ebuild: + Version bump. + + 12 Oct 2008; Markus Meier yasm-0.7.1.ebuild: + amd64/x86 stable, bug #241188 + + 11 Oct 2008; Markus Rothe yasm-0.6.2.ebuild, + yasm-0.7.0.ebuild, yasm-0.7.1.ebuild, yasm-0.7.2.ebuild: + Remove ~ppc64 keywords. This is useless on ppc64.. + +*yasm-0.7.2 (10 Oct 2008) + + 10 Oct 2008; Mike Frysinger +yasm-0.7.2.ebuild: + Version bump. + +*yasm-0.7.1 (12 Aug 2008) + + 12 Aug 2008; Steve Dibb +yasm-0.7.1.ebuild: + Version bump, bug 234462 + +*yasm-0.7.0 (16 Apr 2008) + + 16 Apr 2008; Ben de Groot +yasm-0.7.0.ebuild: + Version bump. + + 09 Apr 2008; Alexis Ballier yasm-0.6.2.ebuild: + keyword ~x86-fbsd + + 05 Jan 2008; Brent Baude yasm-0.6.2.ebuild: + Marking yasm-0.6.2 ~ppc64 for bug 200993 + + 26 Dec 2007; Markus Meier yasm-0.6.2.ebuild: + x86 stable, bug #200993 + + 26 Dec 2007; Samuli Suominen yasm-0.6.2.ebuild: + amd64 stable wrt #200993 + + 25 Dec 2007; Christian Heim metadata.xml: + Removing kugelfang from metadata.xml as per #46972. + + 22 Sep 2007; Christoph Mende yasm-0.6.1.ebuild: + Stable on amd64 wrt bug #193375 + + 22 Sep 2007; Christian Faulhammer yasm-0.6.1.ebuild: + stable x86, bug 193375 + +*yasm-0.6.2 (22 Sep 2007) + + 22 Sep 2007; Mike Frysinger +yasm-0.6.2.ebuild: + Version bump. + +*yasm-0.6.1 (24 Jul 2007) + + 24 Jul 2007; Mike Frysinger +yasm-0.6.1.ebuild: + Version bump. + + 13 Jul 2007; Steve Dibb yasm-0.5.0.ebuild, + yasm-0.6.0.ebuild: + amd64 stable + + 12 Jul 2007; Raúl Porcel yasm-0.6.0.ebuild: + x86 stable + + 22 Apr 2007; Danny van Dyk yasm-0.6.0.ebuild: + Remove macho object format tests in dev-lang/yasm-0.6.0 until fixed + upstream. See bug #174020. + +*yasm-0.6.0 (20 Mar 2007) + + 20 Mar 2007; Danny van Dyk +yasm-0.6.0.ebuild: + Version bump. + + 22 Feb 2007; Piotr Jaroszyński ChangeLog: + Transition to Manifest2. + + 06 Jan 2007; Danny van Dyk -yasm-0.5.0_rc1.ebuild: + QA: Removed unused versions. + +*yasm-0.5.0 (21 Dec 2006) + + 21 Dec 2006; +yasm-0.5.0.ebuild: + - version bump to upstream stable + + 02 Mar 2006; Joshua Jackson yasm-0.4.0.ebuild: + Stable on x86; bug #124567 + + 01 Mar 2006; Danny van Dyk yasm-0.4.0.ebuild, + yasm-0.5.0_rc1.ebuild: + Added NLS USE flag to the ebuilds. Thanks to Diego Petteno. + +*yasm-0.5.0_rc1 (01 Mar 2006) + + 01 Mar 2006; Danny van Dyk -yasm-0.3.0.ebuild, + yasm-0.4.0.ebuild, +yasm-0.5.0_rc1.ebuild: + Removed version 0.3.0. Marked version 0.4.0 stable on amd64. Added new + version 0.5.0. + + 26 May 2005; Sven Wegener metadata.xml: + Herd name is 'amd64' not 'amd64@gentoo.org' + +*yasm-0.4.0 (27 Mar 2005) + + 27 Mar 2005; Danny van Dyk +metadata.xml, + +yasm-0.4.0.ebuild: + Taking over maintainership. Added metadata.xml. Version bump to yasm-0.4.0. + + 01 Jun 2004; Michael Sterrett yasm-0.3.0.ebuild: + fix depend; tidy + +*yasm-0.3.0 (09 Feb 2004) + + 09 Feb 2004; yasm-0.3.0.ebuild: + New ebuild for yasm. Keyworded ~amd64 and ~x86. Ran tests that came with + package. All seems well. Needs testing with some real code. diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/Manifest b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/Manifest index a5c7902453..d1cce0d11a 100644 --- a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/Manifest +++ b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/Manifest @@ -1,2 +1,18 @@ -DIST yasm-1.2.0-x32.patch.xz 9656 RMD160 d2de60d0bc134774bd543687c64f97dc6f92b28a SHA1 97b178b24071c8ad7f09269445325d60177a6cc7 SHA256 d5a623243b1b2a73b4b25d9395a5be1483adca38cec8f50a7f1e4e9107cd9d83 -DIST yasm-1.2.0.tar.gz 1436502 RMD160 6d2baf27a45d6dbe250f972f18fb6627f50394d9 SHA1 773d28f27f83c44ac35079add0d3167ca6c1def8 SHA256 768ffab457b90a20a6d895c39749adb547c1b7cb5c108e84b151a838a23ccf31 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +AUX yasm-1.2.0-fix_cython_check.patch 790 SHA256 1d44a5ea34426c84556e93d3f5774912ca8530c582ad6f1bf738850b515d977c SHA512 5055949c13c5b4e24863f302f379831fcb26edbcfef48b3f3ee4fe742a95c0db85487a82d72a7e9fc96ad4c9fbeee0423d79032269900aeaf380cc9848ccb07b WHIRLPOOL 8810880f15c5c44cbf457ede3e0d19ef64ba68ae2cb3f595b04be1614b39f36d7803c617d29e3a2fe7248ac76285056f1ea4f1870a28b75c1da8c851827b9e22 +DIST yasm-1.2.0-x32.patch.xz 9656 SHA256 d5a623243b1b2a73b4b25d9395a5be1483adca38cec8f50a7f1e4e9107cd9d83 SHA512 93961d0690c0018a3645bc3d610b1f12172f5311609716fec0efcf8af5d70578a1fc74ab42fcc75f2b75ed8837fa03cbc66ddd6386baeb56a519e7639ff64874 WHIRLPOOL 410c940995fc31b2e12f9eec67b6873f1f4629fcdf8a58c2165ab3d9721f21e295901e8917cfd613b30ea319594aeaff21d38ec4e9bd2b693e6e3230e9d637d9 +DIST yasm-1.2.0.tar.gz 1436502 SHA256 768ffab457b90a20a6d895c39749adb547c1b7cb5c108e84b151a838a23ccf31 SHA512 e80ace766e145f6486e76da1a5a9819221b7f406745a02529b4ad220ef7f51ddd67f23d0d8b187bffc9725d9f9742ae5f3a0bb23ee5b2a61153332fb3e286b77 WHIRLPOOL 2a1fd73beeea8128c67e0172684e3dac9d0c16b9e35e905a5e313948d685da9ace15a2b18001c02c0aff9113fec9059af5984aeacf8e4ae5e8bbe91dd00d9d9e +EBUILD yasm-1.2.0-r1.ebuild 1411 SHA256 9870eb299658562a1f8e130f8f0f77043247257c33cad6eeb993606c7c61765d SHA512 0f28f859d54a9bd82e48585dcead5cbe31dbf402bc9709149897d64d9ef057c8fcd6485b656c1e8169499a4201fc753368bd44be4ef3ade50c076c02f1f20fd1 WHIRLPOOL c871d2d4f5d041c77092900619a0f785eb75819191ffa2bfbf2ebb66135fa1a936de74c88d2c4ec932d2935cbb2d36b39de241463d0b248164147bbf572ecf42 +EBUILD yasm-1.2.0.ebuild 1171 SHA256 d881b284ddabf55d8915e0bcdf48e95c2cc43a80a20f49ad43778265c538b15e SHA512 c198a3b1d8506f8cadb14880cc265d4977b18f8884a9fafd7ce01a262e70269da8cedc981ba0582bc20631ce982e42487d4d8940dce695ebac0e6069380753f0 WHIRLPOOL b5718cb617dd4997ca4fcfa02cc047cef3884a02d2ab35eb3a00f0fbb2b785897b16a069253d7a19a86c3df067bcd9cfd45cfd93a90c5277ea60032289c6f426 +EBUILD yasm-9999.ebuild 1643 SHA256 6ea216023f555460b815a2eadea661fd68cb60b756586129133d7466b432d450 SHA512 50bdbb6907141a68743e4b6ef555962ff8c44a76999ebc8efbd2cab1b6e5d1ec9e701b51d7acb6995694bb68f991f02b548361573bd779d4a5f9198c8e0b044b WHIRLPOOL 069ede27970ff44bcd63ad5c567a317fa1159f9c24689ed7b1b47510cf6625db60c112b69a19f4c5d88e6e67877d1318b05d830a49ab80c4002e52eff43b8905 +MISC ChangeLog 8047 SHA256 cdffa9c735dcc3a08e86b25007bccd5009a93a7f97f9872137c93a57dc57fcd2 SHA512 4cc0242009b7c5c357b62bb961def789f06b3e5d258ed0ff43b17d3573b787e68082c092d19784f7c387b7a4b23172ec40bdf2e68a5949f38d5366824ca1df84 WHIRLPOOL 81c0b38b398f57ab2c1a223f0b16f9a178fd4a9af9b96443b8b8a5eebeb92ede467fc130cda4a27a043eeb9f93af97f85dbc9c7eb21afeeee1c01948026a6797 +MISC metadata.xml 270 SHA256 ef58b1c4316d37bc29175e278d9664a16eb45869f908eb692acbd6e6f97e7da2 SHA512 4213dec88a84cec39d4c8f02271b0ce690cbf5c26f50a887b733f81d0f02f229ab163d7f24dd868cb16d9ce5533d8c64c980acbb6539bb009936e924e6d8b775 WHIRLPOOL be21a72d5149eb429a30ca933bbe6f97d924f13241b6368ee793b8a930d0338bc79e2b22b8ee2e9fba2f5c844016b73f211cad0ecabe6cfa8730870c84d7ae9f +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.20 (GNU/Linux) + +iEYEAREKAAYFAlHQSjcACgkQgAnW8HDreRZ2WQCeMc0hTGZgPrRXwzJJ6s/PxzHY +PeMAniO3gvpe/dBN4sGTU3XoRk1woPgx +=zlht +-----END PGP SIGNATURE----- diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/metadata.xml new file mode 100644 index 0000000000..eb72a80825 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/metadata.xml @@ -0,0 +1,9 @@ + + + + base-system + + ssuominen@gentoo.org + Samuli Suominen + + diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0-r1.ebuild b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0-r1.ebuild index ce7ab818ad..18afed96e3 100644 --- a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0-r1.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0-r1.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/yasm-1.2.0-r1.ebuild,v 1.1 2013/01/15 17:31:52 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/yasm-1.2.0-r1.ebuild,v 1.3 2013/06/30 15:09:42 jlec Exp $ -EAPI=4 -PYTHON_DEPEND="python? 2:2.7" -inherit autotools eutils python +EAPI=5 +PYTHON_COMPAT=( python{2_6,2_7} ) +inherit autotools eutils python-r1 DESCRIPTION="An assembler for x86 and x86_64 instruction sets" HOMEPAGE="http://yasm.tortall.net/" @@ -13,23 +13,22 @@ SRC_URI="http://www.tortall.net/projects/yasm/releases/${P}.tar.gz LICENSE="BSD-2 BSD || ( Artistic GPL-2 LGPL-2 )" SLOT="0" -KEYWORDS="-* amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" +KEYWORDS="-* ~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" IUSE="nls python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + RDEPEND="nls? ( virtual/libintl )" DEPEND="nls? ( sys-devel/gettext ) - python? ( >=dev-python/cython-0.14 )" + python? ( + ${PYTHON_DEPS} + >=dev-python/cython-0.14[${PYTHON_USEDEP}] + )" DOCS=( AUTHORS ) -pkg_setup() { - if use python; then - python_set_active_version 2 - python_pkg_setup - fi -} - src_prepare() { + sed -i -e 's:xmlto:&dIsAbLe:' configure.ac || die #459940 epatch "${WORKDIR}"/${P}-x32.patch #435838 chmod a+rx modules/objfmts/elf/tests/{gas,}x32/*_test.sh epatch "${FILESDIR}/${P}-fix_cython_check.patch" @@ -39,6 +38,8 @@ src_prepare() { } src_configure() { + use python && python_export_best + econf \ $(use_enable python) \ $(use_enable python python-bindings) \ diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0.ebuild b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0.ebuild new file mode 100644 index 0000000000..b743b1b69b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-1.2.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/yasm-1.2.0.ebuild,v 1.9 2013/01/15 02:41:42 vapier Exp $ + +EAPI=4 +PYTHON_DEPEND="python? 2:2.7" +inherit autotools eutils python + +DESCRIPTION="An assembler for x86 and x86_64 instruction sets" +HOMEPAGE="http://yasm.tortall.net/" +SRC_URI="http://www.tortall.net/projects/yasm/releases/${P}.tar.gz" + +LICENSE="BSD-2 BSD || ( Artistic GPL-2 LGPL-2 )" +SLOT="0" +KEYWORDS="-* amd64 x86 ~amd64-fbsd ~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.14 )" + +DOCS=( AUTHORS ) + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + epatch "${FILESDIR}/${P}-fix_cython_check.patch" + # ksh doesn't grok $(xxx), makes aclocal fail + sed -i -e '1c\#!/usr/bin/env sh' YASM-VERSION-GEN.sh || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable python) \ + $(use_enable python python-bindings) \ + $(use_enable nls) +} diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-9999.ebuild b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-9999.ebuild new file mode 100644 index 0000000000..83c7ab5abd --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/yasm/yasm-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yasm/yasm-9999.ebuild,v 1.6 2013/06/30 15:09:42 jlec Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_6,2_7} ) +inherit autotools eutils python-r1 +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://github.com/yasm/yasm.git" + inherit git-2 +else + SRC_URI="http://www.tortall.net/projects/yasm/releases/${P}.tar.gz" + KEYWORDS="-* ~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" +fi + +DESCRIPTION="An assembler for x86 and x86_64 instruction sets" +HOMEPAGE="http://yasm.tortall.net/" + +LICENSE="BSD-2 BSD || ( Artistic GPL-2 LGPL-2 )" +SLOT="0" +IUSE="nls python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="nls? ( virtual/libintl )" +DEPEND="nls? ( sys-devel/gettext ) + python? ( + ${PYTHON_DEPS} + >=dev-python/cython-0.14[${PYTHON_USEDEP}] + )" +if [[ ${PV} == 9999* ]]; then + DEPEND="${DEPEND} ${PYTHON_DEPS} app-text/xmlto app-text/docbook-xml-dtd:4.1.2" +fi + +DOCS=( AUTHORS ) + +src_prepare() { + if ! [[ ${PV} == 9999* ]]; then + sed -i -e 's:xmlto:&dIsAbLe:' configure.ac || die #459940 + fi + # ksh doesn't grok $(xxx), makes aclocal fail + sed -i -e '1c\#!/usr/bin/env sh' YASM-VERSION-GEN.sh || die + eautoreconf + + if [[ ${PV} == 9999* ]]; then + ./modules/arch/x86/gen_x86_insn.py || die + fi +} + +src_configure() { + if [[ ${PV} == 9999* ]]; then + python_export_best + else + use python && python_export_best + fi + + econf \ + --disable-warnerror \ + $(use_enable python) \ + $(use_enable python python-bindings) \ + $(use_enable nls) +}