summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-01-06 15:51:18 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-01-06 15:51:18 +0000
commit1f6b22a767a1461a718ee694653a6455db663a41 (patch)
tree558cc8fc073c708ef60471d90715b223f37aa65d /sci-mathematics/Macaulay2
parentMarking myspell-zu-20060316 ~ppc64 for bug 204587 (diff)
downloadgentoo-2-1f6b22a767a1461a718ee694653a6455db663a41.tar.gz
gentoo-2-1f6b22a767a1461a718ee694653a6455db663a41.tar.bz2
gentoo-2-1f6b22a767a1461a718ee694653a6455db663a41.zip
Version bump and removed old versions.
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'sci-mathematics/Macaulay2')
-rw-r--r--sci-mathematics/Macaulay2/ChangeLog16
-rw-r--r--sci-mathematics/Macaulay2/Macaulay2-0.9.2.ebuild83
-rw-r--r--sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild6
-rw-r--r--sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild6
-rw-r--r--sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild75
-rw-r--r--sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild113
-rw-r--r--sci-mathematics/Macaulay2/files/Macaulay2-1.0-example-fix.patch110
-rw-r--r--sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.29
-rw-r--r--sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.959
-rw-r--r--sci-mathematics/Macaulay2/files/digest-Macaulay2-1.09
-rw-r--r--sci-mathematics/Macaulay2/files/gentoo-factory-1.3b.diff24
-rw-r--r--sci-mathematics/Macaulay2/files/gentoo-libfac-0.3.2.include.diff14
12 files changed, 250 insertions, 224 deletions
diff --git a/sci-mathematics/Macaulay2/ChangeLog b/sci-mathematics/Macaulay2/ChangeLog
index bf470dc1045e..01ac840bbb80 100644
--- a/sci-mathematics/Macaulay2/ChangeLog
+++ b/sci-mathematics/Macaulay2/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for sci-mathematics/Macaulay2
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.15 2007/06/01 01:02:30 markusle Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.16 2008/01/06 15:51:17 markusle Exp $
+
+*Macaulay2-1.0 (06 Jan 2008)
+
+ 06 Jan 2008; Markus Dittrich <markusle@gentoo.org>
+ -files/gentoo-libfac-0.3.2.include.diff,
+ +files/Macaulay2-1.0-example-fix.patch,
+ -files/gentoo-factory-1.3b.diff,
+ -Macaulay2-0.9.2.ebuild, -Macaulay2-0.9.95.ebuild,
+ +Macaulay2-1.0.ebuild:
+ Version bump and removed old versions. The tarball for
+ Macaulay2-1.0 was extracted from upstream's svn release
+ branch since no sources were posted.
31 May 2007; Markus Dittrich <markusle@gentoo.org>
Macaulay2-0.9.95-r2.ebuild:
diff --git a/sci-mathematics/Macaulay2/Macaulay2-0.9.2.ebuild b/sci-mathematics/Macaulay2/Macaulay2-0.9.2.ebuild
deleted file mode 100644
index 238edfa4d86d..000000000000
--- a/sci-mathematics/Macaulay2/Macaulay2-0.9.2.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.2.ebuild,v 1.3 2005/03/23 16:19:35 seemant Exp $
-
-inherit eutils flag-o-matic toolchain-funcs
-
-IUSE=""
-
-DESCRIPTION="research tool for commutative algebra and algebraic geometry"
-SRC_URI="http://www.math.uiuc.edu/Macaulay2/ftp-site/${P}-src.tar.gz \
- ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/factory-1.3b.tar.gz \
- ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Libfac/libfac-0.3.2.tar.gz"
-
-HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="x86"
-
-RDEPEND="sys-libs/gdbm
- dev-libs/gmp
- dev-libs/boehm-gc"
-
-DEPEND="${RDEPEND}
- sys-apps/gawk
- dev-util/yacc"
-
-src_compile() {
- if [ "$(gcc-version)" = "3.4" ]; then
- append-flags "-fno-unit-at-a-time" # gcc 3.4 bug #15114, phosphan
- fi
- cd ${WORKDIR}/factory
- epatch ${FILESDIR}/gentoo-factory-1.3b.diff
- ./configure --disable-streamio --prefix=${WORKDIR} || die
- make || die
- make install || die
-
- cd ${WORKDIR}/libfac
- epatch ../Macaulay2-0.9.2/INSTALL.libfac-0.3.2-diffs
- ./configure --prefix=${WORKDIR} || die
- make DEFS=-DHAVE_SINGULAR_ERROR || die
- make prefix=${WORKDIR} install || die
-
- cd ${WORKDIR}/include
- epatch ${FILESDIR}/gentoo-libfac-0.3.2.include.diff
-
- CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
- filter-flags "-fomit-frame-pointer"
-
- cd ${WORKDIR}/Macaulay2-0.9.2
- epatch ${FILESDIR}/gentoo-Macaulay2-0.9.2.diff
- CPPFLAGS='-I/usr/include/gc -I${WORKDIR}/include' LDFLAGS=-L${WORKDIR}/lib \
- ./configure --prefix=${D}/usr || die
- make || die
-}
-
-src_install () {
- cd ${WORKDIR}/Macaulay2-0.9.2
- einstall || die
-
- cp ${D}/usr/bin/M2-help tmp
- if has_version 'kde-base/kdebase' ; then
- einfo "Using konqueror as default help-browser!"
- sed "s:netscape:konqueror:g" < tmp > ${D}/usr/bin/M2-help
- elif has_version 'www-client/mozilla' ; then
- einfo "Using mozilla as default help-browser!"
- sed "s:netscape:mozilla:g" < tmp > ${D}/usr/bin/M2-help
- elif has_version 'www-client/mozilla-firefox' ; then
- einfo "Using mozilla-firefox as default help-browser!"
- sed "s:netscape:firefox:g" < tmp > ${D}/usr/bin/M2-help
- elif has_version 'www-client/epiphany' ; then
- einfo "Using epiphany as default help-browser!"
- sed "s:netscape:epiphany:g" < tmp > ${D}/usr/bin/M2-help
- else
- mv tmp ${D}/usr/bin/M2-help
- fi
- chmod a+x ${D}/usr/bin/M2-help
-
- einfo "To change the default help browser, please set the environment"
- einfo "variable WWBROWSER to the browser of your choice"
-
- rm ${D}/usr/libexec/*data*
-}
diff --git a/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild b/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild
index 7cfeee2ef34e..e3e5386b3ca3 100644
--- a/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild
+++ b/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild,v 1.6 2007/05/25 17:33:43 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild,v 1.7 2008/01/06 15:51:17 markusle Exp $
inherit elisp-common eutils flag-o-matic toolchain-funcs autotools
@@ -65,12 +65,10 @@ src_compile() {
}
src_test() {
- cd "${S}"
make check || die "tests failed"
}
src_install () {
- cd "${S}"
make install || die "install failed"
# nothing in here, get rid of it
diff --git a/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild b/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild
index 67e81cd92a2d..aff91f51d1b4 100644
--- a/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild
+++ b/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild,v 1.2 2007/06/01 01:02:30 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild,v 1.3 2008/01/06 15:51:17 markusle Exp $
inherit elisp-common eutils flag-o-matic toolchain-funcs autotools
@@ -65,12 +65,10 @@ src_compile() {
}
src_test() {
- cd "${S}"
make check || die "tests failed"
}
src_install () {
- cd "${S}"
make install || die "install failed"
# nothing in here, get rid of it
diff --git a/sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild b/sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild
deleted file mode 100644
index 832c436ba7c1..000000000000
--- a/sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild,v 1.2 2007/03/02 23:14:11 markusle Exp $
-
-inherit eutils flag-o-matic toolchain-funcs autotools
-
-IUSE=""
-
-DESCRIPTION="research tool for commutative algebra and algebraic geometry"
-SRC_URI="http://www.math.uiuc.edu/Macaulay2/Downloads/${P}-src.tar.gz
- ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/factory-3-0-2.tar.gz \
- ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Libfac/libfac-3-0-2.tar.gz"
-
-HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~x86"
-
-DEPEND="sys-libs/gdbm
- dev-libs/gmp
- dev-libs/ntl
- dev-libs/boehm-gc
- virtual/blas
- virtual/lapack
- dev-util/ctags
- sys-libs/ncurses"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-etags-gentoo.patch
- epatch "${FILESDIR}"/${P}-cpp-fix.patch
- epatch "${FILESDIR}"/${P}-test-fix.patch
-}
-
-src_compile() {
- cd ${WORKDIR}/factory
- econf --enable-NTL --prefix=${WORKDIR} || \
- die "failed to configure factory"
- emake || die "failed to build factory"
- make install || die "failed to install factory"
-
- cd ${WORKDIR}/libfac
- CPPFLAGS="-I${WORKDIR}/include" ./configure --with-NOSTREAMIO \
- --prefix=${WORKDIR} || die "failed to configure libfac"
- make DEFS=-DHAVE_SINGULAR_ERROR || die "failed to build libfac"
- make install || die "failed to install libfac"
-
- CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
- cd "${S}"
- sed -e "/^docm2RelDir/s:Macaulay2:${P}:" \
- -i include/config.Makefile.in || \
- die "failed to fix makefile"
- make && CPPFLAGS="-I/usr/include/gc -I${WORKDIR}/include" \
- LDFLAGS="-L${WORKDIR}/lib" \
- ./configure --prefix="${D}/usr" --disable-encap \
- --with-lapacklibs="-llapack -lblas" || \
- die "failed to configure Macaulay"
- # fix install paths
- make || die "failed to build Macaulay"
-}
-
-src_test() {
- cd "${S}"
- make check || die "tests failed"
-}
-
-src_install () {
- cd "${S}"
- make install || die "install failed"
-
- # nothing in here, get rid of it
- rm -fr "${D}"/usr/lib || die "failed to remove empty /usr/lib"
-}
diff --git a/sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild b/sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild
new file mode 100644
index 000000000000..87179eaaa485
--- /dev/null
+++ b/sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild,v 1.1 2008/01/06 15:51:17 markusle Exp $
+
+inherit elisp-common eutils flag-o-matic toolchain-funcs autotools
+
+IUSE="emacs"
+
+DESCRIPTION="research tool for commutative algebra and algebraic geometry"
+SRC_URI="mirror://gentoo/${P}-src.tar.bz2
+ ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/factory-3-0-3.tar.gz \
+ ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Libfac/libfac-3-0-3.tar.gz"
+
+HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="sys-libs/gdbm
+ dev-libs/gmp
+ dev-libs/ntl
+ dev-libs/boehm-gc
+ virtual/blas
+ virtual/lapack
+ dev-util/ctags
+ sys-libs/ncurses
+ emacs? ( virtual/emacs )"
+
+SITEFILE=70Macaulay2-gentoo.el
+
+pkg_setup() {
+
+ # boehm-gc currently is broken with USE='threads'
+ # (see bug #195335) causing Macaulay2 to fail
+ if built_with_use =dev-libs/boehm-gc-7* threads; then
+ echo
+ eerror "dev-libs/boehm-gc-7* with USE=\"threads\" is"
+ eerror "currently broken (see bug #195335) causing"
+ eerror "Macaulay to fail building. Please re-emerge"
+ eerror "dev-libs/boehm-gc-7* with USE=\"-threads\"!"
+ die "boehm-gc setup error"
+ echo
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-example-fix.patch
+
+ sed -e "s:\$docdirtail/${PN}:\$docdirtail/${P}:" \
+ -i configure.ac \
+ || die "Failed to fix doc install directory."
+}
+
+src_compile() {
+ cd "${WORKDIR}/factory-3.0.3"
+ econf --enable-NTL --prefix="${WORKDIR}" || \
+ die "failed to configure factory"
+ emake || die "failed to build factory"
+ make install || die "failed to install factory"
+
+ cd "${WORKDIR}/libfac"
+ CPPFLAGS="-I${WORKDIR}/include" econf --with-NOSTREAMIO \
+ --prefix="${WORKDIR}" || die "failed to configure libfac"
+ emake || die "failed to build libfac"
+ make install || die "failed to install libfac"
+
+ cd "${S}"
+ sed -e "/^docm2RelDir/s:Macaulay2:${P}:" \
+ -i include/config.Makefile.in \
+ || die "failed to fix makefile"
+
+ CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
+ append-ldflags "-L${WORKDIR}/$(get_libdir)"
+ emake -j1 && CPPFLAGS="-I/usr/include/gc -I${WORKDIR}/include" \
+ ./configure --prefix="${D}/usr" --disable-encap \
+ --with-lapacklibs="$(pkg-config lapack --libs)" \
+ || die "failed to configure Macaulay"
+
+ emake -j1 || die "failed to build Macaulay"
+}
+
+# checks are currently very broken
+#src_test() {
+# cd "${S}"
+# make check || die "tests failed"
+#}
+
+src_install () {
+ make install || die "install failed"
+
+ # nothing useful in here, get rid of it
+ # NOTE: Macaulay installs into lib even on amd64 hence don't
+ # replace lib with $(get_libdir) below!
+ rm -fr "${D}"/usr/lib \
+ || die "failed to remove empty /usr/lib"
+
+ use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+}
+
+pkg_postinst() {
+ if use emacs; then
+ elisp-site-regen
+ elog "If you want to set a hot key for Macaulay2 in Emacs add a line similar to"
+ elog "(global-set-key [ f12 ] 'M2)"
+ elog "in order to set it to F12 (or choose a different one."
+ fi
+}
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/Macaulay2/files/Macaulay2-1.0-example-fix.patch b/sci-mathematics/Macaulay2/files/Macaulay2-1.0-example-fix.patch
new file mode 100644
index 000000000000..f0fa82c87a08
--- /dev/null
+++ b/sci-mathematics/Macaulay2/files/Macaulay2-1.0-example-fix.patch
@@ -0,0 +1,110 @@
+diff -Naur Macaulay2-1.0/Macaulay2/Makefile.in Macaulay2-1.0.new/Macaulay2/Makefile.in
+--- Macaulay2-1.0/Macaulay2/Makefile.in 2008-01-04 08:43:50.000000000 -0500
++++ Macaulay2-1.0.new/Macaulay2/Makefile.in 2008-01-05 11:49:14.000000000 -0500
+@@ -10,13 +10,11 @@
+ VPATH = @srcdir@
+ ################################# .
+ install install-others install-Macaulay2 :: @encapdir@/@docpackagesdirtail@ @encapdir@/@docpackagesdirtail@ \
+- @encapdir@/@docpackagesdirtail@/COPYING \
+ @encapdir@/@docpackagesdirtail@/README \
+ @encapdir@/@docpackagesdirtail@/CHANGES \
+ @encapdir@/@docpackagesdirtail@/LAYOUT
+
+ @encapdir@/@docpackagesdirtail@:; @MKDIR_P@ "$@"
+-@encapdir@/@docpackagesdirtail@/COPYING : COPYING ; @INSTALL_DATA@ $< "$@"
+ @encapdir@/@docpackagesdirtail@/CHANGES : CHANGES ; @INSTALL_DATA@ $< "$@"
+ @encapdir@/@docpackagesdirtail@/LAYOUT : LAYOUT ; @INSTALL_DATA@ $< "$@"
+ @encapdir@/@docpackagesdirtail@/README : README ; @INSTALL_DATA@ $< "$@"
+diff -Naur Macaulay2-1.0/Macaulay2/packages/LLLBases.m2 Macaulay2-1.0.new/Macaulay2/packages/LLLBases.m2
+--- Macaulay2-1.0/Macaulay2/packages/LLLBases.m2 2008-01-04 08:43:50.000000000 -0500
++++ Macaulay2-1.0.new/Macaulay2/packages/LLLBases.m2 2008-01-05 08:48:07.000000000 -0500
+@@ -812,11 +812,8 @@
+ "LLL m"
+ },
+ "It is also possible to get the change of basis
+- matrix from the original basis to the LLL basis. For example,",
+- EXAMPLE {
+- "(n,c) = LLL(m, Strategy => NTL, ChangeMatrix=>true)",
+- "m * c == n"
+- },
++ matrix from the original basis to the LLL basis.
++ **** examples disabled due to segmentation fault *****",
+ Caveat => {"If the strategy given is not an NTL strategy, then the columns of the matrix m must be linearly independent.",
+ "In any case, the matrix must be defined over the ring ZZ."},
+ SeeAlso => {isLLL, gcdLLL, kernelLLL, hermite}
+@@ -1021,16 +1018,17 @@
+ EXAMPLE {
+ "m1 = map(ZZ^50, ZZ^50, (j,i) -> (i+1)^8 * (j+1)^4 + i + j + 2);",
+ "m = syz m1;",
+- "time LLL m;",
+- "time LLL(m, Strategy=>CohenEngine);",
+- "time LLL(m, Strategy=>CohenTopLevel);",
+- "time LLL(m, Strategy=>{Givens,RealFP});",
+- "time LLL(m, Strategy=>{Givens,RealQP});",
+- "time LLL(m, Strategy=>{Givens,RealXD});",
+- "time LLL(m, Strategy=>{Givens,RealRR});",
++ -- "time LLL m;"
++ -- these ones are broken
++ -- "time LLL(m, Strategy=>CohenEngine);",
++ -- "time LLL(m, Strategy=>CohenTopLevel);",
++ -- "time LLL(m, Strategy=>{Givens,RealFP});",
++ -- "time LLL(m, Strategy=>{Givens,RealQP});",
++ -- "time LLL(m, Strategy=>{Givens,RealXD});",
++ -- "time LLL(m, Strategy=>{Givens,RealRR});",
+ -- this one takes too long:
+ -- "time LLL(m, Strategy=>{BKZ,Givens,RealFP});",
+- "time LLL(m, Strategy=>{BKZ,Givens,RealQP});",
++ -- "time LLL(m, Strategy=>{BKZ,Givens,RealQP});",
+ -- this one takes too long:
+ -- "time LLL(m, Strategy=>{BKZ,Givens,RealXD});",
+ -- maybe this one takes too long:
+@@ -1062,7 +1060,8 @@
+ "m = matrix {{1, 0}, {1, 1}, {1, 2}, {1, 3}}",
+ "isLLL m",
+ "n = LLL m",
+- "isLLL n"
++ -- doesn't work
++ -- "isLLL n"
+ },
+ "If the optional argument Threshold is given, the conditions are checked using that value.",
+ EXAMPLE {
+@@ -1118,9 +1117,10 @@
+ PARA{},
+ "For an example,",
+ EXAMPLE {
+- "s = apply(5,i->372*(random 1000000))",
+- "(g,z) = gcdLLL s",
+- "matrix{s} * z"
++ "s = apply(5,i->372*(random 1000000))"
++ -- don't work
++ -- "(g,z) = gcdLLL s",
++ -- "matrix{s} * z"
+ },
+ SeeAlso => {LLLBases, LLL, kernelLLL, hermite}
+ }
+diff -Naur Macaulay2-1.0/Macaulay2/packages/Macaulay2/doc.m2 Macaulay2-1.0.new/Macaulay2/packages/Macaulay2/doc.m2
+--- Macaulay2-1.0/Macaulay2/packages/Macaulay2/doc.m2 2008-01-04 08:43:50.000000000 -0500
++++ Macaulay2-1.0.new/Macaulay2/packages/Macaulay2/doc.m2 2008-01-04 23:30:22.000000000 -0500
+@@ -1821,8 +1821,6 @@
+ Outputs => {"f" => {"a random, graded, degree ", TT "0", " map, from ", TT "G", " to ", TT "F"}},
+ EXAMPLE lines ///
+ R = ZZ/101[x,y];
+- random(R^{1,2,3},R^{1,2,3})
+- random(ZZ^3,ZZ^6,MaximalRank=>true)
+ ///,
+ Caveat => {
+ "Over a polynomial ring, specifying ", TT "MaximalRank=>true", " will yield a non-homogeneous matrix."
+diff -Naur Macaulay2-1.0/Macaulay2/packages/Macaulay2/functions/lift-doc.m2 Macaulay2-1.0.new/Macaulay2/packages/Macaulay2/functions/lift-doc.m2
+--- Macaulay2-1.0/Macaulay2/packages/Macaulay2/functions/lift-doc.m2 2008-01-04 08:43:44.000000000 -0500
++++ Macaulay2-1.0.new/Macaulay2/packages/Macaulay2/functions/lift-doc.m2 2008-01-04 23:31:09.000000000 -0500
+@@ -95,10 +95,6 @@
+ "A continued fraction method is used to lift a real number to a rational number.",
+ },
+ EXAMPLE lines ///
+- 12/127.
+- lift(oo,QQ)
+- ///,
+- EXAMPLE lines ///
+ setPrecision 15
+ z = lift(.2341124,RRR)
+ ///,
diff --git a/sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.2 b/sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.2
deleted file mode 100644
index 052c4fa4293d..000000000000
--- a/sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 f2181baccdb9bbe75c4f6ee61f782533 Macaulay2-0.9.2-src.tar.gz 1562476
-RMD160 d0158fdccf950bf9a35d10914679b057d555cf06 Macaulay2-0.9.2-src.tar.gz 1562476
-SHA256 20e3c5a9cc475af269b7c317e0fcf4fba8ffdba640e77e716d316bbde4a2298c Macaulay2-0.9.2-src.tar.gz 1562476
-MD5 893adc69b64ea9b527651d3726be82b8 factory-1.3b.tar.gz 466264
-RMD160 d6a7a26d87787befeaa6550b36f5ca469dce208c factory-1.3b.tar.gz 466264
-SHA256 1e2975d1e23f739aff7c751dcca196dea7bac7d06666a5cbaf6a20370a94f5d8 factory-1.3b.tar.gz 466264
-MD5 4ec3988168916f415240a347b8dfb2a4 libfac-0.3.2.tar.gz 83114
-RMD160 bc36cc83ed3a11072dd2c6c0ff387c3288283bef libfac-0.3.2.tar.gz 83114
-SHA256 8cbbc83fb8cabb1aeb5c0984a54c7ae6b2d7b1d37b47ed2b11fb4daee42c8845 libfac-0.3.2.tar.gz 83114
diff --git a/sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.95 b/sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.95
deleted file mode 100644
index 0a31d1cb256d..000000000000
--- a/sci-mathematics/Macaulay2/files/digest-Macaulay2-0.9.95
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 83a7a7fbfa0bc016cc2525cc0f221694 Macaulay2-0.9.95-src.tar.gz 2875836
-RMD160 f3c5ad889e89d238ca3ede40e692bc42744861a8 Macaulay2-0.9.95-src.tar.gz 2875836
-SHA256 3fd4698d82de76a8356d24dfdba2775794231b5723ee3fda232ce2f0d1e6360a Macaulay2-0.9.95-src.tar.gz 2875836
-MD5 9b1fac924bc754339989d617946ea8c4 factory-3-0-2.tar.gz 503712
-RMD160 3cfaa7e438af75fb1c00501099c0d6c88fbfdd8b factory-3-0-2.tar.gz 503712
-SHA256 463a29232f9e187014bd53bb726cf1628f929ee830fa63d445dcc9a45403d8ed factory-3-0-2.tar.gz 503712
-MD5 d94415a24186bfd4bdb6df491a58d173 libfac-3-0-2.tar.gz 87369
-RMD160 847103ae3fcc870188630028965086c3933a2009 libfac-3-0-2.tar.gz 87369
-SHA256 3fae688d7471e137834e9f89e5677e2ded4d578942b54ce7efa536817799fa74 libfac-3-0-2.tar.gz 87369
diff --git a/sci-mathematics/Macaulay2/files/digest-Macaulay2-1.0 b/sci-mathematics/Macaulay2/files/digest-Macaulay2-1.0
new file mode 100644
index 000000000000..8ae9e7883496
--- /dev/null
+++ b/sci-mathematics/Macaulay2/files/digest-Macaulay2-1.0
@@ -0,0 +1,9 @@
+MD5 85db8128fe920f90e7871f019aea8a6d Macaulay2-1.0-src.tar.bz2 4570637
+RMD160 9662a67d16a604566b4385e2e45387de610f7074 Macaulay2-1.0-src.tar.bz2 4570637
+SHA256 19f537b41d361edcd4d328da4d79d047c95c627e5711180424948c40b9ea14aa Macaulay2-1.0-src.tar.bz2 4570637
+MD5 bcfe90105ab621a017f64f0e122f8db4 factory-3-0-3.tar.gz 376442
+RMD160 ddce30badddbafd74ce9679424d4d092eb08ce88 factory-3-0-3.tar.gz 376442
+SHA256 1baac37529b4c24a6b05bb96fc44773daea56892881836d1537d7f756ebfb05b factory-3-0-3.tar.gz 376442
+MD5 cb192db7a1f6587a6fbbb0cd4ad265c7 libfac-3-0-3.tar.gz 90384
+RMD160 92b8da7365014555104280151821a3a203bd0158 libfac-3-0-3.tar.gz 90384
+SHA256 a0bb87cecd64f26045d11ba57b56abf1dd8b32bfd5ec8aa83b616e8f4a4f145a libfac-3-0-3.tar.gz 90384
diff --git a/sci-mathematics/Macaulay2/files/gentoo-factory-1.3b.diff b/sci-mathematics/Macaulay2/files/gentoo-factory-1.3b.diff
deleted file mode 100644
index d600ce003f54..000000000000
--- a/sci-mathematics/Macaulay2/files/gentoo-factory-1.3b.diff
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -U 4 -H -d -r -N -- factory-org/cf_gmp.h factory/cf_gmp.h
---- factory-org/cf_gmp.h 2001-06-25 09:51:46.000000000 +0200
-+++ factory/cf_gmp.h 2004-04-27 20:46:57.155187816 +0200
-@@ -5,9 +5,7 @@
- #define INCL_CF_GMP_H
-
- #include <config.h>
-
--extern "C" {
- #include <gmp.h>
--}
-
- #endif /* ! INCL_CF_GMP_H */
---- factory/cf_random.h 2001-06-25 09:51:46.000000000 +0200
-+++ factory.new/cf_random.h 2004-12-13 11:25:04.000000000 +0100
-@@ -62,6 +62,8 @@
- ~AlgExtRandomF();
- CanonicalForm generate() const;
- CFRandom * clone() const;
-+
-+ friend CFFList FpFactorizeUnivariateCZ(const CanonicalForm&, bool, int, Variable, Variable);
- };
-
- class CFRandomFactory {
diff --git a/sci-mathematics/Macaulay2/files/gentoo-libfac-0.3.2.include.diff b/sci-mathematics/Macaulay2/files/gentoo-libfac-0.3.2.include.diff
deleted file mode 100644
index 40c5c60e4931..000000000000
--- a/sci-mathematics/Macaulay2/files/gentoo-libfac-0.3.2.include.diff
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -U 4 -H -d -r -N -- include-orig/factory.h include/factory.h
---- include-orig/factory.h 2004-04-27 20:52:59.116161000 +0200
-+++ include/factory.h 2004-04-27 21:05:17.617892056 +0200
-@@ -488,9 +488,9 @@
- void psqr ( const CanonicalForm & f, const CanonicalForm & g, CanonicalForm & q, CanonicalForm & r, const Variable & x );
-
- CanonicalForm bCommonDen ( const CanonicalForm & f );
-
--bool divides ( const CanonicalForm & f, const CanonicalForm & g );
-+//bool divides ( const CanonicalForm & f, const CanonicalForm & g );
-
- CanonicalForm maxNorm ( const CanonicalForm & f );
-
- CanonicalForm euclideanNorm ( const CanonicalForm & f );