# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic DESCRIPTION="research tool for polyhedral geometry" SRC_URI="http://www.math.tu-berlin.de/polymake/download/polymake-2.3.tar.bz2" HOMEPAGE="http://www.math.tu-berlin.de/polymake" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" DEPEND="dev-libs/gmp" src_compile(){ # The first configure prepares perl stuff and # does not accept the answerfile touch answers || die "Cannot touch file for answers" emake configure < answers # Preparing answers for configuration echo "/usr/polymake" >> answers echo "/usr/bin" >> answers echo "/usr/share/doc/${PF}" >> answers echo "g++" >> answers echo "gcc" >> answers # The -O needs to be specified explicitly echo `get-flag -O` >> answers echo $CXXFLAGS >> answers echo $CFLAGS >> answers echo $LDFLAGS >> answers echo "none" >> answers echo "none" >> answers emake configure < answers rm answers einfo "During compile this package uses up to" einfo "300MB of RAM per process. Use MAKEOPTS=\"-j1\" if" einfo "you run into trouble." emake || die "emake failed" } src_install(){ emake DESTDIR="${D}" install || die "install failed" } pkg_postinst(){ elog "Polymake uses precompiled Perl Modules" elog "If something does not work after an upgrade of Perl re-emerge" }