Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gecode/
Date: Mon, 01 Aug 2016 12:50:48
Message-Id: 1470055553.eac999d93c087c4e5981a7edb82d1a167772fdad.mjo@gentoo
1 commit: eac999d93c087c4e5981a7edb82d1a167772fdad
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 23:05:12 2016 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 12:45:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eac999d9
7
8 dev-libs/gecode: new version 4.4.0.
9
10 This version bump fixes at least two open bugs. The first simply asked
11 for a version bump, and the second reported a failure when /bin/sh is
12 dash (now fixed).
13
14 Along with the new version, some ebuild cleanup was done. The ebuild
15 is now EAPI=6, and the "gmp" USE flag was added to control building
16 with float constraints. Three superfluous runtime dependencies
17 (transitive through Qt) were removed, and two new build dependencies
18 needed to generate the documentation were added.
19
20 The src_test() phase has been re-enabled with an LD_LIBRARY hack to
21 make sure that the test suite is run against the just-build libraries.
22
23 Gentoo-Bug: 377091
24 Gentoo-bug: 527526
25 Gentoo-Bug: 567208
26
27 Package-Manager: portage-2.2.28
28
29 dev-libs/gecode/Manifest | 1 +
30 dev-libs/gecode/gecode-4.4.0.ebuild | 70 +++++++++++++++++++++++++++++++++++++
31 dev-libs/gecode/metadata.xml | 6 ++++
32 3 files changed, 77 insertions(+)
33
34 diff --git a/dev-libs/gecode/Manifest b/dev-libs/gecode/Manifest
35 index a9908f7..1c0230c 100644
36 --- a/dev-libs/gecode/Manifest
37 +++ b/dev-libs/gecode/Manifest
38 @@ -1 +1,2 @@
39 DIST gecode-3.7.3.tar.gz 1643336 SHA256 e7cc8bcc18b49195fef0544061bdd2e484a1240923e4e85fa39e8d6bb492854c SHA512 292bafeaca3911b8af40d7c0f425cf0263f4408afad47f4f229a821ce89d06dc69ad1feeeef72531a1e711d797d249581b67c2d9cfdc9e544240012c838d2a5b WHIRLPOOL 5aad39285c73e2d918fca98b694b33e00b11fcc21d542a37e23424acc381696f20826d6c28a33a5cde8fbfdfd4254d05791f2db903903306887e4c4fdecb7104
40 +DIST gecode-4.4.0.tar.gz 2889186 SHA256 b45783cc8d0d5dbbd3385a263a2199e6ad7f9a286e92607de81aa0c1105769cb SHA512 5189a3c5f9f34371a0bc94528e8ca65efb0a3078ec158887f47a816d6fe3c879a7e908ee421414bc317754333ecb73806c8fc46b0b6b7d8419cdf6f13a4f8aef WHIRLPOOL a01541d86883eadfcbb45eb7df486ac8d9fa4f656dede937625b00c8f47d1898e42d1fc6004b073392a179b895bc5181585b71693d47e88317a658eb3ecf3252
41
42 diff --git a/dev-libs/gecode/gecode-4.4.0.ebuild b/dev-libs/gecode/gecode-4.4.0.ebuild
43 new file mode 100644
44 index 0000000..68b54f7
45 --- /dev/null
46 +++ b/dev-libs/gecode/gecode-4.4.0.ebuild
47 @@ -0,0 +1,70 @@
48 +# Copyright 1999-2016 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +# $Id$
51 +
52 +EAPI=6
53 +
54 +DESCRIPTION="An environment for developing constraint-based applications"
55 +SRC_URI="http://www.gecode.org/download/${P}.tar.gz"
56 +HOMEPAGE="http://www.gecode.org/"
57 +
58 +SLOT="0"
59 +LICENSE="MIT"
60 +KEYWORDS="~amd64 ~x86"
61 +IUSE="doc examples gist gmp test"
62 +
63 +RDEPEND="
64 + gist? (
65 + || (
66 + ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
67 + ( dev-qt/qtcore:5 dev-qt/qtgui:5 )
68 + )
69 + )
70 + gmp? (
71 + || ( dev-libs/gmp:0 sci-libs/mpir )
72 + dev-libs/mpfr:0
73 + )"
74 +DEPEND="${RDEPEND}
75 + doc? (
76 + app-doc/doxygen
77 + media-gfx/graphviz
78 + )"
79 +
80 +src_configure() {
81 + # --disable-examples prevents COMPILING the examples.
82 + econf \
83 + --docdir="/usr/share/doc/${PF}" \
84 + --htmldir="/usr/share/doc/${PF}/html" \
85 + --disable-examples \
86 + $(use_enable doc doc-dot) \
87 + $(use_enable doc doc-tagfile) \
88 + $(use_enable gist qt) \
89 + $(use_enable gist) \
90 + $(use_enable gmp mpfr)
91 +}
92 +
93 +src_compile() {
94 + default
95 + use doc && emake doc
96 +}
97 +
98 +src_install() {
99 + default
100 +
101 + # The --docdir and --htmldir that we pass to configure don't seem to
102 + # be respected...
103 + use doc && dodoc -r doc/html
104 +
105 + if use examples; then
106 + # The build system supports "examples", but we want to install
107 + # their source code, not the resulting binaries.
108 + rm -f examples/CMakeLists.txt \
109 + || die 'failed to remove examples/CMakeLists.txt'
110 + dodoc -r examples
111 + fi
112 +}
113 +
114 +src_test() {
115 + LD_LIBRARY_PATH="${S}" emake test
116 + LD_LIBRARY_PATH="${S}" ./test/test || die "test suite failed"
117 +}
118
119 diff --git a/dev-libs/gecode/metadata.xml b/dev-libs/gecode/metadata.xml
120 index 06c0664..8d55768 100644
121 --- a/dev-libs/gecode/metadata.xml
122 +++ b/dev-libs/gecode/metadata.xml
123 @@ -7,4 +7,10 @@
124 Enable Gist, the Gecode Interactive Search Tool
125 </flag>
126 </use>
127 + <use>
128 + <flag name="gmp">
129 + Enable trigonometric and transcendental float
130 + constraints
131 + </flag>
132 + </use>
133 </pkgmetadata>