diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2016-07-31 19:05:12 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2016-08-01 08:45:53 -0400 |
commit | eac999d93c087c4e5981a7edb82d1a167772fdad (patch) | |
tree | d56194439224d7f5dc21c63702d69efb8571b5c8 /dev-libs/gecode/gecode-4.4.0.ebuild | |
parent | net-fs/openafs-kernel: sync with openafs patches (diff) | |
download | gentoo-eac999d93c087c4e5981a7edb82d1a167772fdad.tar.gz gentoo-eac999d93c087c4e5981a7edb82d1a167772fdad.tar.bz2 gentoo-eac999d93c087c4e5981a7edb82d1a167772fdad.zip |
dev-libs/gecode: new version 4.4.0.
This version bump fixes at least two open bugs. The first simply asked
for a version bump, and the second reported a failure when /bin/sh is
dash (now fixed).
Along with the new version, some ebuild cleanup was done. The ebuild
is now EAPI=6, and the "gmp" USE flag was added to control building
with float constraints. Three superfluous runtime dependencies
(transitive through Qt) were removed, and two new build dependencies
needed to generate the documentation were added.
The src_test() phase has been re-enabled with an LD_LIBRARY hack to
make sure that the test suite is run against the just-build libraries.
Gentoo-Bug: 377091
Gentoo-bug: 527526
Gentoo-Bug: 567208
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-libs/gecode/gecode-4.4.0.ebuild')
-rw-r--r-- | dev-libs/gecode/gecode-4.4.0.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/dev-libs/gecode/gecode-4.4.0.ebuild b/dev-libs/gecode/gecode-4.4.0.ebuild new file mode 100644 index 000000000000..68b54f7d53eb --- /dev/null +++ b/dev-libs/gecode/gecode-4.4.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="An environment for developing constraint-based applications" +SRC_URI="http://www.gecode.org/download/${P}.tar.gz" +HOMEPAGE="http://www.gecode.org/" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples gist gmp test" + +RDEPEND=" + gist? ( + || ( + ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) + ( dev-qt/qtcore:5 dev-qt/qtgui:5 ) + ) + ) + gmp? ( + || ( dev-libs/gmp:0 sci-libs/mpir ) + dev-libs/mpfr:0 + )" +DEPEND="${RDEPEND} + doc? ( + app-doc/doxygen + media-gfx/graphviz + )" + +src_configure() { + # --disable-examples prevents COMPILING the examples. + econf \ + --docdir="/usr/share/doc/${PF}" \ + --htmldir="/usr/share/doc/${PF}/html" \ + --disable-examples \ + $(use_enable doc doc-dot) \ + $(use_enable doc doc-tagfile) \ + $(use_enable gist qt) \ + $(use_enable gist) \ + $(use_enable gmp mpfr) +} + +src_compile() { + default + use doc && emake doc +} + +src_install() { + default + + # The --docdir and --htmldir that we pass to configure don't seem to + # be respected... + use doc && dodoc -r doc/html + + if use examples; then + # The build system supports "examples", but we want to install + # their source code, not the resulting binaries. + rm -f examples/CMakeLists.txt \ + || die 'failed to remove examples/CMakeLists.txt' + dodoc -r examples + fi +} + +src_test() { + LD_LIBRARY_PATH="${S}" emake test + LD_LIBRARY_PATH="${S}" ./test/test || die "test suite failed" +} |