summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-07-20 19:58:31 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-07-20 19:58:31 +0000
commit5027ddfa37114c89cd632cbf9b4ef5110ed5b5db (patch)
tree30711e2feaccceae70d000272b2f11ee7130fdb2 /sci-libs
parentVersion bump. Adds python and guile bindings as well as algorithms. Switched ... (diff)
downloadgentoo-2-5027ddfa37114c89cd632cbf9b4ef5110ed5b5db.tar.gz
gentoo-2-5027ddfa37114c89cd632cbf9b4ef5110ed5b5db.tar.bz2
gentoo-2-5027ddfa37114c89cd632cbf9b4ef5110ed5b5db.zip
Added calls to python_mod_optimize
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/nlopt/nlopt-2.2.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/sci-libs/nlopt/nlopt-2.2.ebuild b/sci-libs/nlopt/nlopt-2.2.ebuild
index 03523f5d796e..9e30bd7e6f6c 100644
--- a/sci-libs/nlopt/nlopt-2.2.ebuild
+++ b/sci-libs/nlopt/nlopt-2.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/nlopt-2.2.ebuild,v 1.1 2010/07/20 19:43:50 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/nlopt-2.2.ebuild,v 1.2 2010/07/20 19:58:31 bicatali Exp $
EAPI=3
SUPPORT_PYTHON_ABIS="1"
@@ -81,3 +81,11 @@ src_install() {
dodoc AUTHORS ChangeLog NEWS README
for r in */README; do newdoc ${r} README.$(dirname ${r}); done
}
+
+pkg_postinst() {
+ use python && python_mod_optimize ${PN}.py
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup ${PN}.py
+}