# # PREAMBLE # DESCRIPTION="A step towards a free computer algebra system." HOMEPAGE="http://www.fis.unipr.it/~stefanw/gtybalt.html" SRC_URI="http://www.fis.unipr.it/~stefanw/gtybalt/${P}.tar.gz" LICENSE="GPL-2" # # OPTIONS # SLOT="0" KEYWORDS="~x86" IUSE="" # # DEPENDENCIES # # Validated dependencies for gTybalt v0.1.4: # * gcc 3.2, 2.95.3 # * GiNaC 1.0.14, 1.0.9 # * Root 3.03.09, 3.03.06 # * TeXmacs 1.0.0.21, 1.0.0.9 # * GSL 1.2 # * CLN 1.1.5 # * NTL 5.0c (optional) # * nestedsums 1.1.0 (optional) # # Since this is a math application, it is # quite sensitive to wrinkles in the compiler and # core libraries so it'd be best to get the EXACT # versions for those. # MATHDEP="=app-sci/ginac-1.0.9* =dev-libs/root-3.03.09* =dev-libs/gsl-1.2* =dev-libs/cln-1.1.5* =dev-libs/nestedsums-1.1.0* =dev-libs/ntl-5.0c" COMPDEP="=sys-devel/gcc-2.95.3*" MISCDEP=">=app-office/texmacs-1.0" DEPEND="$COMPDEP $MATHDEP" RDEPEND="$MATHDEP $MISCDEP" # # BUILD # S=${WORKDIR}/${P} src_compile() { local myconf="" myconf="$myconf --with-ntl --with-ntl-prefix=/usr" myconf="$myconf --with-nestedsums" econf $myconf # '$myconf', _NOT_ '"$myconf"' emake || die } # # INSTALL # src_install() { make DESTDIR=${D} install || die mkdir -p ${D}usr/lib/root cd ${D}usr/lib/root ln -sf ../libgtybaltdict.so libgtybaltdict.so } # # POST-INSTALL # pkg_postinst() { einfo "To run gTybalt in TeXmacs, run \"texmacs\" and then" einfo "go to the menu entry \"Text->Session->GTybalt\"" }