summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-10 19:54:30 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-10 19:54:30 +0000
commit8dc040fa13c18b3f63983ed92e4396873b7cec1d (patch)
tree09c9bf48098f584c28e2db7cea8bdd3d1bd040c4 /dev-libs/syck
parentarm stable, bug #361033 (diff)
downloadhistorical-8dc040fa13c18b3f63983ed92e4396873b7cec1d.tar.gz
historical-8dc040fa13c18b3f63983ed92e4396873b7cec1d.tar.bz2
historical-8dc040fa13c18b3f63983ed92e4396873b7cec1d.zip
Set SUPPORT_PYTHON_ABIS (bug #312205).
Package-Manager: portage-2.2.0_alpha29_p10/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/syck')
-rw-r--r--dev-libs/syck/ChangeLog8
-rw-r--r--dev-libs/syck/syck-0.55-r4.ebuild49
2 files changed, 42 insertions, 15 deletions
diff --git a/dev-libs/syck/ChangeLog b/dev-libs/syck/ChangeLog
index e3ec722f5484..007b7a04b1df 100644
--- a/dev-libs/syck/ChangeLog
+++ b/dev-libs/syck/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/syck
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/syck/ChangeLog,v 1.28 2010/05/19 13:37:36 dagger Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/syck/ChangeLog,v 1.29 2011/04/10 19:54:30 arfrever Exp $
+
+ 10 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ syck-0.55-r4.ebuild:
+ Set SUPPORT_PYTHON_ABIS (bug #312205).
19 May 2010; Robert Piasek <dagger@gentoo.org> syck-0.55-r4.ebuild:
added ~arm keyword
diff --git a/dev-libs/syck/syck-0.55-r4.ebuild b/dev-libs/syck/syck-0.55-r4.ebuild
index 1dd639950ff0..11dfc8e3b4c3 100644
--- a/dev-libs/syck/syck-0.55-r4.ebuild
+++ b/dev-libs/syck/syck-0.55-r4.ebuild
@@ -1,35 +1,50 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/syck/syck-0.55-r4.ebuild,v 1.14 2010/05/19 13:37:36 dagger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/syck/syck-0.55-r4.ebuild,v 1.15 2011/04/10 19:54:30 arfrever Exp $
-inherit eutils flag-o-matic distutils
+EAPI="3"
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit distutils eutils flag-o-matic
-IUSE="php python"
DESCRIPTION="Syck is an extension for reading and writing YAML swiftly in popular scripting languages."
HOMEPAGE="http://whytheluckystiff.net/syck/"
SRC_URI="http://rubyforge.org/frs/download.php/4492/${P}.tar.gz"
+
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos"
-DEPEND="python? ( dev-lang/python !dev-python/pysyck )"
+IUSE="php python"
+
+DEPEND="python? ( !dev-python/pysyck )"
RDEPEND="${DEPEND}"
PDEPEND="php? ( dev-php5/pecl-syck
!=dev-libs/syck-0.55-r1 )"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+PYTHON_MODNAME="yaml2xml.py ydump.py ypath.py"
+
+pkg_setup() {
+ use python && python_pkg_setup
+}
+
+src_prepare() {
epatch "${FILESDIR}/syck-0.55-64bit.patch"
}
-src_compile() {
+
+src_configure() {
append-flags -fPIC
econf
+}
+
+src_compile() {
emake
if use python; then
- pushd ext/python
+ pushd ext/python > /dev/null
distutils_src_compile
- popd
+ popd > /dev/null
fi
}
@@ -37,8 +52,16 @@ src_install() {
einstall
if use python; then
- pushd ext/python
+ pushd ext/python > /dev/null
distutils_src_install
- popd
+ popd > /dev/null
fi
}
+
+pkg_postinst() {
+ use python && distutils_pkg_postinst
+}
+
+pkg_postrm() {
+ use python && distutils_pkg_postrm
+}