summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-sci')
-rw-r--r--app-sci/mathomatic/ChangeLog9
-rw-r--r--app-sci/mathomatic/Manifest5
-rw-r--r--app-sci/mathomatic/files/digest-mathomatic-11.1c1
-rw-r--r--app-sci/mathomatic/files/gentoo-mathomatic-11.1c.diff34
-rw-r--r--app-sci/mathomatic/mathomatic-11.1c.ebuild42
-rw-r--r--app-sci/mathomatic/metadata.xml13
6 files changed, 104 insertions, 0 deletions
diff --git a/app-sci/mathomatic/ChangeLog b/app-sci/mathomatic/ChangeLog
new file mode 100644
index 000000000000..0fbd0e8c9ecf
--- /dev/null
+++ b/app-sci/mathomatic/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-sci/mathomatic
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/mathomatic/ChangeLog,v 1.1 2004/05/20 13:31:38 xtv Exp $
+
+*mathomatic-11.1c (20 May 2004)
+
+ 20 May 2004; Thomas Veith <xtv@gentoo.org> mathomatic-11.1c.ebuild, Manifest,
+ChangeLog, metadata.xml, files/gentoo-mathomatic-11.1c.diff :
+ Initial import.
diff --git a/app-sci/mathomatic/Manifest b/app-sci/mathomatic/Manifest
new file mode 100644
index 000000000000..705d1b9e7043
--- /dev/null
+++ b/app-sci/mathomatic/Manifest
@@ -0,0 +1,5 @@
+MD5 362317a1dadc8aed724d3affb4e87060 mathomatic-11.1c.ebuild 981
+MD5 368cbd94c993557312ec58d2204807be ChangeLog 404
+MD5 3abf3c126ea8c41fa253de334525981d metadata.xml 454
+MD5 f7d0b9c7af7201990a0beeadca7abf3f files/gentoo-mathomatic-11.1c.diff 957
+MD5 29133f46e7d703ecfcbc9a083f272147 files/digest-mathomatic-11.1c 65
diff --git a/app-sci/mathomatic/files/digest-mathomatic-11.1c b/app-sci/mathomatic/files/digest-mathomatic-11.1c
new file mode 100644
index 000000000000..3dd93c3cbbfc
--- /dev/null
+++ b/app-sci/mathomatic/files/digest-mathomatic-11.1c
@@ -0,0 +1 @@
+MD5 a429481dd717d8cdb2e9b8dba9399142 mathomatic-11.1c.tgz 119151
diff --git a/app-sci/mathomatic/files/gentoo-mathomatic-11.1c.diff b/app-sci/mathomatic/files/gentoo-mathomatic-11.1c.diff
new file mode 100644
index 000000000000..d83053ab0a2e
--- /dev/null
+++ b/app-sci/mathomatic/files/gentoo-mathomatic-11.1c.diff
@@ -0,0 +1,34 @@
+diff -U 3 -dHrN -- am-orig/makefile am/makefile
+--- am-orig/makefile 2004-05-09 01:33:05.000000000 +0200
++++ am/makefile 2004-05-20 15:15:45.398058040 +0200
+@@ -1,15 +1,9 @@
+ # Makefile for compiling Mathomatic for UNIX or Linux.
+
+-CFLAGS = -O -DUNIX
+-LDFLAGS = -s
+-LIBS = -lm
+-
+-CFLAGS += $(READLINE:1=-DREADLINE)
+-LIBS += $(READLINE:1=-lreadline -lcurses)
+-
+-PREFIX = /usr/local
++CFLAGS += -DUNIX -DREADLINE
++LIBS = -lreadline -lcurses
+
+-AOUT =am
++AOUT =mathomatic
+ OBJECTS =main.o am.o parse.o cmds.o simplify.o factor.o super.o \
+ unfactor.o diff.o complex.o list.o
+
+@@ -30,8 +24,9 @@
+ $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $(AOUT)
+
+ install: $(AOUT)
+- install -m 0755 $(AOUT) $(PREFIX)/bin
+- install -m 0644 am.1 $(PREFIX)/man/man1
++ install -D -s -m 0755 $(AOUT) $(PREFIX)/usr/bin/$(AOUT)
++ sed "s:am:mathomatic:g" < am.1 > mathomatic.1
++ install -D -m 0644 mathomatic.1 $(MANDIR)/man1/mathomatic.1
+ @echo Install completed.
+
+ clean:
diff --git a/app-sci/mathomatic/mathomatic-11.1c.ebuild b/app-sci/mathomatic/mathomatic-11.1c.ebuild
new file mode 100644
index 000000000000..bcdda886b825
--- /dev/null
+++ b/app-sci/mathomatic/mathomatic-11.1c.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/mathomatic/mathomatic-11.1c.ebuild,v 1.1 2004/05/20 13:31:38 xtv Exp $
+
+DESCRIPTION="Mathomatic - Algebraic Manipulator"
+HOMEPAGE="http://www.mathomatic.com/"
+SRC_URI="http://www.panix.com/~gesslein/${P}.tgz"
+LICENSE="LGPL-2"
+
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE="icc"
+DEPEND="sys-libs/readline \
+ sys-libs/ncurses \
+ icc? ( dev-lang/icc )"
+
+S=${WORKDIR}/am
+
+src_compile() {
+ epatch ${FILESDIR}/gentoo-${P}.diff || die "patching failed"
+ if use icc; then
+ CC="icc" CFLAGS="-O3 -axKWNBP -ipo" LDFLAGS="-O3 -axKWNBP -ipo -limf" emake || die "emake failed"
+ else
+ LDFLAGS="-lm" emake || die "emake failed"
+ fi
+
+ make test
+}
+
+src_install() {
+ PREFIX=${D} MANDIR=${D}/usr/share/man einstall || die "einstall failed"
+ dohtml am.htm manual.htm notes.htm
+ newdoc changes.txt CHANGES
+ newdoc lgpl.txt LGPL
+ newdoc readme.txt README
+
+ dodir /usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}/examples
+ doins tests/*in
+}
diff --git a/app-sci/mathomatic/metadata.xml b/app-sci/mathomatic/metadata.xml
new file mode 100644
index 000000000000..d3028cb66d43
--- /dev/null
+++ b/app-sci/mathomatic/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>xtv@gentoo.org</email>
+</maintainer>
+<longdescription>
+Mathomatic is a small, portable symbolic math program that can automatically
+solve, simplify, differentiate, combine, and compare algebraic equations,
+perform polynomial and complex arithmetic, etc.
+</longdescription>
+</pkgmetadata>