summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2007-06-28 14:09:19 +0000
committerAli Polatel <hawking@gentoo.org>2007-06-28 14:09:19 +0000
commitde3eb96a867c06491bb9283913460ee8f0a81abd (patch)
tree54c3565315ddcde23e457bb4051a56e82caf7945 /dev-python/pyme
parentia64/x86 stable (diff)
downloadgentoo-2-de3eb96a867c06491bb9283913460ee8f0a81abd.tar.gz
gentoo-2-de3eb96a867c06491bb9283913460ee8f0a81abd.tar.bz2
gentoo-2-de3eb96a867c06491bb9283913460ee8f0a81abd.zip
apply fixes in pyme-0.6.0 to pyme-0.7.0
(Portage version: 2.1.3_rc5)
Diffstat (limited to 'dev-python/pyme')
-rw-r--r--dev-python/pyme/ChangeLog5
-rw-r--r--dev-python/pyme/pyme-0.7.0-r1.ebuild24
2 files changed, 21 insertions, 8 deletions
diff --git a/dev-python/pyme/ChangeLog b/dev-python/pyme/ChangeLog
index 3f017a6d4f9b..a025f8e7d044 100644
--- a/dev-python/pyme/ChangeLog
+++ b/dev-python/pyme/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/pyme
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/ChangeLog,v 1.19 2007/06/28 13:40:08 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/ChangeLog,v 1.20 2007/06/28 14:09:19 hawking Exp $
+
+ 28 Jun 2007; Ali Polatel <hawking@gentoo.org> pyme-0.7.0-r1.ebuild:
+ apply fixes in pyme-0.6.0 to pyme-0.7.0
28 Jun 2007; Ali Polatel <hawking@gentoo.org>
-files/pyme-0.7.0-swig-compatibility.patch,
diff --git a/dev-python/pyme/pyme-0.7.0-r1.ebuild b/dev-python/pyme/pyme-0.7.0-r1.ebuild
index f6554f13b321..39d2215c83a6 100644
--- a/dev-python/pyme/pyme-0.7.0-r1.ebuild
+++ b/dev-python/pyme/pyme-0.7.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/pyme-0.7.0-r1.ebuild,v 1.3 2007/06/28 13:40:08 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/pyme-0.7.0-r1.ebuild,v 1.4 2007/06/28 14:09:19 hawking Exp $
inherit distutils eutils
@@ -11,29 +11,39 @@ SRC_URI="mirror://sourceforge/pyme/${P}.tar.gz"
LICENSE="|| ( GPL-2 LGPL-2.1 )"
SLOT="0"
KEYWORDS="~ia64 ~ppc ~sparc ~x86"
-IUSE=""
+IUSE="doc examples"
-DEPEND=">=app-crypt/gpgme-0.9.0"
+DEPEND=">=app-crypt/gpgme-0.9.0
+ dev-lang/swig"
src_unpack() {
unpack ${A}
cd "${S}"
- sed -i -e 's:include/:include/gpgme/:;s:$(PYTHON):/usr/bin/python:' Makefile
+ sed -i \
+ -e 's:include/:include/gpgme/:' \
+ -e 's:$(PYTHON):/usr/bin/python:' \
+ -e '/-rm doc\/\*\.html$/d' \
+ Makefile || die "sed in Makefile failed"
+
# Make it build with swig >=1.3.28
epatch "${FILESDIR}/${PN}-swig-compatibility.patch"
}
src_compile() {
PYTHON="/usr/bin/python"
- emake swig
+ emake -j1 swig || die "emake swig failed"
distutils_src_compile
}
src_install() {
- mydoc="examples/*"
distutils_src_install
- dohtml -r doc/*
+ use doc && dohtml -r doc/*
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*
+ fi
}
src_test() {