diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 14:54:43 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 14:54:43 +0000 |
commit | f5ffa52a2e6baba845caef2fc6f4baaf7c3b0565 (patch) | |
tree | 64a34480615d00a11137729712c7b5ef7f04cf84 /sci-mathematics/octave-forge | |
parent | Marked ppc stable. (diff) | |
download | gentoo-2-f5ffa52a2e6baba845caef2fc6f4baaf7c3b0565.tar.gz gentoo-2-f5ffa52a2e6baba845caef2fc6f4baaf7c3b0565.tar.bz2 gentoo-2-f5ffa52a2e6baba845caef2fc6f4baaf7c3b0565.zip |
Moved from app-sci/octave-forge to sci-mathematics/octave-forge.
Diffstat (limited to 'sci-mathematics/octave-forge')
11 files changed, 295 insertions, 0 deletions
diff --git a/sci-mathematics/octave-forge/ChangeLog b/sci-mathematics/octave-forge/ChangeLog new file mode 100644 index 000000000000..c8050d5adba5 --- /dev/null +++ b/sci-mathematics/octave-forge/ChangeLog @@ -0,0 +1,59 @@ +# ChangeLog for app-sci/octave-forge +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/ChangeLog,v 1.1 2004/12/28 14:54:43 ribosome Exp $ + +*octave-forge-2003.02.22 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/octave-2.1.57+.patch, +files/octave-forge-2004.02.12-fPIC.patch, + +octave-forge-2003.02.22.ebuild, +octave-forge-2003.06.02.ebuild, + +octave-forge-2004.02.12.ebuild: + Moved from app-sci/octave-forge to sci-mathematics/octave-forge. + + 06 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> + octave-forge-2004.02.12.ebuild: + Marked stable on amd64. + + 23 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> + octave-forge-2004.02.12.ebuild: + Added patch for octave-2.1.57+ from + http://www.octave.org/mailing-lists/bug-octave/2004/182 - thanks to Jonathan + Stickel <jjstickel@sbcglobal.net> for the hint. + + 17 Mar 2004; Daniel Ahlberg <aliz@gentoo.org> + octave-forge-2004.02.12.ebuild: + Adding amd64 keyword. Closing #42350. + +*octave-forge-2004.02.12 (10 Mar 2004) + + 10 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> + octave-forge-2003.06.02.ebuild, octave-forge-2004.02.12.ebuild: + New version, requires a few more tweaks in ebuild. + + 09 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> + octave-forge-2003.02.22.ebuild, octave-forge-2003.06.02.ebuild: + Added virtual/tetex to DEPEND + + 18 Oct 2003; Chuck Short <zul@gentoo.org> octave-forge-2003.06.02.ebuild: + Added ~sparc to keywords. + + 09 Oct 2003; David Holm <dholm@gentoo.org> octave-forge-2003.06.02.ebuild: + Added to ~ppc. + +*octave-forge-2003.06.02 (23 Aug 2003) + + 23 Aug 2003; George Shapovalov <george@gentoo.org> octave-forge-2003.06.02.ebuild : + new version (#20087) + should now work with all version of GNU/Octave from v2.1.39 to the latest version (v2.1.49). + ebuild updated by Shaun Cloherty <s.cloherty@gsbme.unsw.edu.au> + + 10 Jun 2003; <msterret@gentoo.org> octave-forge-2003.02.22.ebuild: + DEPEND on sed >= 4 + +*octave-forge-2003.02.22.ebuild (09 Jun 2003) + + 09 Jun 2003; George Shapovalov <george@gentoo.org> Manifest, octave-forge-2003.02.22.ebuild, files/{digest-octave-forge-2003.02.22} : + initial release (#20087) + A collection of custom scripts, functions and extensions for GNU Octave + ebuild submitted by Brent Redeker <bredeker@cc.edu> + update submitted by Shaun Cloherty <s.cloherty@gsbme.unsw.edu.au> diff --git a/sci-mathematics/octave-forge/Manifest b/sci-mathematics/octave-forge/Manifest new file mode 100644 index 000000000000..1e5063ab6305 --- /dev/null +++ b/sci-mathematics/octave-forge/Manifest @@ -0,0 +1,10 @@ +MD5 15a05529286b6ee98289e23fd711af0d octave-forge-2003.06.02.ebuild 1929 +MD5 58bd232dbc2505d23c7afa787bb5f782 octave-forge-2003.02.22.ebuild 1958 +MD5 7c404b8e5a2c490befde86c512311ce7 octave-forge-2004.02.12.ebuild 2186 +MD5 8368c9155ee095f737692eeecfff3ee6 ChangeLog 2080 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 df51218baee555e6ec187aa95115aa01 files/digest-octave-forge-2003.02.22 76 +MD5 b0d60c59feed689f1454ba67e50df211 files/digest-octave-forge-2003.06.02 76 +MD5 7a2c9437d0cf3b7b65738969d0aac2e1 files/digest-octave-forge-2004.02.12 76 +MD5 8d2f41d57f555add4c78fbe6dc0ee758 files/octave-2.1.57+.patch 905 +MD5 9429fc7b84a5d36c0599ddeccad6d379 files/octave-forge-2004.02.12-fPIC.patch 526 diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2003.02.22 b/sci-mathematics/octave-forge/files/digest-octave-forge-2003.02.22 new file mode 100644 index 000000000000..98d2c50a4f27 --- /dev/null +++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2003.02.22 @@ -0,0 +1 @@ +MD5 cb82a3da24197369cc4bf4be66b42600 octave-forge-2003.02.22.tar.gz 2306124 diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2003.06.02 b/sci-mathematics/octave-forge/files/digest-octave-forge-2003.06.02 new file mode 100644 index 000000000000..7e90489c6124 --- /dev/null +++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2003.06.02 @@ -0,0 +1 @@ +MD5 73e24fc661bc94d83535e4387d24cea3 octave-forge-2003.06.02.tar.gz 2471460 diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2004.02.12 b/sci-mathematics/octave-forge/files/digest-octave-forge-2004.02.12 new file mode 100644 index 000000000000..3b4a03489469 --- /dev/null +++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2004.02.12 @@ -0,0 +1 @@ +MD5 2c8a35bc59844c1fd4068a1213a3bc26 octave-forge-2004.02.12.tar.gz 2740019 diff --git a/sci-mathematics/octave-forge/files/octave-2.1.57+.patch b/sci-mathematics/octave-forge/files/octave-2.1.57+.patch new file mode 100644 index 000000000000..f2a889b6499f --- /dev/null +++ b/sci-mathematics/octave-forge/files/octave-2.1.57+.patch @@ -0,0 +1,21 @@ +--- main/comm/galois-def.h 1 Apr 2003 19:37:14 -0000 ++++ main/comm/galois-def.h 12 Mar 2004 21:51:45 -0000 +@@ -306,13 +306,17 @@ + return r; \ + } + ++#define TBM boolMatrix (1, 1, true) ++#define FBM boolMatrix (1, 1, false) ++#define NBM boolMatrix () ++ + #define MM_CMP_OPS1(M1, C1, M2, C2, GR1, GR2, CHECK) \ + MM_CMP_OP1(mx_el_lt, <, M1, C1, M2, C2, GR1, GR2, CHECK, NBM, NBM) \ + MM_CMP_OP1(mx_el_le, <=, M1, C1, M2, C2, GR1, GR2, CHECK, NBM, NBM) \ + MM_CMP_OP1(mx_el_ge, >=, M1, C1, M2, C2, GR1, GR2, CHECK, NBM, NBM) \ + MM_CMP_OP1(mx_el_gt, >, M1, C1, M2, C2, GR1, GR2, CHECK, NBM, NBM) \ + MM_CMP_OP1(mx_el_eq, ==, M1, , M2, , GR1, GR2, CHECK, FBM, TBM) \ +- MM_CMP_OP1(mx_el_ne, !=, M1, , M2, , GR1, GR2, CHECK, TBM, FBM) \ ++ MM_CMP_OP1(mx_el_ne, !=, M1, , M2, , GR1, GR2, CHECK, TBM, FBM) + + #define MM_BOOL_OP1(F, OP, M1, M2, ZERO, GR1, GR2, CHECKTYPE) \ + boolMatrix \ diff --git a/sci-mathematics/octave-forge/files/octave-forge-2004.02.12-fPIC.patch b/sci-mathematics/octave-forge/files/octave-forge-2004.02.12-fPIC.patch new file mode 100644 index 000000000000..6d6c451d04cb --- /dev/null +++ b/sci-mathematics/octave-forge/files/octave-forge-2004.02.12-fPIC.patch @@ -0,0 +1,20 @@ +--- main/miscellaneous/Makefile 2004-03-17 20:49:42.021540006 +0000 ++++ main/miscellaneous/Makefile 2004-03-17 20:51:52.258546237 +0000 +@@ -23,7 +23,7 @@ + $(MKOCTFILE) -c listencanfork.c + + xmltree.o: xmltree.c xmltree.h +- $(CC) -c $< -o $@ ++ $(CC) -fPIC -c $< -o $@ + + ifdef FLEXML + xmltree_read.l: xmltree_read.act octave.dtd +@@ -36,7 +36,7 @@ + endif + + xmltree_read.o: xmltree_read.c xmltree_read.h +- $(CC) -c $< -o $@ ++ $(CC) -fPIC -c $< -o $@ + + xmlread.o: xmlread.cc xmltree_read.h xmltree.h + $(MKOCTFILE) -c $< -o $@ diff --git a/sci-mathematics/octave-forge/metadata.xml b/sci-mathematics/octave-forge/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-mathematics/octave-forge/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +</pkgmetadata> diff --git a/sci-mathematics/octave-forge/octave-forge-2003.02.22.ebuild b/sci-mathematics/octave-forge/octave-forge-2003.02.22.ebuild new file mode 100644 index 000000000000..36d02157962c --- /dev/null +++ b/sci-mathematics/octave-forge/octave-forge-2003.02.22.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2003.02.22.ebuild,v 1.1 2004/12/28 14:54:43 ribosome Exp $ + +DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave" +HOMEPAGE="http://octave.sourceforge.net/" +SRC_URI="mirror://sourceforge/octave/${P}.tar.gz" + +LICENSE="as-is" +# I have only tested this library on x86 +KEYWORDS="x86" +SLOT="0" +IUSE="ginac qhull" + +DEPEND=">=sci-mathematics/octave-2.1.44 + >=sys-apps/sed-4 + sys-libs/libtermcap-compat + ginac? ( sci-mathematics/ginac ) + virtual/tetex + qhull? ( >=media-libs/qhull-3.1-r1 )" + + +src_compile() { + econf || die "econf failed" + + # The MPATH, OPATH, and XPATH variables need to be changed, or they will + # cause Portage access violations. They cannot be easily set just using + # arguments passed to ./configure (at least, they can not easily be set + # correctly) + echo -en "Modifying paths..." + sed -i "s|^\(MPATH = \)|\1${D}|" Makeconf || die "failed to modify MPATH" + sed -i "s|^\(OPATH = \)|\1${D}|" Makeconf || die "failed to modify OPATH" + sed -i "s|^\(XPATH = \)|\1${D}|" Makeconf || die "failed to modify XPATH" + echo -e "done.\n" + + emake || die "emake failed" +} + +src_install() { + einstall || die "einstall failed" + + # strip the fudged install paths + sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed" + + dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO +} + +pkg_postinst() { + einfo "If you do not have GiNaC and Qhull installed, octave-forge did not" + einfo "compile itself with support for the geometry and symbolic math" + einfo "extensions. If you would like these features, please emerge ginac" + einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can" + einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case" + einfo "the ebuild will automatically install the additional packages." +} + diff --git a/sci-mathematics/octave-forge/octave-forge-2003.06.02.ebuild b/sci-mathematics/octave-forge/octave-forge-2003.06.02.ebuild new file mode 100644 index 000000000000..7e4dca08c4da --- /dev/null +++ b/sci-mathematics/octave-forge/octave-forge-2003.06.02.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2003.06.02.ebuild,v 1.1 2004/12/28 14:54:43 ribosome Exp $ + +DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave" +HOMEPAGE="http://octave.sourceforge.net/" +SRC_URI="mirror://sourceforge/octave/${P}.tar.gz" + +LICENSE="as-is" +KEYWORDS="x86 ~ppc ~sparc" +SLOT="0" +IUSE="ginac qhull" + +DEPEND=">=sci-mathematics/octave-2.1.40 + >=sys-apps/sed-4 + sys-libs/libtermcap-compat + virtual/tetex + ginac? ( sci-mathematics/ginac ) + qhull? ( >=media-libs/qhull-3.1-r1 )" + + +src_compile() { + econf || die "econf failed" + + # The MPATH, OPATH, and XPATH variables need to be changed, or they will + # cause Portage access violations. They cannot be easily set just using + # arguments passed to ./configure (at least, they can not easily be set + # correctly) + echo -en "Modifying paths..." + sed -i "s|^\(MPATH = \)|\1${D}|" Makeconf || die "failed to modify MPATH" + sed -i "s|^\(OPATH = \)|\1${D}|" Makeconf || die "failed to modify OPATH" + sed -i "s|^\(XPATH = \)|\1${D}|" Makeconf || die "failed to modify XPATH" + echo -e "done.\n" + + emake || die "emake failed" +} + +src_install() { + einstall || die "einstall failed" + + # strip the fudged install paths + sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed" + + dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO +} + +pkg_postinst() { + einfo "If you do not have GiNaC and Qhull installed, octave-forge did not" + einfo "compile itself with support for the geometry and symbolic math" + einfo "extensions. If you would like these features, please emerge ginac" + einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can" + einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case" + einfo "the ebuild will automatically install the additional packages." +} + diff --git a/sci-mathematics/octave-forge/octave-forge-2004.02.12.ebuild b/sci-mathematics/octave-forge/octave-forge-2004.02.12.ebuild new file mode 100644 index 000000000000..886c69d851bf --- /dev/null +++ b/sci-mathematics/octave-forge/octave-forge-2004.02.12.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2004.02.12.ebuild,v 1.1 2004/12/28 14:54:43 ribosome Exp $ + +inherit eutils + +DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave" +HOMEPAGE="http://octave.sourceforge.net/" +SRC_URI="mirror://sourceforge/octave/${P}.tar.gz" + +LICENSE="as-is" +KEYWORDS="x86 ~ppc ~sparc amd64" +SLOT="0" +IUSE="ginac qhull" + +DEPEND=">=sci-mathematics/octave-2.1.40 + >=sys-apps/sed-4 + sys-libs/libtermcap-compat + !amd64? ( ginac? ( sci-mathematics/ginac ) ) + qhull? ( >=media-libs/qhull-3.1-r1 )" + +src_unpack() { + unpack ${A} + cd ${S} + sed -e 's:a"key":a["key"]:' -i configure || die "sed failed on configure" + sed -e 's:\(^man1dir = \):\1$(DESTDIR)/:; s:$(bindir):$(DESTDIR)/$(bindir):' -i extra/mex/Makefile \ + || die "sed failed on mex/Makefile" + epatch ${FILESDIR}/octave-2.1.57+.patch + epatch ${FILESDIR}/${P}-fPIC.patch +} + +src_compile() { + econf || die "econf failed" + + # The *XPATH variables need to be changed, or they will + # cause Portage access violations. They cannot be easily set just using + # arguments passed to ./configure (at least, they can not easily be set + # correctly) + echo -en "Modifying paths..." + for path in M O X ALTM ALTO; do + sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \ + die "failed to modify ${path}PATH" + done + echo -e "done.\n" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "install failed" + + # strip the fudged install paths + sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed" + + dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO +} + +pkg_postinst() { + einfo "If you do not have GiNaC and Qhull installed, octave-forge did not" + einfo "compile itself with support for the geometry and symbolic math" + einfo "extensions. If you would like these features, please emerge ginac" + einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can" + einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case" + einfo "the ebuild will automatically install the additional packages." +} + |