summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-04-08 11:03:33 +0000
committerTim Harder <radhermit@gentoo.org>2012-04-08 11:03:33 +0000
commit51f59b703ca0a48ac4a9908ee645c30683ec00e8 (patch)
tree7393f0911b838a73e610d874d0c4654ea91e2a85 /media-libs/libcaca
parentVersion bump, remove broken version. (diff)
downloadgentoo-2-51f59b703ca0a48ac4a9908ee645c30683ec00e8.tar.gz
gentoo-2-51f59b703ca0a48ac4a9908ee645c30683ec00e8.tar.bz2
gentoo-2-51f59b703ca0a48ac4a9908ee645c30683ec00e8.zip
Fix python support.
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libcaca')
-rw-r--r--media-libs/libcaca/ChangeLog5
-rw-r--r--media-libs/libcaca/libcaca-0.99_beta18.ebuild24
2 files changed, 24 insertions, 5 deletions
diff --git a/media-libs/libcaca/ChangeLog b/media-libs/libcaca/ChangeLog
index a2714b3fe62f..f5ac67e05ea0 100644
--- a/media-libs/libcaca/ChangeLog
+++ b/media-libs/libcaca/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/libcaca
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/ChangeLog,v 1.98 2012/04/08 08:56:25 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/ChangeLog,v 1.99 2012/04/08 11:03:33 radhermit Exp $
+
+ 08 Apr 2012; Tim Harder <radhermit@gentoo.org> libcaca-0.99_beta18.ebuild:
+ Fix python support.
*libcaca-0.99_beta18 (08 Apr 2012)
diff --git a/media-libs/libcaca/libcaca-0.99_beta18.ebuild b/media-libs/libcaca/libcaca-0.99_beta18.ebuild
index 46178e4d62f3..44848e230005 100644
--- a/media-libs/libcaca/libcaca-0.99_beta18.ebuild
+++ b/media-libs/libcaca/libcaca-0.99_beta18.ebuild
@@ -1,12 +1,15 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.99_beta18.ebuild,v 1.1 2012/04/08 08:56:25 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.99_beta18.ebuild,v 1.2 2012/04/08 11:03:33 radhermit Exp $
EAPI=4
-PYTHON_DEPEND="*"
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
PYTHON_MODNAME="caca"
+DISTUTILS_SETUP_FILES=("python|setup.py")
-inherit autotools flag-o-matic mono multilib java-pkg-opt-2 python
+inherit autotools flag-o-matic mono multilib java-pkg-opt-2 distutils
MY_P=${P/_/.}
@@ -81,14 +84,15 @@ src_configure() {
use mono && export CSC=gmcs #329651
export VARTEXFONTS="${T}/fonts" #44128
+ # python bindings are built via distutils
econf \
+ --disable-python \
$(use_enable static-libs static) \
$(use_enable slang) \
$(use_enable ncurses) \
$(use_enable X x11) $(use_with X x) --x-libraries=/usr/$(get_libdir) \
$(use_enable opengl gl) \
$(use_enable mono csharp) \
- $(use_enable python) \
$(use_enable java) \
$(use_enable cxx) \
$(use_enable ruby) \
@@ -96,9 +100,21 @@ src_configure() {
$(use_enable doc)
}
+src_compile() {
+ default
+
+ if use python ; then
+ distutils_src_compile
+ fi
+}
+
src_install() {
default
+ if use python ; then
+ distutils_src_install
+ fi
+
if use java; then
java-pkg_newjar java/libjava.jar
fi