summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-04-08 20:43:30 +0000
committerMike Gilbert <floppym@gentoo.org>2012-04-08 20:43:30 +0000
commitde4255637a029c1a4371eb5eb4810498497d5254 (patch)
treed2c3ed3984c258802ba5d1beafac50c31c67ad4a /media-libs/libcaca
parentVersion bump; remove old (diff)
downloadgentoo-2-de4255637a029c1a4371eb5eb4810498497d5254.tar.gz
gentoo-2-de4255637a029c1a4371eb5eb4810498497d5254.tar.bz2
gentoo-2-de4255637a029c1a4371eb5eb4810498497d5254.zip
Only call python functions when USE=python.
(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.ebuild20
2 files changed, 23 insertions, 2 deletions
diff --git a/media-libs/libcaca/ChangeLog b/media-libs/libcaca/ChangeLog
index f5ac67e05ea0..3ba4cd95a1f4 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.99 2012/04/08 11:03:33 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/ChangeLog,v 1.100 2012/04/08 20:43:30 floppym Exp $
+
+ 08 Apr 2012; Mike Gilbert <floppym@gentoo.org> libcaca-0.99_beta18.ebuild:
+ Only call python functions when USE=python.
08 Apr 2012; Tim Harder <radhermit@gentoo.org> libcaca-0.99_beta18.ebuild:
Fix python support.
diff --git a/media-libs/libcaca/libcaca-0.99_beta18.ebuild b/media-libs/libcaca/libcaca-0.99_beta18.ebuild
index 44848e230005..1f5230bf43bf 100644
--- a/media-libs/libcaca/libcaca-0.99_beta18.ebuild
+++ b/media-libs/libcaca/libcaca-0.99_beta18.ebuild
@@ -1,6 +1,6 @@
# 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.2 2012/04/08 11:03:33 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.99_beta18.ebuild,v 1.3 2012/04/08 20:43:30 floppym Exp $
EAPI=4
PYTHON_DEPEND="python? 2"
@@ -50,6 +50,12 @@ S=${WORKDIR}/${MY_P}
DOCS=( AUTHORS ChangeLog NEWS NOTES README THANKS )
+pkg_setup() {
+ if use python; then
+ python_pkg_setup
+ fi
+}
+
src_prepare() {
sed -i -e '/doxygen_tests = check-doxygen/d' test/Makefile.am || die #339962
@@ -122,3 +128,15 @@ src_install() {
rm -rf "${D}"/usr/share/java
find "${D}" -name '*.la' -delete
}
+
+pkg_postinst() {
+ if use python; then
+ distutils_pkg_postinst
+ fi
+}
+
+pkg_postrm() {
+ if use python; then
+ distutils_pkg_postrm
+ fi
+}