blob: 53c4e2f1c2da80edd9aaeb06c51855c4bf133278 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils toolchain-funcs versionator
Sing_PV=$(replace_all_version_separators -)
Sing_DIR=$(get_version_component_range 1-3 ${MY_PV})
MY_PV_SHARE=${MY_PV}
DESCRIPTION="omalloc is the memory management of the Singular algebra system"
HOMEPAGE="http://www.singular.uni-kl.de/"
SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/3-1-1"
SRC_URI="${SRC_COM}/Singular-3-1-1-2.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug"
S=${WORKDIR}/Singular-3-1-1/omalloc
# Until tarballs are mirrored:
RESTRICT="mirror"
pkg_setup() {
tc-export CC CXX
}
src_prepare (){
epatch "${FILESDIR}"/${P}-gentoo.diff
}
src_configure() {
econf \
$(use_with debug)
}
src_test () {
if use debug; then
emake check
fi
}
src_install () {
emake DESTDIR="${D}" install
}
|