summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-04-28 04:53:22 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-04-28 04:53:22 +0000
commit32b98b7b99b1805025b9ab5a21a6e325f70ecd3c (patch)
tree75dba3340b067a062013b04b0128b39ad8da5e3c /sci-mathematics/singular
parentVersion bump (diff)
downloadgentoo-2-32b98b7b99b1805025b9ab5a21a6e325f70ecd3c.tar.gz
gentoo-2-32b98b7b99b1805025b9ab5a21a6e325f70ecd3c.tar.bz2
gentoo-2-32b98b7b99b1805025b9ab5a21a6e325f70ecd3c.zip
Version bump. Rewrote the ebuild.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/singular')
-rw-r--r--sci-mathematics/singular/ChangeLog13
-rw-r--r--sci-mathematics/singular/files/fake_ssh5
-rw-r--r--sci-mathematics/singular/files/singular-3.0.4.2-gentoo.diff83
-rw-r--r--sci-mathematics/singular/files/singular-3.0.4.4-emacs-22.patch31
-rw-r--r--sci-mathematics/singular/files/singular-3.0.4.4-glibc-2.10.patch31
-rw-r--r--sci-mathematics/singular/singular-3.0.4.4.ebuild161
-rw-r--r--sci-mathematics/singular/singular-3.1.1.ebuild133
7 files changed, 144 insertions, 313 deletions
diff --git a/sci-mathematics/singular/ChangeLog b/sci-mathematics/singular/ChangeLog
index 7fda4e792607..7de96bbe10af 100644
--- a/sci-mathematics/singular/ChangeLog
+++ b/sci-mathematics/singular/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sci-mathematics/singular
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.31 2009/12/04 02:12:41 markusle Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.32 2010/04/28 04:53:21 bicatali Exp $
+
+*singular-3.1.1 (28 Apr 2010)
+
+ 28 Apr 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/singular-3.0.4.2-gentoo.diff, -singular-3.0.4.4.ebuild,
+ -files/singular-3.0.4.4-emacs-22.patch,
+ -files/singular-3.0.4.4-glibc-2.10.patch, +singular-3.1.1.ebuild,
+ -files/fake_ssh:
+ Version bump. Rewrote the ebuild.
04 Dec 2009; Markus Dittrich <markusle@gentoo.org>
singular-3.1.0.7.ebuild:
diff --git a/sci-mathematics/singular/files/fake_ssh b/sci-mathematics/singular/files/fake_ssh
deleted file mode 100644
index 127c177760e3..000000000000
--- a/sci-mathematics/singular/files/fake_ssh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/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-3.0.4.2-gentoo.diff b/sci-mathematics/singular/files/singular-3.0.4.2-gentoo.diff
deleted file mode 100644
index 4500c2964e8e..000000000000
--- a/sci-mathematics/singular/files/singular-3.0.4.2-gentoo.diff
+++ /dev/null
@@ -1,83 +0,0 @@
-diff -Naur Singular-3-0-4/kernel/feResource.cc Singular-3-0-4.new/kernel/feResource.cc
---- Singular-3-0-4/kernel/feResource.cc 2008-03-19 13:44:08.000000000 -0400
-+++ Singular-3-0-4.new/kernel/feResource.cc 2008-04-21 09:10:53.000000000 -0400
-@@ -41,7 +41,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)
-
- /*****************************************************************
-@@ -73,33 +73,31 @@
- {
- {"SearchPath", 's', feResPath, NULL,
- "$SINGULARPATH;"
-- "%b/LIB;"
-- "%b/MOD;"
-+ "%r/share/singular/MOD;"
- "%r/LIB;"
-- "%r/../LIB;"
-+ "%r/share/singular/LIB;"
- "%d/LIB;"
-- "%d/../LIB"
- ""},
-- {"Singular", 'S', feResBinary,"SINGULAR_EXECUTABLE", "%d/"S_UNAME"/Singular",""},
-- {"BinDir", 'b', feResDir, "SINGULAR_BIN_DIR", "%d/"S_UNAME ""},
-- {"RootDir", 'r', feResDir, "SINGULAR_ROOT_DIR", "%b/..", ""},
-+ {"Singular", 'S', feResBinary,"SINGULAR_EXECUTABLE", "%d/bin/Singular",""},
-+ {"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/info/singular.info.bz2", ""},
-+ {"IdxFile", 'x', feResFile, "SINGULAR_IDX_FILE", "%r/share/singular/singular.idx", ""},
-+ {"HtmlDir", 'h', feResDir, "SINGULAR_HTML_DIR", "%r/share/doc/PFSUBST/html", ""},
- #ifdef ix86_Win
- {"HtmlHelpFile", 'C', feResFile, "SINGULAR_CHM_FILE", "%r/doc/Manual.chm", ""},
- #endif
- {"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", ""},
- {"Path", 'p', feResPath, NULL, "%b;$PATH", ""},
-
- #ifdef ESINGULAR
- {"emacs", 'E', feResBinary, "ESINGULAR_EMACS", "%b/emacs", ""},
- {"xemacs", 'A', feResBinary, "ESINGULAR_EMACS", "%b/xemacs", ""},
- {"SingularEmacs",'M',feResBinary, "ESINGULAR_SINGULAR", "%b/Singular", ""},
-- {"EmacsLoad",'l', feResFile, "ESINGULAR_EMACS_LOAD", "%e/.emacs-singular", ""},
-- {"EmacsDir", 'e', feResDir, "ESINGULAR_EMACS_DIR", "%r/emacs", ""},
-+ {"EmacsLoad",'l', feResFile, "ESINGULAR_EMACS_LOAD", "%r/share/emacs/site-lisp/singular/.emacs-singular", ""},
-+ {"EmacsDir", 'e', feResDir, "ESINGULAR_EMACS_DIR", "%r/share/emacs/site-lisp/singular", ""},
- #elif defined(TSINGULAR)
- {"SingularXterm",'M',feResBinary, "TSINGULAR_SINGULAR", "%b/Singular", ""},
- #ifdef ix86_Win
-@@ -108,7 +106,7 @@
- {"xterm", 'X', feResBinary,"XTERM", "%b/xterm", ""},
- #endif
- #else
-- {"EmacsDir", 'e', feResDir, "SINGULAR_EMACS_DIR", "%r/emacs", ""},
-+ {"EmacsDir", 'e', feResDir, "SINGULAR_EMACS_DIR", "%r/share/emacs/site-lisp/singular", ""},
- #endif
- {NULL, 0, feResUndef, NULL, NULL, NULL}, // must be the last record
- };
-diff -Naur Singular-3-0-4/kernel/mod_raw.cc Singular-3-0-4.new/kernel/mod_raw.cc
---- Singular-3-0-4/kernel/mod_raw.cc 2008-03-19 13:44:10.000000000 -0400
-+++ Singular-3-0-4.new/kernel/mod_raw.cc 2008-04-21 09:10:53.000000000 -0400
-@@ -111,11 +111,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", bin_dir,"/lib/singular", DIR_SEPP, binary_name,
- DL_TAIL);
- handle = dynl_open(path_name);
- if (handle == NULL && ! warn_handle)
diff --git a/sci-mathematics/singular/files/singular-3.0.4.4-emacs-22.patch b/sci-mathematics/singular/files/singular-3.0.4.4-emacs-22.patch
deleted file mode 100644
index f05db402ea1b..000000000000
--- a/sci-mathematics/singular/files/singular-3.0.4.4-emacs-22.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff -Naur Singular-3-0-4/emacs/.emacs-singular Singular-3-0-4.new/emacs/.emacs-singular
---- Singular-3-0-4/emacs/.emacs-singular 2004-12-09 11:27:54.000000000 -0500
-+++ Singular-3-0-4.new/emacs/.emacs-singular 2008-11-07 18:06:50.000000000 -0500
-@@ -96,10 +96,10 @@
- ;; unix stuff
-
- ;; lazy-lock seems to be broken under mswindows:
-- ;; causes delay of input (only reacts after mouse click), or even total
-+ ;; causes delay of input (only reacts after mouse click), or even total
- ;; hang
-- (add-hook 'font-lock-mode-hook 'lazy-lock-mode)
-- (setq font-lock-support-mode 'lazy-lock-mode)
-+ ;(add-hook 'font-lock-mode-hook 'lazy-lock-mode)
-+ ;(setq font-lock-support-mode 'lazy-lock-mode)
-
- ;; somewhat nicer scrolling This causes a core dump with 21.1.9
- ;; under cygwin, when a file is opened with a button
-diff -Naur Singular-3-0-4/emacs/singular.el Singular-3-0-4.new/emacs/singular.el
---- Singular-3-0-4/emacs/singular.el 2000-12-18 10:44:32.000000000 -0500
-+++ Singular-3-0-4.new/emacs/singular.el 2008-11-07 18:06:02.000000000 -0500
-@@ -865,7 +865,9 @@
- (add-hook 'singular-post-output-filter-functions 'singular-prompt-remove-filter nil t)
-
- ;; some relict from Comint mode
-- (setq comint-prompt-regexp singular-comint-prompt-regexp))
-+ (setq comint-prompt-regexp singular-comint-prompt-regexp)
-+ (setq comint-use-prompt-regexp-instead-of-fields 1)
-+ )
- ;;}}}
-
- ;;{{{ Miscellaneous
diff --git a/sci-mathematics/singular/files/singular-3.0.4.4-glibc-2.10.patch b/sci-mathematics/singular/files/singular-3.0.4.4-glibc-2.10.patch
deleted file mode 100644
index 64525f4b30b5..000000000000
--- a/sci-mathematics/singular/files/singular-3.0.4.4-glibc-2.10.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff -ur Singular-3-0-4.old/kernel/febase.cc Singular-3-0-4/kernel/febase.cc
---- Singular-3-0-4.old/kernel/febase.cc 2009-07-07 01:15:49.088761926 +0300
-+++ Singular-3-0-4/kernel/febase.cc 2009-07-07 01:16:51.157012952 +0300
-@@ -743,13 +743,13 @@
- char* dir_sep;
- struct passwd *pw_entry;
- strcpy (longpath, path);
-- dir_sep = strchr(longpath, DIR_SEP);
-+ dir_sep = const_cast<char*> ( strchr(longpath, DIR_SEP) ); // TODO: fix the ugly casting away of const
- *dir_sep = '\0';
- pw_entry = getpwnam(&longpath[1]);
- if (pw_entry != NULL)
- {
- strcpy(longpath, pw_entry->pw_dir);
-- dir_sep = strchr(path, DIR_SEP);
-+ dir_sep = const_cast<char*> ( strchr(path, DIR_SEP) ); // TODO: fix the ugly casting away of const
- strcat(longpath, dir_sep);
- path = longpath;
- }
-diff -ur Singular-3-0-4.old/kernel/mpr_complex.cc Singular-3-0-4/kernel/mpr_complex.cc
---- Singular-3-0-4.old/kernel/mpr_complex.cc 2009-07-07 01:34:11.290760532 +0300
-+++ Singular-3-0-4/kernel/mpr_complex.cc 2009-07-07 01:55:24.209129950 +0300
-@@ -82,7 +82,7 @@
- BOOLEAN neg=false;
- if (*in == '-') { in++; neg=TRUE; }
- char *s;
-- if ((s=strchr(in,'E')) !=NULL)
-+ if ((s = const_cast<char*> ( strchr(in,'E') )) !=NULL) /* TODO: fix the ugly casting away of const */
- {
- *s='e';
- }
diff --git a/sci-mathematics/singular/singular-3.0.4.4.ebuild b/sci-mathematics/singular/singular-3.0.4.4.ebuild
deleted file mode 100644
index 9f34c01d6b08..000000000000
--- a/sci-mathematics/singular/singular-3.0.4.4.ebuild
+++ /dev/null
@@ -1,161 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.0.4.4.ebuild,v 1.5 2009/11/24 03:47:20 markusle Exp $
-
-inherit eutils elisp-common flag-o-matic autotools multilib versionator
-
-PV_MAJOR=${PV%.*}
-MY_PV=${PV//./-}
-MY_PN=${PN/s/S}
-MY_PV_MAJOR=${MY_PV%-*}
-
-DESCRIPTION="Computer algebra system for polynomial computations"
-HOMEPAGE="http://www.singular.uni-kl.de/"
-SRC_URI="http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/3-0-4/${MY_PN}-${MY_PV}.tar.gz
- http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/UNIX/${MY_PN}-3-0-4-2-share.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="doc emacs boost"
-
-RDEPEND=">=dev-libs/gmp-4.1-r1
- emacs? ( >=virtual/emacs-22 )"
-
-DEPEND="${RDEPEND}
- >=dev-lang/perl-5.6
- boost? ( dev-libs/boost )"
-
-S="${WORKDIR}"/${MY_PN}-${MY_PV_MAJOR}
-SITEFILE=60${PN}-gentoo.el
-
-pkg_setup() {
- if use emacs; then
- # we need at least emacs-22 in order for our emacs patches
- # to work
- need_emacs=22
- have_emacs=$(elisp-emacs-version)
- if ! version_is_at_least "${need_emacs}" "${have_emacs}"; then
- eerror "This package needs at least emacs version ${need_emacs}."
- eerror "Use \"eselect emacs\" to select the active version."
- die "Emacs version is too low."
- fi
- fi
-}
-
-src_unpack () {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0.4.2-gentoo.diff
- epatch "${FILESDIR}"/${P}-nostrip.patch
- epatch "${FILESDIR}"/${P}-emacs-22.patch
- epatch "${FILESDIR}"/${P}-glibc-2.10.patch
-
- # for some unknown reason this ldflag causes the
- # build system to choke
- # NOTE: Look at the source and figure out why
- filter-ldflags "*hash-style*"
-
- cd "${S}"/kernel
- sed -e "s/PFSUBST/${PF}/" -i feResource.cc || \
- die "sed failed on feResource.cc"
-
- cd "${S}"/Singular
- if ! use boost; then
- sed -e "s/AC_CHECK_HEADERS(boost/#AC_CHECK_HEADERS(boost/" \
- -i configure.in || \
- die "failed to fix detection of boost headers"
- else
- # -no-exceptions and boost don't play well
- sed -e "/CXXFLAGS/ s/--no-exceptions//g" \
- -i configure.in || \
- die "sed failed on configure"
- fi
- eautoconf
-}
-
-src_compile() {
- local myconf="${myconf} --disable-doc --without-MP --with-factory --with-libfac --disable-gmp --prefix=${S}"
- econf $(use_enable emacs) \
- ${myconf} || die "econf failed"
- emake -j1 || die "make failed"
-
- if use emacs; then
- cd "${WORKDIR}"/${MY_PN}/${MY_PV_MAJOR}/emacs/
- elisp-compile *.el || die "elisp-compile failed"
- fi
-}
-
-src_install () {
- # install basic docs
- cd "${S}" && dodoc BUGS ChangeLog || \
- die "failed to install docs"
-
- # install data files
- insinto /usr/share/${PN}/LIB
- cd "${S}"/${MY_PN}/LIB && doins *.lib COPYING help.cnf || \
- die "failed to install lib files"
- insinto /usr/share/${PN}/LIB/gftables
- cd gftables && doins * \
- || die "failed to install files int LIB/gftables"
-
- cd "${S}"/*-Linux
-
- # install binaries
- rm ${MY_PN} || die "failed to remove ${MY_PN}"
- dobin ${MY_PN}* gen_test change_cost solve_IP \
- toric_ideal LLL || die "failed to install binaries"
-
- # install libraries
- insinto /usr/$(get_libdir)/${PN}
- doins *.so || die "failed to install libraries"
-
- # create symbolic link
- dosym /usr/bin/${MY_PN}-${MY_PV_MAJOR} /usr/bin/${MY_PN} || \
- die "failed to create symbolic link"
-
- # install examples
- cd "${WORKDIR}"/${MY_PN}/${MY_PV_MAJOR}
- insinto /usr/share/${PN}/examples
- doins examples/* || die "failed to install examples"
-
- # install extended docs
- if use doc; then
- dohtml -r html/* || die "failed to install html docs"
-
- insinto /usr/share/${PN}
- doins doc/singular.idx || die "failed to install idx file"
-
- cp info/${PN}.hlp info/${PN}.info &&
- doinfo info/${PN}.info || \
- die "failed to install info files"
- fi
-
- # install emacs specific stuff here, as we did a directory change
- # some lines above!
- if use emacs; then
- elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-}
-
-pkg_postinst() {
- einfo "The authors ask you to register as a SINGULAR user."
- einfo "Please check the license file for details."
-
- if use emacs; then
- echo
- ewarn "Please note that the ESingular emacs wrapper has been"
- ewarn "removed in favor of full fledged singular support within"
- ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
- ewarn "and you should be good to go! See bug #193411 for more info."
- echo
- fi
-
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/sci-mathematics/singular/singular-3.1.1.ebuild b/sci-mathematics/singular/singular-3.1.1.ebuild
new file mode 100644
index 000000000000..49de6ffab108
--- /dev/null
+++ b/sci-mathematics/singular/singular-3.1.1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.1.ebuild,v 1.1 2010/04/28 04:53:21 bicatali Exp $
+
+EAPI="2"
+
+inherit eutils elisp-common autotools multilib versionator
+
+MY_PN=Singular
+MY_PV=$(replace_all_version_separators -)
+MY_PV_SHARE=${MY_PV}
+
+DESCRIPTION="Computer algebra system for polynomial computations"
+HOMEPAGE="http://www.singular.uni-kl.de/"
+SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/${MY_PV}/${MY_PN}"
+SRC_URI="${SRC_COM}-${MY_PV}.tar.gz ${SRC_COM}-${MY_PV_SHARE}-share.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="boost doc emacs examples"
+
+RDEPEND="dev-libs/gmp
+ >=dev-libs/ntl-5.5.1
+ emacs? ( >=virtual/emacs-22 )"
+
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ boost? ( dev-libs/boost )"
+
+S="${WORKDIR}"/${MY_PN}-${MY_PV}
+SITEFILE=60${PN}-gentoo.el
+
+src_prepare () {
+ epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch
+ epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch
+ epatch "${FILESDIR}"/${PN}-3.1.0-glibc-2.10.patch
+ epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch
+
+ sed -i \
+ -e "s/PFSUBST/${PF}/" \
+ kernel/feResource.cc || die "sed failed on feResource.cc"
+
+ sed -i \
+ -e '/CXXFLAGS/ s/--no-exceptions//g' \
+ "${S}"/Singular/configure.in || die
+
+ cd "${S}"/Singular || die "failed to cd into Singular/"
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ --prefix="${S}" \
+ --disable-debug \
+ --disable-doc \
+ --disable-NTL \
+ --disable-gmp \
+ --without-MP \
+ --enable-factory \
+ --enable-libfac \
+ --enable-IntegerProgramming \
+ --enable-Singular \
+ $(use_with boost Boost) \
+ $(use_enable emacs)
+}
+
+src_compile() {
+ emake install -j1 -C omalloc || die "emake omalloc failed"
+ emake install -j1 -C factory || die "emake factory failed"
+ emake install -C libfac || die "emake libfac failed"
+ emake install -C kernel || die "emake libfac failed"
+ emake -j1 || die "emake failed"
+ if use emacs; then
+ cd "${WORKDIR}"/${MY_PN}/${MY_PV}/emacs/
+ elisp-compile *.el || die "elisp-compile failed"
+ fi
+}
+
+src_install () {
+ dodoc README
+ # execs and libraries
+ cd "${S}"/*-Linux
+ dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
+ || die "failed to install binaries"
+ insinto /usr/$(get_libdir)/${PN}
+ doins *.so || die "failed to install libraries"
+
+ dosym ${MY_PN}-${MY_PV} /usr/bin/${MY_PN} \
+ || die "failed to create symbolic link"
+
+ # stuff from the share tar ball
+ cd "${WORKDIR}"/${MY_PN}/${MY_PV}
+ insinto /usr/share/${PN}
+ doins -r LIB || die "failed to install lib files"
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples || die "failed to install examples"
+ fi
+ if use doc; then
+ dohtml -r html/* || die "failed to install html docs"
+ insinto /usr/share/${PN}
+ doins doc/singular.idx || die "failed to install idx file"
+ cp info/${PN}.hlp info/${PN}.info &&
+ doinfo info/${PN}.info \
+ || die "failed to install info files"
+ fi
+ if use emacs; then
+ elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \
+ || die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+pkg_postinst() {
+ einfo "The authors ask you to register as a SINGULAR user."
+ einfo "Please check the license file for details."
+
+ if use emacs; then
+ echo
+ ewarn "Please note that the ESingular emacs wrapper has been"
+ ewarn "removed in favor of full fledged singular support within"
+ ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
+ ewarn "and you should be good to go! See bug #193411 for more info."
+ echo
+ fi
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}