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 | |
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')
-rw-r--r-- | dev-libs/gecode/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/gecode/gecode-4.4.0.ebuild | 70 | ||||
-rw-r--r-- | dev-libs/gecode/metadata.xml | 6 |
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-libs/gecode/Manifest b/dev-libs/gecode/Manifest index a9908f77b332..1c0230cc43e5 100644 --- a/dev-libs/gecode/Manifest +++ b/dev-libs/gecode/Manifest @@ -1 +1,2 @@ DIST gecode-3.7.3.tar.gz 1643336 SHA256 e7cc8bcc18b49195fef0544061bdd2e484a1240923e4e85fa39e8d6bb492854c SHA512 292bafeaca3911b8af40d7c0f425cf0263f4408afad47f4f229a821ce89d06dc69ad1feeeef72531a1e711d797d249581b67c2d9cfdc9e544240012c838d2a5b WHIRLPOOL 5aad39285c73e2d918fca98b694b33e00b11fcc21d542a37e23424acc381696f20826d6c28a33a5cde8fbfdfd4254d05791f2db903903306887e4c4fdecb7104 +DIST gecode-4.4.0.tar.gz 2889186 SHA256 b45783cc8d0d5dbbd3385a263a2199e6ad7f9a286e92607de81aa0c1105769cb SHA512 5189a3c5f9f34371a0bc94528e8ca65efb0a3078ec158887f47a816d6fe3c879a7e908ee421414bc317754333ecb73806c8fc46b0b6b7d8419cdf6f13a4f8aef WHIRLPOOL a01541d86883eadfcbb45eb7df486ac8d9fa4f656dede937625b00c8f47d1898e42d1fc6004b073392a179b895bc5181585b71693d47e88317a658eb3ecf3252 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" +} diff --git a/dev-libs/gecode/metadata.xml b/dev-libs/gecode/metadata.xml index 06c06643b9e6..8d557682e960 100644 --- a/dev-libs/gecode/metadata.xml +++ b/dev-libs/gecode/metadata.xml @@ -7,4 +7,10 @@ Enable Gist, the Gecode Interactive Search Tool </flag> </use> + <use> + <flag name="gmp"> + Enable trigonometric and transcendental float + constraints + </flag> + </use> </pkgmetadata> |