diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 15:17:37 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 15:17:37 +0000 |
commit | 1184ed5bb9f960f30c41c0bae9404a39db284cd3 (patch) | |
tree | 7171e10b9e106b897a0c9175c4202dc648d414b5 /sci-mathematics | |
parent | Moving to sci-mathematics/singular (diff) | |
download | gentoo-2-1184ed5bb9f960f30c41c0bae9404a39db284cd3.tar.gz gentoo-2-1184ed5bb9f960f30c41c0bae9404a39db284cd3.tar.bz2 gentoo-2-1184ed5bb9f960f30c41c0bae9404a39db284cd3.zip |
Moved from app-sci/singular to sci-mathematics/singular.
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/singular/ChangeLog | 81 | ||||
-rw-r--r-- | sci-mathematics/singular/Manifest | 9 | ||||
-rw-r--r-- | sci-mathematics/singular/files/digest-singular-2.0.4-r1 | 12 | ||||
-rw-r--r-- | sci-mathematics/singular/files/digest-singular-2.0.5-r4 | 12 | ||||
-rw-r--r-- | sci-mathematics/singular/files/fake_ssh | 5 | ||||
-rw-r--r-- | sci-mathematics/singular/files/singular-2.0.4-gentoo.diff | 91 | ||||
-rw-r--r-- | sci-mathematics/singular/files/singular-2.0.5-r3-gentoo.diff | 104 | ||||
-rw-r--r-- | sci-mathematics/singular/metadata.xml | 5 | ||||
-rw-r--r-- | sci-mathematics/singular/singular-2.0.4-r1.ebuild | 125 | ||||
-rw-r--r-- | sci-mathematics/singular/singular-2.0.5-r4.ebuild | 143 |
10 files changed, 587 insertions, 0 deletions
diff --git a/sci-mathematics/singular/ChangeLog b/sci-mathematics/singular/ChangeLog new file mode 100644 index 000000000000..3f4df0f78b99 --- /dev/null +++ b/sci-mathematics/singular/ChangeLog @@ -0,0 +1,81 @@ +# ChangeLog for app-sci/singular +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.1 2004/12/28 15:17:37 ribosome Exp $ + +*singular-2.0.4-r1 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/fake_ssh, +files/singular-2.0.4-gentoo.diff, + +files/singular-2.0.5-r3-gentoo.diff, +singular-2.0.4-r1.ebuild, + +singular-2.0.5-r4.ebuild: + Moved from app-sci/singular to sci-mathematics/singular. + + 17 May 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.5-r3.ebuild, + singular-2.0.5-r4.ebuild: + Going stable, cleanup + + 26 Apr 2004; Aron Griffis <agriffis@gentoo.org> singular-2.0.5-r3.ebuild, + singular-2.0.5-r4.ebuild: + Add die following econf for bug 48950 + + 25 Apr 2004; Aron Griffis <agriffis@gentoo.org> singular-2.0.4-r1.ebuild: + Add die following econf for bug 48950 + + 01 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.4-r1.ebuild: + Inheriting eutils, removed S=... + +*singular-2.0.5-r4 (26 Mar 2004) + + 26 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.5-r4.ebuild: + A few documentation fixes + + 24 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.5-r3.ebuild: + Was using wrong patch file, corrected. + +*singular-2.0.5-r3 (24 Mar 2004) + + 24 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.5-r1.ebuild, + singular-2.0.5-r2.ebuild, singular-2.0.5-r3.ebuild, singular-2.0.5.ebuild, + files/singular-2.0.5-gentoo.diff, files/singular-2.0.5-r1-gentoo.diff, + files/singular-2.0.5-r2-gentoo.diff, files/singular-2.0.5-r3-gentoo.diff: + Little path fix, see also bug #45446. Cleaning up. + +*singular-2.0.5-r2 (23 Mar 2004) + + 23 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.5-r2.ebuild, + files/singular-2.0.5-r2-gentoo.diff: + Fixing some paths and installing more docs when doc is in USE. + +*singular-2.0.5-r1 (23 Mar 2004) + + 23 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.5-r1.ebuild, + files/singular-2.0.5-r1-gentoo.diff: + Miscellaneous bugfixes provided by user in bug #45446 - thanks! + +*singular-2.0.5 (12 Mar 2004) + + 12 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.5.ebuild, + files/singular-2.0.5-gentoo.diff: + New version for most parts, patch needed some update. + + 07 Nov 2003; Patrick Kursawe <phosphan@gentoo.org> + files/singular-2.0.4-gentoo.diff: + Forgot one patch (see bug 26115) + + 06 Nov 2003; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.4-r1.ebuild: + Slight modifications to the install function - the singular.info file has a + directory index entry now. Added a better short description. + +*singular-2.0.4-r1 (29 Oct 2003) + + 29 Oct 2003; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.4-r1.ebuild, + files/fake_ssh: + Docs will be installed now if USE="doc" + +*singular-2.0.4 (24 Oct 2003) + + 24 Oct 2003; Patrick Kursawe <phosphan@gentoo.org> singular-2.0.4.ebuild, + files/singular-2.0.4-gentoo.diff: + Initial import, based on the submission in bug 26115. Thanks to all + contributors. + diff --git a/sci-mathematics/singular/Manifest b/sci-mathematics/singular/Manifest new file mode 100644 index 000000000000..4bfb4a60bb61 --- /dev/null +++ b/sci-mathematics/singular/Manifest @@ -0,0 +1,9 @@ +MD5 e6b00ca4be498551bfd966c315daa9bf singular-2.0.5-r4.ebuild 4263 +MD5 195ad9d11cb3fdd0d3dc1c98f8c30279 singular-2.0.4-r1.ebuild 3673 +MD5 52f2a7a035ad01be00b2506199751988 ChangeLog 2760 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 b1383ace2a0b30413341982e4e34341f files/fake_ssh 150 +MD5 b52673163a28446aae41691abc3e705d files/digest-singular-2.0.4-r1 862 +MD5 673cd925126b07ea0e78cf91269b7d66 files/digest-singular-2.0.5-r4 859 +MD5 916f91466aad4f177f2270b4c1fad94a files/singular-2.0.5-r3-gentoo.diff 4399 +MD5 8f79455c2cd6352e5e0907b21a7390f1 files/singular-2.0.4-gentoo.diff 3287 diff --git a/sci-mathematics/singular/files/digest-singular-2.0.4-r1 b/sci-mathematics/singular/files/digest-singular-2.0.4-r1 new file mode 100644 index 000000000000..e836a917cf5e --- /dev/null +++ b/sci-mathematics/singular/files/digest-singular-2.0.4-r1 @@ -0,0 +1,12 @@ +MD5 75fd483700f339ebf23d776ef91dae3b Singular-doc-2-0-4.tar.gz 644334 +MD5 25490dbf52e0c3f3ff9d32a5c0773db9 Singular-emacs-2-0-4.tar.gz 62596 +MD5 7ca5e7b84485b372bd9a01db74a1d828 Singular-factory-2-0-4b.tar.gz 479057 +MD5 001d7a818b0f4d149bc02d6c226874f8 Singular-IntProg-2-0-4a.tar.gz 85619 +MD5 d63d919a38a4f3ff557f465c1349f4ad Singular-kernel-2-0-4a.tar.gz 2728001 +MD5 ae5cf20b874205879bc047599ad35fbe Singular-libfac-2-0-4b.tar.gz 86507 +MD5 82b721154f1e6d310ed1a1dffbcb47a0 Singular-main-2-0-4c.tar.gz 54643 +MD5 da27e39e6b474ebcb3b8c64a4d84ce90 Singular-MP-2-0-4.tar.gz 354748 +MD5 16e674aa607bc884d640d3a520fb297b Singular-NTL-5.2.tar.gz 658841 +MD5 69ed8eb72f97f0940b0df4b5907faeb6 Singular-NTL-generic.tar.gz 7429 +MD5 7a24ca85fb29ea8f67c856b13f3cab5e Singular-omalloc-2-0-4.tar.gz 212567 +MD5 6b8af8429392f549638e26c4674aca2d Singular-Tst-2-0-4a.tar.gz 4047964 diff --git a/sci-mathematics/singular/files/digest-singular-2.0.5-r4 b/sci-mathematics/singular/files/digest-singular-2.0.5-r4 new file mode 100644 index 000000000000..168e24b6c043 --- /dev/null +++ b/sci-mathematics/singular/files/digest-singular-2.0.5-r4 @@ -0,0 +1,12 @@ +MD5 7dade3cbf4b3297e13067bf136b47dd5 Singular-doc-2-0-5.tar.gz 658275 +MD5 25490dbf52e0c3f3ff9d32a5c0773db9 Singular-emacs-2-0-5.tar.gz 62596 +MD5 ccb98926a93b0fc90711730790c56ac5 Singular-factory-2-0-5.tar.gz 479277 +MD5 001d7a818b0f4d149bc02d6c226874f8 Singular-IntProg-2-0-4a.tar.gz 85619 +MD5 2cc39a94e1e1c555cbbdfea2a825286e Singular-kernel-2-0-5.tar.gz 2688358 +MD5 149cd0f1249388e58138a6b1de17dd7c Singular-libfac-2-0-5.tar.gz 86640 +MD5 e88a57eab4c719f97a2cec19a8429f74 Singular-main-2-0-5.tar.gz 54627 +MD5 8d7b33130501acf7d74cbd9e02b8a26a Singular-MP-2-0-5.tar.gz 365390 +MD5 5304918a83976e0d1c58ea40e795cfa7 Singular-NTL-5.3.1.tar.gz 655942 +MD5 69ed8eb72f97f0940b0df4b5907faeb6 Singular-NTL-generic.tar.gz 7429 +MD5 7dc82f3822f35268c47c86edb9822e6f Singular-omalloc-2-0-5.tar.gz 237140 +MD5 a9fbca50eb2e0c6b468c572edcf737b6 Singular-Tst-2-0-5.tar.gz 4181732 diff --git a/sci-mathematics/singular/files/fake_ssh b/sci-mathematics/singular/files/fake_ssh new file mode 100644 index 000000000000..127c177760e3 --- /dev/null +++ b/sci-mathematics/singular/files/fake_ssh @@ -0,0 +1,5 @@ +#!/bin/bash +# strip hostname -n from command line +runme="$(echo $@ | sed -e 's:.* -n \(.*\):\1:')" +# do what -n should have done +${runme} < /dev/null diff --git a/sci-mathematics/singular/files/singular-2.0.4-gentoo.diff b/sci-mathematics/singular/files/singular-2.0.4-gentoo.diff new file mode 100644 index 000000000000..b63d075e930a --- /dev/null +++ b/sci-mathematics/singular/files/singular-2.0.4-gentoo.diff @@ -0,0 +1,91 @@ +--- Singular/fereadl.c.orig 2003-07-26 01:28:47.000000000 +0200 ++++ Singular/fereadl.c 2003-07-26 01:27:47.000000000 +0200 +@@ -287,15 +287,15 @@ + extern char PC; + #endif + /* OB: why this ??? */ +- /* char *t_buf=(char *)omAlloc(128); */ +- char t_buf[128]; ++ char *t_buf=(char *)omAlloc(128); ++ //char t_buf[128]; + char *temp; + + /* Extract information that termcap functions use. */ +- temp = tgetstr ("pc", (char **)&t_buf); ++ temp = tgetstr ("pc", t_buf); + PC = (temp!=NULL) ? *temp : '\0'; +- BC=tgetstr("le",(char **)&t_buf); +- UP=tgetstr("up",(char **)&t_buf); ++ BC=tgetstr("le",t_buf); ++ UP=tgetstr("up",t_buf); + + /* Extract information we will use */ + colmax=tgetnum("co"); +@@ -303,7 +303,7 @@ + fe_cursor_line=pagelength-1; + + /* init screen */ +- temp = tgetstr ("ti", (char **)&t_buf); ++ temp = tgetstr ("ti", t_buf); + #if 0 + if (temp!=NULL) tputs(temp,1,fe_out_char); + #endif +--- Singular/feResource.cc.orig 2003-08-06 15:19:27.000000000 +0200 ++++ Singular/feResource.cc 2003-08-06 15:21:09.000000000 +0200 +@@ -85,7 +85,7 @@ + {"SearchPath", 's', feResPath, NULL, + "$SINGULARPATH;" + "%b/LIB;" +- "%r/LIB;" ++ "%r/share/singular/LIB;" + "%r/../LIB;" + "%d/LIB;" + "%d/../LIB" +--- Singular/mod_raw.cc.orig 2003-08-06 16:52:02.000000000 +0200 ++++ Singular/mod_raw.cc 2003-08-06 16:55:53.000000000 +0200 +@@ -40,11 +40,11 @@ + void* dynl_open_binary_warn(char* binary_name, const char* msg) + { + void* handle = NULL; +- const char* bin_dir = feGetResource('b'); ++ const char* bin_dir = feGetResource('r'); + if (bin_dir != NULL) + { + char path_name[MAXPATHLEN]; +- sprintf(path_name, "%s%s%s.%s", bin_dir, DIR_SEPP, binary_name, ++ sprintf(path_name, "%s%s%s%s%s.%s", bin_dir, DIR_SEPP, "lib/singular", DIR_SEPP, binary_name, + DL_TAIL); + handle = dynl_open(path_name); + if (handle == NULL && ! warn_handle) +--- Singular/mod_raw.cc.orig 2003-08-08 00:08:28.000000000 +0200 ++++ Singular/mod_raw.cc 2003-08-08 00:09:44.000000000 +0200 +@@ -84,7 +84,7 @@ + /***************************************************************************** + * SECTION ix86-linux / alpha-linux / IA64-linux * + *****************************************************************************/ +-#if defined(ix86_Linux) || defined(DecAlpha_Linux) || defined(ix86_Linux_libc5) || defined(IA64_Linux) ++#if defined(ix86_Linux) || defined(DecAlpha_Linux) || defined(ix86_Linux_libc5) || defined(IA64_Linux) || defined(ppc_Linux) + #include <dlfcn.h> + + static void* kernel_handle = NULL; +--- singuname.sh 2003-08-07 12:48:09.000000000 +0200 ++++ singuname.sh.new 2003-08-07 12:50:14.000000000 +0200 +@@ -180,6 +180,18 @@ + echo ${prefix}-Unknown + exit 1 + fi ++# PowerPC Linux ######################################################## ++elif (echo $uname_a | $egrep " ppc " > $devnull) ++then ++ prefix=ppc ++ if (echo $uname_a | $egrep "Linux" > $devnull) ++ then ++ echo ${prefix}-Linux ++ exit 0 ++ else ++ echo ${prefix}-Unknown ++ exit 1 ++ fi + else # Unknown ######################################################## + echo Unknown + exit 2 diff --git a/sci-mathematics/singular/files/singular-2.0.5-r3-gentoo.diff b/sci-mathematics/singular/files/singular-2.0.5-r3-gentoo.diff new file mode 100644 index 000000000000..2b98b38a1038 --- /dev/null +++ b/sci-mathematics/singular/files/singular-2.0.5-r3-gentoo.diff @@ -0,0 +1,104 @@ +--- singuname.sh 2003-08-07 12:48:09.000000000 +0200 ++++ singuname.sh.new 2003-08-07 12:50:14.000000000 +0200 +@@ -168,6 +168,18 @@ + echo ${prefix}-Unknown + exit 1 + fi ++# PowerPC Linux ######################################################## ++elif (echo $uname_a | $egrep " ppc " > $devnull) ++then ++ prefix=ppc ++ if (echo $uname_a | $egrep "Linux" > $devnull) ++ then ++ echo ${prefix}-Linux ++ exit 0 ++ else ++ echo ${prefix}-Unknown ++ exit 1 ++ fi + else # Unknown ######################################################## + echo Unknown + exit 2 +--- Singular/mod_raw.cc 2003-08-22 12:53:30.000000000 +0200 ++++ Singular/mod_raw.cc.new 2004-03-12 10:07:14.000000000 +0100 +@@ -40,7 +40,7 @@ + void* dynl_open_binary_warn(char* binary_name, const char* msg) + { + void* handle = NULL; +- const char* bin_dir = feGetResource('b'); ++ const char* bin_dir = feGetResource('r'); + if (bin_dir != NULL) + { + char path_name[MAXPATHLEN]; +@@ -104,6 +104,10 @@ + #define HAVE_ELF_SYSTEM + #endif + ++#if defined(ppc_Linux) ++#define HAVE_ELF_SYSTEM ++#endif ++ + #if defined(HAVE_ELF_SYSTEM) + #include <dlfcn.h> + +--- Singular/mod_raw.cc.orig 2004-03-22 23:20:46.424288520 +0100 ++++ Singular/mod_raw.cc 2004-03-22 23:22:11.975282792 +0100 +@@ -44,7 +44,7 @@ + if (bin_dir != NULL) + { + char path_name[MAXPATHLEN]; +- sprintf(path_name, "%s%s%s.%s", bin_dir, DIR_SEPP, binary_name, ++ sprintf(path_name, "%s%s%s%s.%s", bin_dir, "/lib/singular", DIR_SEPP, binary_name, + DL_TAIL); + handle = dynl_open(path_name); + if (handle == NULL && ! warn_handle) +--- Singular/feResource.cc 2004-03-23 14:01:06.000000000 +0100 ++++ Singular/feResource.cc.new 2004-03-23 13:30:22.000000000 +0100 +@@ -45,7 +45,7 @@ + #define SINGULAR_DEFAULT_DIR "/usr/local/Singular/"S_VERSION1 + #endif + #else // ! defined(MAKE_DISTRIBUTION) +-#define SINGULAR_DEFAULT_DIR S_ROOT_DIR ++#define SINGULAR_DEFAULT_DIR "/usr" + #endif // defined(MAKE_DISTRIBUTION) + + #ifdef ix86_Win +@@ -83,21 +83,19 @@ + { + {"SearchPath", 's', feResPath, NULL, + "$SINGULARPATH;" +- "%b/LIB;" + "%r/LIB;" +- "%r/../LIB;" ++ "%r/share/singular/LIB;" + "%d/LIB;" +- "%d/../LIB" + ""}, +- {"Singular", 'S', feResBinary,"SINGULAR_EXECUTABLE", "%d/"S_UNAME"/Singular"EXT,""}, +- {"BinDir", 'b', feResDir, "SINGULAR_BIN_DIR", "%d/"S_UNAME ""}, +- {"RootDir", 'r', feResDir, "SINGULAR_ROOT_DIR", "%b/..", ""}, ++ {"Singular", 'S', feResBinary,"SINGULAR_EXECUTABLE", "%d/bin/Singular"EXT,""}, ++ {"BinDir", 'b', feResDir, "SINGULAR_BIN_DIR", "%d/bin",""}, ++ {"RootDir", 'r', feResDir, "SINGULAR_ROOT_DIR", "%d", ""}, + {"DefaultDir",'d', feResDir, "SINGULAR_DEFAULT_DIR", SINGULAR_DEFAULT_DIR, ""}, +- {"InfoFile", 'i', feResFile, "SINGULAR_INFO_FILE", "%r/info/singular.hlp", ""}, +- {"IdxFile", 'x', feResFile, "SINGULAR_IDX_FILE", "%r/doc/singular.idx", ""}, +- {"HtmlDir", 'h', feResDir, "SINGULAR_HTML_DIR", "%r/html", ""}, ++ {"InfoFile", 'i', feResFile, "SINGULAR_INFO_FILE", "%r/share/singular/singular.hlp", ""}, ++ {"IdxFile", 'x', feResFile, "SINGULAR_IDX_FILE", "%r/share/singular/singular.idx", ""}, ++ {"HtmlDir", 'h', feResDir, "SINGULAR_HTML_DIR", "%r/share/doc/PFSUBST/html", ""}, + {"ManualUrl", 'u', feResUrl, "SINGULAR_URL", "http://www.singular.uni-kl.de/Manual/"S_VERSION1, ""}, +- {"ExDir", 'm', feResDir, "SINGULAR_EXAMPLES_DIR","%r/examples", ""}, ++ {"ExDir", 'm', feResDir, "SINGULAR_EXAMPLES_DIR","%r/share/doc/PFSUBST/examples", ""}, + #if !defined(macintosh) + {"netscape", 'N', feResBinary,"NETSCAPE", "%b/netscape", ""}, + {"info", 'I', feResBinary,"INFO", "%b/info", ""}, +@@ -105,7 +102,7 @@ + #ifdef ix86_Win + {"rxvt", 'X', feResBinary,"RXVT", "%b/rxvt.exe", ""}, + #else +- {"xterm", 'X', feResBinary,"XTERM", "%b/xterm", ""}, ++ {"xterm", 'X', feResBinary,"XTERM", "%d/X11R6/bin/xterm", ""}, + #endif + {"Path", 'p', feResPath, NULL, "%b;$PATH", ""}, + #endif // ! defined(macintosh) diff --git a/sci-mathematics/singular/metadata.xml b/sci-mathematics/singular/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-mathematics/singular/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/singular/singular-2.0.4-r1.ebuild b/sci-mathematics/singular/singular-2.0.4-r1.ebuild new file mode 100644 index 000000000000..3cc612803ec9 --- /dev/null +++ b/sci-mathematics/singular/singular-2.0.4-r1.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-2.0.4-r1.ebuild,v 1.1 2004/12/28 15:17:37 ribosome Exp $ + +inherit eutils + +MINPV=${PV//./-} +BPN=${PN/s/S} +DESCRIPTION="computer algebra system for polynomial computations" +SRC_URI="ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-doc-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-emacs-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-factory-${MINPV}b.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-IntProg-${MINPV}a.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-kernel-${MINPV}a.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-libfac-${MINPV}b.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-main-${MINPV}c.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-MP-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-NTL-5.2.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-NTL-generic.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-omalloc-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-Tst-${MINPV}a.tar.gz" +HOMEPAGE="http://www.singular.uni-kl.de/" + +RDEPEND=">=dev-lang/perl-5.6 + >=dev-libs/gmp-4.1-r1" + +IUSE="doc" + +DEPEND="${RDEPEND} + doc? ( sys-apps/texinfo + virtual/tetex + dev-lang/perl )" + +SLOT="0" +LICENSE="singular" +KEYWORDS="x86 ppc" + +S=${WORKDIR} + +src_unpack () { + unpack ${A} + epatch $FILESDIR/singular-2.0.4-gentoo.diff +} + + + +src_compile() { + local myconf="${myconf} --with-NTL --prefix=${D}/usr" + econf ${myconf} || die "econf failed" + make CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "make failed" +} + +src_install () { + local myarchprefix + case ${ARCH} in + x86) + myarchprefix=ix86 + ;; + *) + myarchprefix=${ARCH} + ;; + esac + cd ${WORKDIR}/omalloc + einstall || die + cd ${WORKDIR}/MP + einstall || die + cd ${WORKDIR}/ntl + einstall || die + cd ${WORKDIR}/factory + einstall || die + cd ${WORKDIR}/libfac + einstall || die + cd ${WORKDIR}/Singular + einstall || die + rm ${D}/usr/LIB + dodir /usr/share/singular/LIB + dodir /usr/share/singular/LIB/gftables + insinto /usr/share/singular/LIB + cd ${WORKDIR}/Singular/LIB + doins *.lib* + insinto /usr/share/singular/LIB/gftables + cd gftables + doins * + dodir /usr/bin + dodir /usr/lib/singular + insinto /usr/lib/singular + cd ${D}/usr/${myarchprefix}-Linux + rm Singular + dobin *Singular* + doins *.so + use doc && ( cd ${WORKDIR}/doc + # fake ssh during doc creation + cp ${FILESDIR}/fake_ssh ${T}/ssh + chmod +x ${T}/ssh + export PATH="${T}:${PATH}" + make dvi + dodoc *.dvi + make ps + dodoc *.ps + local strange_error="Inappropriate ioctl for device" + echo ${strange_error} > makeresult + while grep -q "${strange_error}" makeresult + do make 2>&1 info | tee makeresult + done + echo > singular.info "INFO-DIR-SECTION Math" + echo >> singular.info "START-INFO-DIR-ENTRY" + echo >> singular.info "* Singular: (singular). A Computer Algebra System for Polynomial Computations" + echo >> singular.info "END-INFO-DIR-ENTRY" + cat singular.hlp >> singular.info + doinfo singular.info + make html + dohtml -r html/. + cd ${D}/usr + mv doc/NTL share/doc/${PF}/ + ) + cd ${D} + dosym /usr/bin/Singular-2-0-4 /usr/bin/Singular + cd ${D}/usr + rm -r ${myarchprefix}-Linux +} + +pkg_postinst() { + einfo "The authors ask you to register as a SINGULAR user." + einfo "Please check the license file for details." +} diff --git a/sci-mathematics/singular/singular-2.0.5-r4.ebuild b/sci-mathematics/singular/singular-2.0.5-r4.ebuild new file mode 100644 index 000000000000..5c69ce4adb7b --- /dev/null +++ b/sci-mathematics/singular/singular-2.0.5-r4.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-2.0.5-r4.ebuild,v 1.1 2004/12/28 15:17:37 ribosome Exp $ + +inherit eutils + +MINPV=${PV//./-} +BPN=${PN/s/S} +NTLVERSION="5.3.1" +# attention: different versions are mixed. IntProg is older + +DESCRIPTION="computer algebra system for polynomial computations" +SRC_URI="ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-doc-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-emacs-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-factory-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-IntProg-2-0-4a.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-kernel-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-libfac-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-main-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-MP-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-NTL-${NTLVERSION}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-NTL-generic.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-omalloc-${MINPV}.tar.gz + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/${BPN}-Tst-${MINPV}.tar.gz" +HOMEPAGE="http://www.singular.uni-kl.de/" + +RDEPEND=">=dev-lang/perl-5.6 + >=dev-libs/gmp-4.1-r1" + +IUSE="doc" + +DEPEND="${RDEPEND} + doc? ( sys-apps/texinfo + virtual/tetex + dev-lang/perl )" + +SLOT="0" +LICENSE="singular" +KEYWORDS="x86 ppc" + +S=${WORKDIR} + +src_unpack () { + unpack ${A} + epatch $FILESDIR/${P}-r3-gentoo.diff + sed -e "s/PFSUBST/${PF}/" -i ${S}/Singular/feResource.cc || die "sed failed on feResource.cc" +} + + + +src_compile() { + local myconf="${myconf} --with-NTL --prefix=${D}/usr" + econf ${myconf} || die "econf failed" + make CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "make failed" +} + +src_install () { + local myarchprefix + case ${ARCH} in + x86) + myarchprefix=ix86 + ;; + *) + myarchprefix=${ARCH} + ;; + esac + cd ${WORKDIR}/omalloc + einstall || die + cd ${WORKDIR}/MP + einstall || die + cd ${WORKDIR}/ntl + einstall || die + cd ${WORKDIR}/factory + einstall || die + cd ${WORKDIR}/libfac + einstall || die + cd ${WORKDIR}/Singular + einstall || die + rm ${D}/usr/LIB + dodir /usr/share/singular/LIB + dodir /usr/share/singular/LIB/gftables + insinto /usr/share/singular/LIB + cd ${WORKDIR}/Singular/LIB + doins *.lib* + doins COPYING + doins help.cnf + insinto /usr/share/singular/LIB/gftables + cd gftables + doins * + dodir /usr/bin + dodir /usr/lib/singular + + use doc && ( cd ${WORKDIR}/doc + # fake ssh during doc creation + cp ${FILESDIR}/fake_ssh ${T}/ssh + chmod +x ${T}/ssh + export PATH="${T}:${PATH}" + export LC_ALL="C" + make dvi + dodoc *.dvi + make ps + dodoc *.ps + local strange_error="Inappropriate ioctl for device" + echo ${strange_error} > makeresult + while grep -q "${strange_error}" makeresult + do make 2>&1 info | tee makeresult + done + echo > singular.info "INFO-DIR-SECTION Math" + echo >> singular.info "START-INFO-DIR-ENTRY" + echo >> singular.info "* Singular: (singular). A Computer Algebra System for Polynomial Computations" + echo >> singular.info "END-INFO-DIR-ENTRY" + cat singular.hlp >> singular.info + doinfo singular.info + make html + strange_error="Bad file descriptor" + echo ${strange_error} > makeresult + while grep -q "${strange_error}" makeresult + do make 2>&1 singular.idx | tee makeresult + done + insinto /usr/share/${PN} + doins singular.idx singular.hlp + dohtml -a htm,png,html,idx,css -r html/ html/* + cd ${D}/usr + dodir /usr/share/doc/${PF} + mv doc/NTL share/doc/${PF}/ + ) + cd ${D} + dosym /usr/bin/Singular-${MINPV} /usr/bin/Singular + + insinto /usr/lib/singular + cd ${D}/usr/${myarchprefix}-Linux + # don't do this before the docs are installed + rm Singular + dobin *Singular* + doins *.so + cd ${D}/usr + rm -r ${myarchprefix}-Linux +} + +pkg_postinst() { + einfo "The authors ask you to register as a SINGULAR user." + einfo "Please check the license file for details." +} |