diff options
author | Sebastien Fabbro <sfabbro@uvic.ca> | 2012-07-19 14:42:06 -0700 |
---|---|---|
committer | Sebastien Fabbro <sfabbro@uvic.ca> | 2012-07-19 14:42:06 -0700 |
commit | 5049dc4afed6cdf4e21b40e4f267e6f2235b1a49 (patch) | |
tree | 2e12b6eecf6ac9f3690b6ef5c50cc725206d1275 /sci-libs/coinor-os/coinor-os-2.6.0.ebuild | |
parent | Merge branch 'master' of git://git.overlays.gentoo.org/proj/sci; github.com:g... (diff) | |
download | sci-5049dc4afed6cdf4e21b40e4f267e6f2235b1a49.tar.gz sci-5049dc4afed6cdf4e21b40e4f267e6f2235b1a49.tar.bz2 sci-5049dc4afed6cdf4e21b40e4f267e6f2235b1a49.zip |
sci-libs/coinor-os: Initial import
(Portage version: 2.2.01.20757-prefix/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sci-libs/coinor-os/coinor-os-2.6.0.ebuild')
-rw-r--r-- | sci-libs/coinor-os/coinor-os-2.6.0.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sci-libs/coinor-os/coinor-os-2.6.0.ebuild b/sci-libs/coinor-os/coinor-os-2.6.0.ebuild new file mode 100644 index 000000000..cf1b9bbb0 --- /dev/null +++ b/sci-libs/coinor-os/coinor-os-2.6.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit autotools-utils multilib + +MYPN=OS + +DESCRIPTION="COIN-OR Optimization Services" +HOMEPAGE="https://projects.coin-or.org/OS/" +SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz" + +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples static-libs test" + +RDEPEND=" + sci-libs/coinor-bcp + sci-libs/coinor-bonmin + sci-libs/coinor-couenne + sci-libs/coinor-clp + sci-libs/coinor-dylp + sci-libs/coinor-symphony + sci-libs/coinor-utils + sci-libs/coinor-vol + sci-libs/ipopt" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen[dot] ) + test? ( sci-libs/coinor-sample )" + +# fail because coinor-bonmin, couenne, needs hsl library (annoying registration) +RESTRICT=test + +S="${WORKDIR}/${MYPN}-${PV}/${MYPN}" + +src_prepare() { + # as-needed fix + # hack to avoid eautoreconf (coinor has its own weird autotools) + sed -i \ + -e 's:\(libOS_la_LIBADD.*=\):\1 @OSLIB_LIBS@:g' \ + src/Makefile.in || die + # bug for later versions of subversions + sed -i \ + -e 's/xexported/xexported -a "x$svn_rev_tmp" != "xUnversioned directory"/' \ + configure || die +} + +src_configure() { + # autodetect everyting with pkg-config + # TOFIX: should we do use flags? + local myeconfargs=() + PKG_CONFIG_PATH+="${ED}"/usr/$(get_libdir)/pkgconfig \ + autotools-utils_src_configure +} + +src_test() { + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die + emake test + popd > /dev/null || die +} + +src_install() { + autotools-utils_src_install + use doc && dodoc doc/*.pdf +} |