aboutsummaryrefslogtreecommitdiff
blob: a25d7c14d2e425275f0597136b2b1d0139e3244d (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils versionator toolchain-funcs

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/3-1-1-2"
SRC_URI="${SRC_COM}/Singular-3-1-1-2.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

S=${WORKDIR}/Singular-3-1-1/omalloc

# Until tarballs are mirrored:
RESTRICT="mirror"

pkg_setup() {
	tc-export CC CXX
}

src_prepare (){
	epatch "${FILESDIR}"/parallel-build.patch
}

src_install () {
	emake DESTDIR="${D}" install || die "install failed"
	# dolib.a *.a
	# insinto /usr/include
	# doins omalloc.h omalloc.c mylimits.h
}