From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gecode/
Date: Fri, 12 Jan 2018 22:49:14 +0000 (UTC)	[thread overview]
Message-ID: <1515797319.9b37b6d845e340a83deee1decf0e04b43fc23def.asturm@gentoo> (raw)
commit:     9b37b6d845e340a83deee1decf0e04b43fc23def
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 12 22:48:39 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Jan 12 22:48:39 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b37b6d8
dev-libs/gecode: Switch to Qt5
Package-Manager: Portage-2.3.19, Repoman-2.3.6
 dev-libs/gecode/gecode-4.4.0-r2.ebuild | 81 ++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
diff --git a/dev-libs/gecode/gecode-4.4.0-r2.ebuild b/dev-libs/gecode/gecode-4.4.0-r2.ebuild
new file mode 100644
index 00000000000..4642b6d3496
--- /dev/null
+++ b/dev-libs/gecode/gecode-4.4.0-r2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools qmake-utils
+
+DESCRIPTION="An environment for developing constraint-based applications"
+HOMEPAGE="http://www.gecode.org/"
+SRC_URI="http://www.gecode.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples gist gmp"
+
+RDEPEND="
+	gist? (
+		dev-qt/qtcore:5
+		dev-qt/qtgui:5
+		dev-qt/qtprintsupport:5
+		dev-qt/qtwidgets:5
+	)
+	gmp? (
+		dev-libs/gmp:0
+		dev-libs/mpfr:0
+	)"
+DEPEND="${RDEPEND}
+	sys-devel/bison
+	sys-devel/flex
+	doc? (
+		app-doc/doxygen
+		media-gfx/graphviz
+	)"
+
+PATCHES=( "${FILESDIR}/${PN}-4.4.0-no-examples.patch" )
+
+src_prepare() {
+	default
+
+	sed -i gecode.m4 \
+		-e "s/-ggdb//" -e "s/-O3//" -e "s/-pipe//" \
+		-e "/AC_CHECK_PROGS(QMAKE/a AC_SUBST(QMAKE,$(qt5_get_bindir)/qmake)" \
+		-e "/AC_CHECK_PROGS(MOC/a AC_SUBST(MOC,$(qt5_get_bindir)/moc)" \
+		|| die
+
+	eautoreconf
+}
+
+src_configure() {
+	 # --disable-examples prevents COMPILING the examples.
+	econf \
+		--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_test() {
+	LD_LIBRARY_PATH="${S}" emake test
+	LD_LIBRARY_PATH="${S}" ./test/test || die "test suite failed"
+}
+
+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
+		dodoc -r examples
+	fi
+}
next             reply	other threads:[~2018-01-12 22:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 22:49 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-01-12 23:31 [gentoo-commits] repo/gentoo:master commit in: dev-libs/gecode/ Andreas Sturmlechner
2018-01-12 22:49 Andreas Sturmlechner
2017-08-05 13:53 Michael Orlitzky
2017-08-05 13:53 Michael Orlitzky
2017-05-06 22:20 David Seifert
2016-09-29 17:27 Michael Palimaka
2016-08-01 13:15 Michael Orlitzky
2016-08-01 13:05 Michael Orlitzky
2016-08-01 12:50 Michael Orlitzky
2016-08-01 12:50 Michael Orlitzky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=1515797319.9b37b6d845e340a83deee1decf0e04b43fc23def.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox