public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/oosuite: oosuite-0.42.ebuild ChangeLog
@ 2012-11-01 19:30 Sebastien Fabbro (bicatali)
  0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro (bicatali) @ 2012-11-01 19:30 UTC (permalink / raw
  To: gentoo-commits

bicatali    12/11/01 19:30:56

  Modified:             ChangeLog
  Added:                oosuite-0.42.ebuild
  Log:
  Version bump
  
  (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

Revision  Changes    Path
1.6                  dev-python/oosuite/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?r1=1.5&r2=1.6

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ChangeLog	19 Oct 2012 04:46:28 -0000	1.5
+++ ChangeLog	1 Nov 2012 19:30:56 -0000	1.6
@@ -1,6 +1,11 @@
 # ChangeLog for dev-python/oosuite
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v 1.5 2012/10/19 04:46:28 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v 1.6 2012/11/01 19:30:56 bicatali Exp $
+
+*oosuite-0.42 (01 Nov 2012)
+
+  01 Nov 2012; Sébastien Fabbro <bicatali@gentoo.org> +oosuite-0.42.ebuild:
+  Version bump
 
   19 Oct 2012; Patrick Lauer <patrick@gentoo.org> oosuite-0.38.ebuild,
   oosuite-0.39.ebuild:



1.1                  dev-python/oosuite/oosuite-0.42.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/oosuite-0.42.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/oosuite-0.42.ebuild?rev=1.1&content-type=text/plain

Index: oosuite-0.42.ebuild
===================================================================
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/oosuite-0.42.ebuild,v 1.1 2012/11/01 19:30:56 bicatali Exp $

EAPI=4

# python eclass cruft
SUPPORT_PYTHON_ABIS="1"
PYTHON_USE_WITH="tk?"
RESTRICT_PYTHON_ABIS="2.4 2.7-pypy-* *-jython 3.3"

inherit distutils eutils

MYPN="OOSuite"
MYPID="f/f3"

DESCRIPTION="OpenOpt suite of Python modules for numerical optimization"
HOMEPAGE="http://openopt.org/"
SRC_URI="http://openopt.org/images/${MYPID}/${MYPN}.zip -> ${MYPN}-${PV}.zip"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples minimal tk"

RDEPEND="dev-python/numpy
	!minimal? (
		dev-python/cvxopt[glpk]
		dev-python/lp_solve
		dev-python/matplotlib
		dev-python/setproctitle
		sci-libs/nlopt[python]
		sci-libs/scipy )"
DEPEND="app-arch/unzip
	dev-python/numpy
	dev-python/setuptools"

S="${WORKDIR}/PythonPackages"

src_prepare() {
	OO_DIRS="DerApproximator FuncDesigner OpenOpt SpaceFuncs"
	find . -name "*COPYING*" -delete
	# move all examples and tests to ease installation in proper directory
	mkdir "${WORKDIR}/examples"
	local d e
	for d in ${OO_DIRS}; do
		mkdir "${WORKDIR}/examples/${d}"
		for e in $(find ${d} -type d -name examples -or -name tests -or -name doc); do
			mv ${e} "${WORKDIR}/examples/${d}/" || die
		done
	done
}

src_compile() {
	local d
	for d in ${OO_DIRS}; do
		pushd ${d} > /dev/null
		distutils_src_compile
		popd > /dev/null
	done
}

src_test() {
	testing() {
		local d t oldpath=${PYTHONPATH}
		for d in ${OO_DIRS}; do
			PYTHONPATH="${S}/${d}/build-${PYTHON_ABI}/lib:${PYTHONPATH}"
		done
		export PYTHONPATH
		cd "${WORKDIR}"/examples
		for t in \
			DerApproximator/tests/t_check.py \
			FuncDesigner/examples/sle1.py \
			OpenOpt/examples/nlp_1.py \
			SpaceFuncs/examples/triangle.py
		do
			"$(PYTHON)" ${t}
		done
		export PYTHONPATH=${oldpath}
	}
	python_execute_function testing
}

src_install() {
	local d
	for d in ${OO_DIRS}; do
		pushd ${d} > /dev/null
		distutils_src_install
		popd > /dev/null
	done
	if use examples; then
		insinto /usr/share/doc/${PF}
		doins -r "${WORKDIR}"/examples
	fi
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-01 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01 19:30 [gentoo-commits] gentoo-x86 commit in dev-python/oosuite: oosuite-0.42.ebuild ChangeLog Sebastien Fabbro (bicatali)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox