# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ 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 ~x86" IUSE="" S=${WORKDIR}/Singular-3-1-1/omalloc pkg_setup() { tc-export CC CXX } src_prepare (){ epatch "${FILESDIR}"/${P}-gentoo.diff } src_configure() { econf \ $(use_with debug) } src_test () { emake check }