diff options
Diffstat (limited to 'sci-mathematics/mathomatic/mathomatic-12.8.5.ebuild')
-rw-r--r-- | sci-mathematics/mathomatic/mathomatic-12.8.5.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-mathematics/mathomatic/mathomatic-12.8.5.ebuild b/sci-mathematics/mathomatic/mathomatic-12.8.5.ebuild new file mode 100644 index 000000000000..f04fb13a88c4 --- /dev/null +++ b/sci-mathematics/mathomatic/mathomatic-12.8.5.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/mathomatic/mathomatic-12.8.5.ebuild,v 1.1 2008/01/25 10:38:46 bicatali Exp $ + +inherit eutils + +DESCRIPTION="Automatic algebraic manipulator" +HOMEPAGE="http://www.mathomatic.com/" +SRC_URI="http://www.panix.com/~gesslein/${P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" + +DEPEND="sys-libs/readline + sys-libs/ncurses" + +src_compile() { + # respect user flags + sed -i \ + -e '/^CFLAGS/ s/-O.//' \ + -e '/^LDFLAGS/s/+= -lm/:= -lm $(LDFLAGS)/' \ + makefile primes/makefile || die "sed failed" + emake READLINE=1 || die "emake failed" + emake -C primes || die "emake in primes failed" +} + +src_test() { + emake test || die "emake test failed" + emake -C primes test || die "emake test in primes failed" +} + +src_install() { + # It was easier just to install the files manually + dobin mathomatic primes/matho-{primes,pascal,sumsq} || die + dodoc changes.txt README.txt AUTHORS || die + doman mathomatic.1 primes/*.1 || die + doicon mathomatic.png || die + domenu mathomatic.desktop || die + newdoc primes/README.txt README-primes.txt || die + if use doc; then + dohtml doc/* || die + insinto /usr/share/doc/${PF} + doins tests factorial m4 || die + fi +} |