public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/minisat/
Date: Thu,  8 Sep 2016 22:09:22 +0000 (UTC)	[thread overview]
Message-ID: <1473372462.5eda6c0e3cd443dfa5cae9320910d4c65547affa.soap@gentoo> (raw)

commit:     5eda6c0e3cd443dfa5cae9320910d4c65547affa
Author:     Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
AuthorDate: Thu Sep  8 15:10:10 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Sep  8 22:07:42 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eda6c0e

sci-mathematics/minisat: revbump (EAPI 2 -> 6)

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2279

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-mathematics/minisat/minisat-2.2.0-r4.ebuild | 66 +++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/sci-mathematics/minisat/minisat-2.2.0-r4.ebuild b/sci-mathematics/minisat/minisat-2.2.0-r4.ebuild
new file mode 100644
index 00000000..20c5ee3
--- /dev/null
+++ b/sci-mathematics/minisat/minisat-2.2.0-r4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Small yet efficient SAT solver with reference paper"
+HOMEPAGE="http://minisat.se/Main.html"
+SRC_URI="http://minisat.se/downloads/${P}.tar.gz
+	doc? ( http://minisat.se/downloads/MiniSat.pdf )"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="MIT"
+
+IUSE="debug doc extended-solver"
+
+DEPEND="sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+DOCS=( README doc/ReleaseNotes-2.2.0.txt )
+PATCHES=( "${FILESDIR}"/${P}-header_fix.patch )
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+	default
+	sed -e "s/\$(CXX) \$^/\$(CXX) \$(LDFLAGS) \$^/" \
+		-i -e "s|-O3|${CFLAGS}|" mtl/template.mk || die
+}
+
+src_configure() {
+	myconf=$(usex debug d r)
+	myext=$(usex debug debug release)
+	mydir=$(usex extended-solver simp core)
+
+	tc-export CXX
+}
+
+src_compile() {
+	export MROOT="${S}"
+	emake -C ${mydir} ${myconf}
+	LIB="${PN}" emake -C ${mydir} lib${myconf}
+}
+
+src_install() {
+	insinto /usr/include/${PN}2/mtl
+	doins mtl/*.h
+
+	insinto /usr/include/${PN}2/core
+	doins core/Solver*.h
+
+	insinto /usr/include/${PN}2/simp
+	doins simp/Simp*.h
+
+	insinto /usr/include/${PN}2/utils
+	doins utils/*.h
+
+	newbin ${mydir}/${PN}_${myext} ${PN}
+	newlib.a ${mydir}/lib${PN}_${myext}.a lib${PN}.a
+
+	use doc && DOCS+=( "${DISTDIR}"/MiniSat.pdf )
+	einstalldocs
+}


             reply	other threads:[~2016-09-08 22:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08 22:09 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-09-08 22:09 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/minisat/ David Seifert
2016-09-13  8:04 David Seifert
2019-10-21 14:32 Joonas Niilola
2021-12-26 15:41 Maciej Barć
2022-01-24  9:32 David Seifert

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=1473372462.5eda6c0e3cd443dfa5cae9320910d4c65547affa.soap@gentoo \
    --to=soap@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