You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/4ti2/4ti2-1.6.ebuild

37 lines
804 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/4ti2/4ti2-1.6.ebuild,v 1.1 2013/09/11 21:34:48 tomka Exp $
EAPI=5
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils
DESCRIPTION="Software package for algebraic, geometric and combinatorial problems"
HOMEPAGE="http://www.4ti2.de/"
SRC_URI="http://4ti2.de/version_${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-macos"
IUSE="static-libs"
DEPEND="
sci-mathematics/glpk:0[gmp]
dev-libs/gmp[cxx]"
RDEPEND="${DEPEND}"
AUTOTOOLS_IN_SOURCE_BUILD=1
PATCHES=(
"${FILESDIR}"/${PN}-1.3.2-gold.patch
)
src_prepare() {
sed \
-e "s:^CXX.*$:CXX=$(tc-getCXX):g" \
-i m4/glpk-check.m4 || die
autotools-utils_src_prepare
}