public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-libs/nlopt: metadata.xml ChangeLog nlopt-2.2.ebuild nlopt-1.0.1.ebuild
@ 2010-07-20 19:43 Sebastien Fabbro (bicatali)
  0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro (bicatali) @ 2010-07-20 19:43 UTC (permalink / raw
  To: gentoo-commits

bicatali    10/07/20 19:43:50

  Modified:             metadata.xml ChangeLog
  Added:                nlopt-2.2.ebuild
  Removed:              nlopt-1.0.1.ebuild
  Log:
  Version bump. Adds python and guile bindings as well as algorithms. Switched to EAPI3, added support for multiple python
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  sci-libs/nlopt/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/metadata.xml?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/metadata.xml?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/metadata.xml?r1=1.1&r2=1.2

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-libs/nlopt/metadata.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- metadata.xml	10 Jul 2009 19:27:20 -0000	1.1
+++ metadata.xml	20 Jul 2010 19:43:50 -0000	1.2
@@ -7,15 +7,13 @@
   providing a common interface for a number of different free
   optimization routines available online as well as original
   implementations of various other algorithms. Its features include:
-    * Callable from C, C++, Fortran, GNU Octave, and Matlab.
+    * Callable from variety of languages (C, C++, Fortran, Python, Octave,...)
     * A common interface for many different algorithms—try a different
     algorithm just by changing one parameter.
     * Both global and local optimization algorithms.
     * Both derivative-free and gradient-based optimization algorithms.
     * Algorithms for unconstrained optimization, bound-constrained
     optimization, and general nonlinear inequality constraints.
-    * Free/open-source software under the GNU LGPL (and looser
-    licenses for some portions of NLopt). 
 </longdescription>
 <use>
   <flag name='octave'>Add plugin for <pkg>sci-mathematics/octave</pkg></flag> 



1.4                  sci-libs/nlopt/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?r1=1.3&r2=1.4

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ChangeLog	24 Nov 2009 13:52:00 -0000	1.3
+++ ChangeLog	20 Jul 2010 19:43:50 -0000	1.4
@@ -1,6 +1,13 @@
 # ChangeLog for sci-libs/nlopt
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v 1.3 2009/11/24 13:52:00 markusle Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v 1.4 2010/07/20 19:43:50 bicatali Exp $
+
+*nlopt-2.2 (20 Jul 2010)
+
+  20 Jul 2010; Sébastien Fabbro <bicatali@gentoo.org> -nlopt-1.0.1.ebuild,
+  -files/nlopt-1.0.1-qsort.patch, +nlopt-2.2.ebuild, metadata.xml:
+  Version bump. Adds python and guile bindings as well as algorithms.
+  Switched to EAPI3, added support for multiple python
 
   24 Nov 2009; Markus Dittrich <markusle@gentoo.org> nlopt-1.2.ebuild:
   Added missing configure switch for octave use flag.



1.1                  sci-libs/nlopt/nlopt-2.2.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/nlopt-2.2.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/nlopt-2.2.ebuild?rev=1.1&content-type=text/plain

Index: nlopt-2.2.ebuild
===================================================================
# 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 $

EAPI=3
SUPPORT_PYTHON_ABIS="1"
PYTHON_DEPEND="python? *"
inherit eutils python

DESCRIPTION="Non-linear optimization library"
HOMEPAGE="http://ab-initio.mit.edu/nlopt/"
SRC_URI="${HOMEPAGE}/${P}.tar.gz"

LICENSE="LGPL-2.1 MIT"
KEYWORDS="~amd64 ~x86"

SLOT="0"
IUSE="cxx guile octave python static-libs"

DEPEND="guile? ( dev-scheme/guile )
	octave? ( sci-mathematics/octave )
	python? ( dev-python/numpy )"
RDEPEND="${DEPEND}"

src_prepare() {
	if use python; then
		sed -i \
			-e '/^LTLIBRARIES/s:$(pyexec_LTLIBRARIES)::g' \
			swig/Makefile.in || die
		echo '#!/bin/sh' > py-compile
	fi
}

src_configure() {
	if use octave; then
		export OCT_INSTALL_DIR="${EPREFIX}"/usr/libexec/octave/site/oct/${CHOST}
		export M_INSTALL_DIR="${EPREFIX}"/usr/share/octave/site/m
	else
		export MKOCTFILE=None
	fi
	econf \
		--enable-shared \
		$(use_enable static-libs static) \
		$(use_with cxx) \
		$(use_with guile) \
		$(use_with octave) \
		$(use_with python)
}

src_compile() {
	default
	if use python; then
		python_copy_sources swig
		compilation() {
			emake \
				PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
				PYTHON_LDFLAGS="$(python_get_library -l)" \
				PYTHON_SITE_PKG="$(python_get_sitedir)" \
				PYTHON_VERSION="$(python_get_version)" \
				pyexecdir="$(python_get_sitedir)" \
				_nlopt.la
		}
		python_execute_function -s --source-dir swig compilation
	fi
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	if use python; then
		installation() {
			emake \
				DESTDIR="${D}" \
				pyexecdir="$(python_get_sitedir)" \
				pythondir="$(python_get_sitedir)" \
				install
		}
		python_execute_function -s --source-dir swig installation
		python_clean_installation_image
	fi

	dodoc AUTHORS ChangeLog NEWS README
	for r in */README; do newdoc ${r} README.$(dirname ${r}); done
}






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

only message in thread, other threads:[~2010-07-20 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20 19:43 [gentoo-commits] gentoo-x86 commit in sci-libs/nlopt: metadata.xml ChangeLog nlopt-2.2.ebuild nlopt-1.0.1.ebuild 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