blob: e96db47903df558796b0e6f67b90e5e120bc665e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
S="${WORKDIR}/frobby_v${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~x86"
IUSE="doc"
RDEPEND="dev-libs/gmp:0=[cxx(+)]"
DEPEND="${RDEPEND}"
BDEPEND="doc? ( virtual/latex-base )"
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 MODE=shared library
use doc && emake docPdf
}
src_install() {
dobin bin/frobby
dolib.so bin/libfrobby.so
dosym libfrobby.so /usr/$(get_libdir)/libfrobby.so.0
doheader src/frobby.h
insinto /usr/include/frobby
doins src/stdinc.h
use doc && dodoc bin/manual.pdf
}
|