diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2003-10-24 10:13:48 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2003-10-24 10:13:48 +0000 |
commit | b58c8d8939997b0ae4e97bd35c90dd179731cfc8 (patch) | |
tree | f41e84e1a3b72b401bb4638570ab9df150b8df78 /app-sci | |
parent | Initial import, see bug 26115 (diff) | |
download | historical-b58c8d8939997b0ae4e97bd35c90dd179731cfc8.tar.gz historical-b58c8d8939997b0ae4e97bd35c90dd179731cfc8.tar.bz2 historical-b58c8d8939997b0ae4e97bd35c90dd179731cfc8.zip |
Initial import, see bug 26115
Diffstat (limited to 'app-sci')
-rw-r--r-- | app-sci/singular/Manifest | 4 | ||||
-rw-r--r-- | app-sci/singular/files/digest-singular-2.0.4 | 12 | ||||
-rw-r--r-- | app-sci/singular/files/singular-2.0.4-gentoo.diff | 70 | ||||
-rw-r--r-- | app-sci/singular/metadata.xml | 5 | ||||
-rw-r--r-- | app-sci/singular/singular-2.0.4.ebuild | 86 |
5 files changed, 176 insertions, 1 deletions
diff --git a/app-sci/singular/Manifest b/app-sci/singular/Manifest index 479e11b4f2d2..f2ccba4f88f3 100644 --- a/app-sci/singular/Manifest +++ b/app-sci/singular/Manifest @@ -1,3 +1,5 @@ -MD5 768f1ae7c0cee175dd122e6c6748ba7c singular-2.0.4.ebuild 2535 +MD5 eb94cc70a08390a13b1a1504fd5da2f4 singular-2.0.4.ebuild 2537 +MD5 d3437d25b8c64f25372d74aef6c0cd51 ChangeLog 446 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 MD5 b52673163a28446aae41691abc3e705d files/digest-singular-2.0.4 862 MD5 660ffc170458b159396e236d9d25351f files/singular-2.0.4-gentoo.diff 2677 diff --git a/app-sci/singular/files/digest-singular-2.0.4 b/app-sci/singular/files/digest-singular-2.0.4 new file mode 100644 index 000000000000..e836a917cf5e --- /dev/null +++ b/app-sci/singular/files/digest-singular-2.0.4 @@ -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/app-sci/singular/files/singular-2.0.4-gentoo.diff b/app-sci/singular/files/singular-2.0.4-gentoo.diff new file mode 100644 index 000000000000..3f990c729127 --- /dev/null +++ b/app-sci/singular/files/singular-2.0.4-gentoo.diff @@ -0,0 +1,70 @@ +--- 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; diff --git a/app-sci/singular/metadata.xml b/app-sci/singular/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/app-sci/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/app-sci/singular/singular-2.0.4.ebuild b/app-sci/singular/singular-2.0.4.ebuild new file mode 100644 index 000000000000..18e2ea14744c --- /dev/null +++ b/app-sci/singular/singular-2.0.4.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-sci/singular/singular-2.0.4.ebuild,v 1.1 2003/10/24 10:13:41 phosphan Exp $ + +S=${WORKDIR}/${P} +MINPV=${PV//./-} +BPN=${PN/s/S} +DESCRIPTION="Singular" +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/" + +DEPEND=">=dev-lang/perl-5.6 + >=dev-libs/gmp-4.1-r1" + +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} + 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 + dosym /usr/bin/Singular-2-0-4 /usr/bin/Singular + cd ${D}/usr + rm -r ${myarchprefix}-Linux +} |