summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Bräunlich <wippbox@gmx.net>2017-02-19 12:10:47 +0100
committerDavid Seifert <soap@gentoo.org>2017-02-20 00:45:22 +0100
commit7d253bfa5cdd7bac77856a261a543a5ba521cd00 (patch)
tree4835385d3f89493f8b0375ca44f9fc242548d11a /sci-mathematics
parentx11-misc/pcmanfm: Remove old (diff)
downloadgentoo-7d253bfa5cdd7bac77856a261a543a5ba521cd00.tar.gz
gentoo-7d253bfa5cdd7bac77856a261a543a5ba521cd00.tar.bz2
gentoo-7d253bfa5cdd7bac77856a261a543a5ba521cd00.zip
sci-mathematics/frobby: EAPI bump 4 -> 6
Package-Manager: portage-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/4032
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/frobby/frobby-0.9.0-r2.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/sci-mathematics/frobby/frobby-0.9.0-r2.ebuild b/sci-mathematics/frobby/frobby-0.9.0-r2.ebuild
new file mode 100644
index 000000000000..77e7c9b15a86
--- /dev/null
+++ b/sci-mathematics/frobby/frobby-0.9.0-r2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Software system and project for computations with monomial ideals"
+HOMEPAGE="http://www.broune.com/frobby/"
+SRC_URI="http://www.broune.com/frobby/frobby_v${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc static-libs"
+
+RDEPEND="dev-libs/gmp:0=[cxx]"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/frobby_v${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-cflags-no-strip-soname.patch"
+ "${FILESDIR}/${PN}-gcc-4.7.patch"
+ "${FILESDIR}/${PN}-gmp-5.1.patch"
+)
+
+src_prepare() {
+ default
+
+ # CXXFLAGS are called CPPFLAGS
+ sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
+}
+
+src_configure() {
+ default
+ # Makefile uses the value of CXX which may be defined in /etc/env,
+ # breaking cross-compile.
+ tc-export CXX
+}
+
+src_compile() {
+ emake
+ MODE=shared emake library
+ use static-libs && emake library
+ use doc && emake docPdf
+}
+
+src_install() {
+ dobin bin/frobby
+ dolib.so bin/libfrobby.so
+ dosym libfrobby.so "${PREFIX}/usr/$(get_libdir)/libfrobby.so.0"
+ use static-libs && dolib.a bin/libfrobby.a
+
+ insinto /usr/include
+ doins src/frobby.h
+
+ insinto /usr/include/"${PN}"
+ doins src/stdinc.h
+
+ use doc && dodoc bin/manual.pdf
+}