From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1Srxil-0007GX-H6 for garchives@archives.gentoo.org; Thu, 19 Jul 2012 20:53:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92802E0605; Thu, 19 Jul 2012 20:52:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 546A0E0603 for ; Thu, 19 Jul 2012 20:52:33 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 994251B40B7 for ; Thu, 19 Jul 2012 20:52:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4C198E543E for ; Thu, 19 Jul 2012 20:52:30 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1342723084.698ecefbbe3d07005666b99325312c08ce211d9e.bicatali@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/coinor-couenne/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/coinor-couenne/ChangeLog sci-libs/coinor-couenne/coinor-couenne-0.4.2.ebuild sci-libs/coinor-couenne/metadata.xml X-VCS-Directories: sci-libs/coinor-couenne/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 698ecefbbe3d07005666b99325312c08ce211d9e X-VCS-Branch: master Date: Thu, 19 Jul 2012 20:52:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 2f3513f3-fbd6-4c23-aa08-c8a62f95f00e X-Archives-Hash: 0e269ec9273d9bb4b6a1eec94903f7b5 commit: 698ecefbbe3d07005666b99325312c08ce211d9e Author: Sebastien Fabbro uvic ca> AuthorDate: Thu Jul 19 18:38:04 2012 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Thu Jul 19 18:38:04 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D698ecefb sci-libs/coinor-couenne: Initial import (Portage version: 2.2.01.20757-prefix/git/Linux x86_64, unsigned Manifest= commit) --- sci-libs/coinor-couenne/ChangeLog | 9 +++ .../coinor-couenne/coinor-couenne-0.4.2.ebuild | 65 ++++++++++++++= ++++++ sci-libs/coinor-couenne/metadata.xml | 12 ++++ 3 files changed, 86 insertions(+), 0 deletions(-) diff --git a/sci-libs/coinor-couenne/ChangeLog b/sci-libs/coinor-couenne/= ChangeLog new file mode 100644 index 0000000..eaf936c --- /dev/null +++ b/sci-libs/coinor-couenne/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-libs/coinor-couenne +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*coinor-couenne-0.4.2 (19 Jul 2012) + + 19 Jul 2012; S=C3=A9bastien Fabbro + +coinor-couenne-0.4.2.ebuild, +metadata.xml: + sci-libs/coinor-couenne: Initial import diff --git a/sci-libs/coinor-couenne/coinor-couenne-0.4.2.ebuild b/sci-li= bs/coinor-couenne/coinor-couenne-0.4.2.ebuild new file mode 100644 index 0000000..35588e9 --- /dev/null +++ b/sci-libs/coinor-couenne/coinor-couenne-0.4.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D4 + +inherit autotools-utils multilib + +MYPN=3DCouenne + +DESCRIPTION=3D"COIN-OR Convex Over and Under ENvelopes for Nonlinear Est= imation" +HOMEPAGE=3D"https://projects.coin-or.org/Couenne/" +SRC_URI=3D"http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.= tgz" + +LICENSE=3D"EPL-1.0" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE=3D"doc static-libs test" + +RDEPEND=3D"sci-libs/coinor-bonmin" +DEPEND=3D"${RDEPEND} + virtual/pkgconfig" + +S=3D"${WORKDIR}/${MYPN}-${PV}/${MYPN}" + +src_prepare() { + # as-needed fix + # hack to avoid eautoreconf (coinor has its own weird autotools) + sed -i \ + -e 's:\(libBonCouenne_la_LIBADD.*=3D\).*:\1 $(top_builddir)/src/libCou= enne.la:' \ + src/main/Makefile.in || die + + sed -i \ + -e '/LINK/s/$(libCouenne_la_LIBADD)/@COUENNELIB_LIBS@ $(libCouenne_la_= LIBADD)/' \ + src/Makefile.in || die + + # missing includes from Bonmin + ln -s ../../../Bonmin/src/Interfaces/BonExitCodes.hpp \ + src/main/BonExitCodes.hpp + ln -s ../../../Bonmin/src/Algorithms/QuadCuts/BonLinearCutsGenerator.hp= p \ + src/main/BonLinearCutsGenerator.hpp +} + +src_configure() { + PKG_CONFIG_PATH+=3D"${ED}"/usr/$(get_libdir)/pkgconfig \ + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + # resolve as-needed + # circular dependencies between libCouenne and libBonCouenne :( + pushd ${AUTOTOOLS_BUILD_DIR}/src > /dev/null + rm libCouenne.la main/libBonCouenne.la || die + emake LIBS+=3D"-Lmain/.libs -lBonCouenne" libCouenne.la + emake -C main + popd > /dev/null +} + +src_install() { + autotools-utils_src_install + use doc && dodoc doc/couenne-user-manual.pdf + # already installed + rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die +} diff --git a/sci-libs/coinor-couenne/metadata.xml b/sci-libs/coinor-couen= ne/metadata.xml new file mode 100644 index 0000000..77cb214 --- /dev/null +++ b/sci-libs/coinor-couenne/metadata.xml @@ -0,0 +1,12 @@ + + + +sci + + Couenne (Convex Over and Under ENvelopes for Nonlinear Estimation) + is a spatial branch and bound algorithm that implements linearization,= bound + reduction, and branching techniques for Mixed-integer, Nonlinear + Programming (MINLP) problems. The purpose of Couenne is to find global + optima of nonconvex MINLPs. + +