From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8117B138330 for ; Fri, 12 Jan 2018 22:49:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86FFCE08BF; Fri, 12 Jan 2018 22:49:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 65AC9E08BF for ; Fri, 12 Jan 2018 22:49:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6DEF335C0C for ; Fri, 12 Jan 2018 22:49:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45CF01CA for ; Fri, 12 Jan 2018 22:49:14 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1515797319.9b37b6d845e340a83deee1decf0e04b43fc23def.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gecode/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/gecode/gecode-4.4.0-r2.ebuild X-VCS-Directories: dev-libs/gecode/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 9b37b6d845e340a83deee1decf0e04b43fc23def X-VCS-Branch: master Date: Fri, 12 Jan 2018 22:49:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 76d6f648-b493-4fe0-a1b4-85b85e08a24a X-Archives-Hash: 253640c3f60338d3f6f8241e4b83ba05 commit: 9b37b6d845e340a83deee1decf0e04b43fc23def Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Jan 12 22:48:39 2018 +0000 Commit: Andreas Sturmlechner gentoo 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 +}