commit:     105fbe2986be291f5d595d452944461db59f81b9
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  7 23:48:52 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Dec  7 23:48:52 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=105fbe29

sci-mathematics/singular: Remove old

* Required for pruning py2.7 from the tree

Closes: https://github.com/gentoo/gentoo/pull/13912
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-mathematics/singular/Manifest                  |   2 -
 .../singular/files/singular-3.0.4.4-nostrip.patch  |  12 --
 .../singular/files/singular-3.1.0-emacs-22.patch   |  13 --
 .../singular/files/singular-3.1.0-gentoo.patch     |  81 ----------
 .../singular/files/singular-3.1.3.2-python.patch   |  45 ------
 .../singular/files/singular-3.1.3.3-Minor.h.patch  |  10 --
 .../files/singular-3.1.3.3-install_name.patch      |  23 ---
 ...ular-3.1.6-factory_template_instantiation.patch |  26 ---
 .../singular/files/singular-3.1.6-ntl6compat.patch |  44 -----
 sci-mathematics/singular/singular-3.1.6.ebuild     | 177 ---------------------
 10 files changed, 433 deletions(-)

diff --git a/sci-mathematics/singular/Manifest 
b/sci-mathematics/singular/Manifest
index bdfa86f474e..5cb78241d61 100644
--- a/sci-mathematics/singular/Manifest
+++ b/sci-mathematics/singular/Manifest
@@ -1,5 +1,3 @@
-DIST Singular-3-1-6-share.tar.gz 10620177 BLAKE2B 
407f7936617d71e10779ae20548091a84be309a25c32e76b3a8277483ab288a8c6d47b7a8ba6c56dc6bba4f0b4395db3b997adbde5890189317fe1faaa7362ce
 SHA512 
54bff29c5d64609583ec8b1c43005a1ff453c8f2cedfe9a26ac840888e9d306e3104e14aea5a3cc923fac916215c4285ecfe5ae7e1242aee0308b5e4c6e2d48d
-DIST Singular-3-1-6.tar.gz 25535111 BLAKE2B 
915f25c00be5fc04056bba12b5f62b09d41d7367a8fecc732b7cbbf68a0536b998bf0d2b69cf4c6f4d0f8eed60132c225dced762b3f2b17ea326bfe4fb6d17ff
 SHA512 
103a10dd474d93cceb678bcef1a4aae5ec693cb9e68c9d63a7536929b738a0127501ee145a79cc3b9ddfa4bd1ca0f05e640eeb3b0fbdb60de4f56aa5beacc213
 DIST singular-4.0.2-share.tar.gz 8789162 BLAKE2B 
357a68f68cc0508e4e197427c56232da60412a8380045ac594cbe313bf6a403068d1724f637d47de44e66baf34c74fa5c4ee622721c5bbd67764e65e66c8583a
 SHA512 
068827df04a5d1b4407dbaab1296d0120071dc109b749037b02263d51906852a5c2c1ef321733953a181c2d3d0fe799c197ef0af3b9341810ecf31a5324e0a25
 DIST singular-4.0.2.tar.gz 8635172 BLAKE2B 
5f565bf14677d8414300d7a5602aa96c8cef7e863fd858083fe4561742b545d74a5fc4de95ef0c63acf4f78c66405bac7ba77a954e42b2e87a6da608e4732bcd
 SHA512 
4543a45839ce8adc45e3b2edd84a6e398b7ba157da1eda050dbce2a8b20333eb0c63433e3e7eaf59d76bf6bcb65c1b1611bfc08c25fd493c88e2f06624898e3d
 DIST singular-4.0.3-share.tar.gz 6633256 BLAKE2B 
c137b72aaa0926eb006624e03fe938678acb94a41da525de1ca4f7711985d253926788b550d2d98b8def15fb0cb60b2527c1c04566a29a28135fcb1a70246025
 SHA512 
5f8ae4ecd22a3470e5f00393e03079936d7ed334f44ae056ed1eb1719054afc4371b03e920b598033605600c843dc39cb6b01308505323e2c084dfe1f7a1b94a

diff --git a/sci-mathematics/singular/files/singular-3.0.4.4-nostrip.patch 
b/sci-mathematics/singular/files/singular-3.0.4.4-nostrip.patch
deleted file mode 100644
index 5884b6cd2d6..00000000000
--- a/sci-mathematics/singular/files/singular-3.0.4.4-nostrip.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur Singular-3-0-4/IntegerProgramming/Makefile.in 
Singular-3-0-4.new/IntegerProgramming/Makefile.in
---- Singular-3-0-4/IntegerProgramming/Makefile.in      2008-07-09 
07:55:13.000000000 -0400
-+++ Singular-3-0-4.new/IntegerProgramming/Makefile.in  2008-10-19 
22:40:41.000000000 -0400
-@@ -21,7 +21,7 @@
- endif
- 
- INSTALL               = @INSTALL@
--INSTALL_PROGRAM       = @INSTALL_PROGRAM@  -s
-+INSTALL_PROGRAM       = @INSTALL_PROGRAM@ 
- MKINSTALLDIRS   = ../mkinstalldirs
- 
- ##

diff --git a/sci-mathematics/singular/files/singular-3.1.0-emacs-22.patch 
b/sci-mathematics/singular/files/singular-3.1.0-emacs-22.patch
deleted file mode 100644
index 3f4f3c76203..00000000000
--- a/sci-mathematics/singular/files/singular-3.1.0-emacs-22.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -Naur Singular-3-1-0/emacs/singular.el 
Singular-3-1-0.new/emacs/singular.el
---- Singular-3-1-0/emacs/singular.el   2008-11-03 09:16:38.000000000 -0500
-+++ Singular-3-1-0.new/emacs/singular.el       2009-08-20 22:16:57.000000000 
-0400
-@@ -865,7 +865,8 @@
-   (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))
-   ;; required to use prompt-regexp
-   (setq comint-use-prompt-regexp t)
- ;;}}}

diff --git a/sci-mathematics/singular/files/singular-3.1.0-gentoo.patch 
b/sci-mathematics/singular/files/singular-3.1.0-gentoo.patch
deleted file mode 100644
index ebb40228938..00000000000
--- a/sci-mathematics/singular/files/singular-3.1.0-gentoo.patch
+++ /dev/null
@@ -1,81 +0,0 @@
---- kernel/feResource.cc.orig  2010-04-30 10:20:14.000000000 +0000
-+++ kernel/feResource.cc       2010-10-11 09:19:01.431179334 +0000
-@@ -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 "@GENTOO_PORTAGE_EPREFIX@/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",(char *)""},
--  {"BinDir",    'b',    feResDir,   "SINGULAR_BIN_DIR",     "%d/"S_UNAME,     
      (char *)""},
--  {"RootDir",   'r',    feResDir,   "SINGULAR_ROOT_DIR",    "%b/..",          
      (char *)""},
-+  {"Singular",  'S',    feResBinary,"SINGULAR_EXECUTABLE",  
"%d/bin/Singular",(char *)""},
-+  {"BinDir",    'b',    feResDir,   "SINGULAR_BIN_DIR",     "%d/bin",         
  (char *)""},
-+  {"RootDir",   'r',    feResDir,   "SINGULAR_ROOT_DIR",    "%d",             
   (char *)""},
-   {"DefaultDir",'d',    feResDir,   "SINGULAR_DEFAULT_DIR",  
SINGULAR_DEFAULT_DIR,  (char *)""},
--  {"InfoFile",  'i',    feResFile,  "SINGULAR_INFO_FILE",   
"%r/info/singular.hlp", (char *)""},
--  {"IdxFile",   'x',    feResFile,  "SINGULAR_IDX_FILE",    
"%r/doc/singular.idx",  (char *)""},
--  {"HtmlDir",   'h',    feResDir,   "SINGULAR_HTML_DIR",    "%r/html",        
      (char *)""},
-+  {"InfoFile",  'i',    feResFile,  "SINGULAR_INFO_FILE",   
"%r/share/info/singular.info.bz2", (char *)""},
-+  {"IdxFile",   'x',    feResFile,  "SINGULAR_IDX_FILE",    
"%r/share/singular/singular.idx",  (char *)""},
-+  {"HtmlDir",   'h',    feResDir,   "SINGULAR_HTML_DIR",    
"%r/share/doc/PFSUBST/html",              (char *)""},
- #ifdef ix86_Win
-   {"HtmlHelpFile",'C',  feResFile,  "SINGULAR_CHM_FILE",    
"%r/doc/Manual.chm",    (char *)""},
- #endif
-   {"ManualUrl", 'u',    feResUrl,   "SINGULAR_URL",         
"http://www.singular.uni-kl.de/Manual/"S_VERSION1,    (char *)""},
--  {"ExDir",     'm',    feResDir,   "SINGULAR_EXAMPLES_DIR","%r/examples",    
      (char *)""},
-+  {"ExDir",     'm',    feResDir,   
"SINGULAR_EXAMPLES_DIR","%r/share/doc/PFSUBST/examples",          (char *)""},
-   {"Path",      'p',    feResPath,  NULL,                   "%b;$PATH",       
      (char *)""},
- 
- #ifdef ESINGULAR
-   {"emacs",     'E',    feResBinary,"ESINGULAR_EMACS",      "%b/emacs",       
      (char *)""},
-   {"xemacs",    'A',    feResBinary,"ESINGULAR_EMACS",      "%b/xemacs",      
      (char *)""},
-   {"SingularEmacs",'M', feResBinary,"ESINGULAR_SINGULAR",   "%b/Singular",    
      (char *)""},
--  {"EmacsLoad", 'l',    feResFile,  "ESINGULAR_EMACS_LOAD", 
"%e/.emacs-singular",   (char *)""},
--  {"EmacsDir",  'e',    feResDir,   "ESINGULAR_EMACS_DIR",  "%r/emacs",       
      (char *)""},
-+  {"EmacsLoad", 'l',    feResFile,  "ESINGULAR_EMACS_LOAD", 
"%r/share/emacs/site-lisp/singular/.emacs-singular",   (char *)""},
-+  {"EmacsDir",  'e',    feResDir,   "ESINGULAR_EMACS_DIR",  
"%r/share/emacs/site-lisp/singular",             (char *)""},
- #elif defined(TSINGULAR)
-   {"SingularXterm",'M', feResBinary,"TSINGULAR_SINGULAR",   "%b/Singular",    
      (char *)""},
- #ifdef ix86_Win
-@@ -108,7 +106,7 @@
-   {"xterm",     'X',    feResBinary,"XTERM",                "%b/xterm",       
      (char *)""},
- #endif
- #else
--  {"EmacsDir",  'e',    feResDir,   "SINGULAR_EMACS_DIR",   "%r/emacs",       
      (char *)""},
-+  {"EmacsDir",  'e',    feResDir,   "SINGULAR_EMACS_DIR",   
"%r/share/emacs/site-lisp/singular",             (char *)""},
- #endif
-   {NULL, 0, feResUndef, NULL, NULL, NULL}, // must be the last record
- };
---- kernel/mod_raw.cc.orig     2009-11-02 10:12:22.000000000 +0000
-+++ kernel/mod_raw.cc  2010-10-11 09:19:01.432179264 +0000
-@@ -109,11 +109,11 @@
- void* dynl_open_binary_warn(const 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.1.3.2-python.patch 
b/sci-mathematics/singular/files/singular-3.1.3.2-python.patch
deleted file mode 100644
index 2cc29c9a553..00000000000
--- a/sci-mathematics/singular/files/singular-3.1.3.2-python.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- Singular/pyobject.cc.orig  2011-01-31 15:03:16.000000000 +0100
-+++ Singular/pyobject.cc       2011-08-24 17:22:57.000000000 +0200
-@@ -14,7 +14,7 @@
- 
- 
- 
--
-+#include <Python.h>
- 
- #include <Singular/mod2.h>
- 
-@@ -27,7 +27,7 @@
- 
- #include <Singular/lists.h>
- 
--#include <Python.h>
-+
- #include <iterator>             // std::distance
- #include <stdio.h>
- 
-@@ -592,11 +592,12 @@
-   long len = newElts.size();
-   for (long idx = 0; idx < len; ++idx)
-   {
--    char* name = newElts[idx][0].str();
-+    PythonObject current (newElts[idx]);
-+    char* name = current.operator[](0).str();
-     if (name && (*name != '\0') && (*name != '_'))
-     {
-       Py_XDECREF(get_current_definition(name));
--      newElts[idx][1].import_as(name);
-+      newElts[idx].operator[](1).import_as(name);
-     }
- 
-   }
---- Singular/pyobject_setup.cc.orig    2011-02-10 19:15:30.000000000 +0100
-+++ Singular/pyobject_setup.cc         2011-08-24 17:23:55.000000000 +0200
-@@ -12,6 +12,7 @@
- **/
- 
//*****************************************************************************
- 
-+#include <Python.h>
- #include <Singular/mod2.h>
- #include <kernel/febase.h>
- #include "static.h"

diff --git a/sci-mathematics/singular/files/singular-3.1.3.3-Minor.h.patch 
b/sci-mathematics/singular/files/singular-3.1.3.3-Minor.h.patch
deleted file mode 100644
index 1d03e61ae30..00000000000
--- a/sci-mathematics/singular/files/singular-3.1.3.3-Minor.h.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/Singular/Minor.h       2010-02-02 08:22:24.000000000 -0500
-+++ patches/Minor.h    2011-06-28 13:26:01.000000000 -0400
-@@ -2,6 +2,7 @@
- #define MINOR_H
- 
- #include <assert.h>
-+#include <time.h>
- #include <iostream>
- #include <string>
- 

diff --git a/sci-mathematics/singular/files/singular-3.1.3.3-install_name.patch 
b/sci-mathematics/singular/files/singular-3.1.3.3-install_name.patch
deleted file mode 100644
index 6a7826c390f..00000000000
--- a/sci-mathematics/singular/files/singular-3.1.3.3-install_name.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- kernel/Makefile.in.orig    2011-10-13 23:36:54.000000000 +0200
-+++ kernel/Makefile.in 2011-10-13 23:37:46.000000000 +0200
-@@ -267,7 +267,7 @@
-       -rm -f p_Procs_Dynamic p_Procs_Dynamic.exe
- 
- p_Procs_%.so: p_Procs_Lib_%.dl_o
--      $(LD) ${SLDFLAGS} -o $@ $^
-+      $(LD) ${SLDFLAGS} -install_name 
@GENTOO_PORTAGE_EPREFIX@/usr/lib/singular/$@ -o $@ $^
- 
- ##
- ## install targets
-
---- Singular/Makefile.in.orig  2011-10-14 23:59:07.000000000 +0200
-+++ Singular/Makefile.in       2011-10-14 23:58:34.000000000 +0200
-@@ -492,7 +492,7 @@
-       $(LD) ${SLDFLAGS} -o $@ $^ -L${libdir} ${MP_LIBS} ${GLIBC_DYN_FIX}
- 
- dbmsr.so: $(DBMSR_SOURCES:.cc=.dl_o)
--      $(LD) ${SLDFLAGS} -o $@ $^ ${GLIBC_DYN_FIX}
-+      $(LD) ${SLDFLAGS} -install_name 
@GENTOO_PORTAGE_EPREFIX@/usr/lib/singular/$@ -o $@ $^ ${GLIBC_DYN_FIX}
- 
- # dynamic module for python bject support
- pyobject.${MODULE_SUFFIX}: pyobject.dl_o

diff --git 
a/sci-mathematics/singular/files/singular-3.1.6-factory_template_instantiation.patch
 
b/sci-mathematics/singular/files/singular-3.1.6-factory_template_instantiation.patch
deleted file mode 100644
index edf764a758e..00000000000
--- 
a/sci-mathematics/singular/files/singular-3.1.6-factory_template_instantiation.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff --git a/libfac/factor/tmpl_inst.cc b/libfac/factor/tmpl_inst.cc
-index bda287a..2f5ba49 100644
-Index: libfac/factor/tmpl_inst.cc
-===================================================================
---- a/libfac/factor/tmpl_inst.cc
-+++ b/libfac/factor/tmpl_inst.cc
-@@ -3,7 +3,7 @@
- ////////////////////////////////////////////////////////////
- 
- 
--//#include <templates/ftmpl_array.cc>
-+#include <factory/templates/ftmpl_array.cc>
- //#include <templates/ftmpl_factor.cc>
- #include <templates/ftmpl_list.h>
- #include <factory/templates/ftmpl_list.cc>
-@@ -75,8 +75,8 @@ template OSTREAM & operator << ( OSTREAM &, const 
List<Variable> & );
- template OSTREAM & operator << ( OSTREAM &, const Array<int> & );
- #endif
- 
--template class Array<int>;
--template class Array<Variable>;
-+//template class Array<int>;
-+//template class Array<Variable>;
- //template class Array<REvaluation>;
- 
- // for database

diff --git a/sci-mathematics/singular/files/singular-3.1.6-ntl6compat.patch 
b/sci-mathematics/singular/files/singular-3.1.6-ntl6compat.patch
deleted file mode 100644
index b0330ccdfc8..00000000000
--- a/sci-mathematics/singular/files/singular-3.1.6-ntl6compat.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff --git a/Singular/claptmpl.cc b/Singular/claptmpl.cc
-index 0fa6109..553afa5 100644
-Index: Singular/claptmpl.cc
-===================================================================
---- a/Singular/claptmpl.cc
-+++ b/Singular/claptmpl.cc
-@@ -123,3 +123,37 @@ template class std::list<PolyMinorValue>;
- template class Cache<MinorKey, IntMinorValue>;
- template class Cache<MinorKey, PolyMinorValue>;
- 
-+#ifdef HAVE_NTL
-+#include<NTL/version.h>
-+#if NTL_MAJOR_VERSION == 6
-+
-+#include<NTL/tools.h>
-+#include<NTL/lzz_pE.h>
-+#include<NTL/lzz_pEX.h>
-+#include<NTL/lzz_p.h>
-+#include<NTL/vector.h>
-+#include<NTL/pair.h>
-+#include<NTL/GF2X.h>
-+#include<NTL/GF2EX.h>
-+#include<NTL/ZZ.h>
-+#include<NTL/ZZX.h>
-+#include<NTL/ZZ_pX.h>
-+#ifdef NTL_CLIENT               // in <NTL/tools.h>: using of name space NTL
-+NTL_CLIENT
-+#endif
-+template class Vec<zz_p>;
-+template class Vec<zz_pE>;
-+template class Mat<zz_p>;
-+template class Mat<zz_pE>;
-+template class Mat<ZZ>;
-+template class Vec<Pair<zz_pEX, long> >;
-+template class Vec<Pair<GF2EX, long> >;
-+template class Vec<Pair<ZZX, long> >;
-+template class Vec<Pair<ZZ_pX, long> >;
-+template class Vec<Pair<GF2X, long> >;
-+template void swap<zz_pE>(Vec<zz_pE>&, Vec<zz_pE>&);
-+template long operator==<zz_p>(Vec<zz_p> const&, Vec<zz_p> const&);
-+template Vec<Pair<zz_pX, long> >& Vec<Pair<zz_pX, long> >::operator=(const 
Vec<Pair<zz_pX, long> >&);
-+#endif
-+
-+#endif

diff --git a/sci-mathematics/singular/singular-3.1.6.ebuild 
b/sci-mathematics/singular/singular-3.1.6.ebuild
deleted file mode 100644
index 1aaa7290760..00000000000
--- a/sci-mathematics/singular/singular-3.1.6.ebuild
+++ /dev/null
@@ -1,177 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-
-inherit autotools eutils elisp-common flag-o-matic multilib prefix 
python-single-r1 versionator
-
-MY_PN=Singular
-MY_PV=$(replace_all_version_separators -)
-MY_DIR=$(get_version_component_range 1-3 ${MY_PV})
-# Note: Upstream's share tarball may not get updated on every release
-MY_SHARE_DIR="3-1-6"
-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/";
-SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz
-                ${SRC_COM}${MY_SHARE_DIR}/${MY_PN}-${MY_PV_SHARE}-share.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos"
-IUSE="boost doc emacs examples python readline test"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="
-       dev-libs/gmp:0=
-       dev-libs/ntl:0=
-       emacs? ( >=virtual/emacs-22 )
-       python? ( ${PYTHON_DEPS} )
-       readline? ( sys-libs/readline:0= )"
-DEPEND="${RDEPEND}
-       dev-lang/perl
-       boost? ( dev-libs/boost:0= )"
-
-# Upstream does not care about tests
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_PN}-${MY_DIR}"
-
-pkg_setup() {
-       append-flags -fPIC
-       append-ldflags -fPIC
-       tc-export CC CPP CXX
-       use emacs && elisp-need-emacs 22
-       use python && python-single-r1_pkg_setup
-}
-
-src_prepare () {
-       epatch \
-               "${FILESDIR}"/${PN}-3.1.0-gentoo.patch \
-               "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch \
-               "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch \
-               "${FILESDIR}"/${PN}-3.1.3.3-Minor.h.patch \
-               "${FILESDIR}"/${PN}-3.1.6-ntl6compat.patch \
-               "${FILESDIR}"/${PN}-3.1.6-factory_template_instantiation.patch
-       use python && epatch "${FILESDIR}"/${PN}-3.1.3.2-python.patch
-
-       if  [[ ${CHOST} == *-darwin* ]] ; then
-               epatch "${FILESDIR}"/${PN}-3.1.3.3-install_name.patch
-               eprefixify kernel/Makefile.in
-               eprefixify Singular/Makefile.in
-       fi
-
-       eprefixify kernel/feResource.cc
-
-       # The SLDFLAGS mangling prevents passing raw LDLAGS to gcc (see e.g. 
bug 414709)
-       sed -i \
-               -e "/CXXFLAGS/ s/--no-exceptions//g" \
-               -e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"\n\t  
\tSLDFLAGS2=\"${LDFLAGS} -shared\"/" \
-               -e "s/  SLDFLAGS=/  SLDFLAGS=\n  SLDFLAGS2=/" \
-               -e 
"s/AC_SUBST(SLDFLAGS)/AC_SUBST(SLDFLAGS)\nAC_SUBST(SLDFLAGS2)/" \
-               "${S}"/Singular/configure.in || die
-
-       sed -i \
-               -e "s/@SLDFLAGS@/@SLDFLAGS@\nSLDFLAGS2\t= @SLDFLAGS2@/" \
-               -e "/\$(CXX).*SLDFLAGS/s/SLDFLAGS/SLDFLAGS2/" \
-               "${S}"/Singular/Makefile.in || die
-
-       # remove ntl sources for safety.
-       rm -r ntl || die
-
-       cd "${S}"/Singular || die "failed to cd into Singular/"
-
-       eautoconf
-}
-
-src_configure() {
-       econf \
-               --prefix="${S}"/build \
-               --exec-prefix="${S}"/build \
-               --bindir="${S}"/build/bin \
-               --libdir="${S}"/build/lib \
-               --libexecdir="${S}"/build/lib \
-               --includedir="${S}"/build/include \
-               --with-apint=gmp \
-               --with-NTL \
-               --disable-doc \
-               --without-MP \
-               --without-flint \
-               --enable-factory \
-               --enable-libfac \
-               --enable-IntegerProgramming \
-               --enable-Singular \
-               --with-malloc=system \
-               $(use_with python python embed) \
-               $(use_with boost Boost) \
-               $(use_enable emacs) \
-               $(use_with readline)
-}
-
-src_compile() {
-       emake
-       if use emacs; then
-               cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}/emacs/
-               elisp-compile *.el
-       fi
-}
-
-src_test() {
-       # Tests fail to link -lsingular, upstream ticket #243
-       emake test
-}
-
-src_install () {
-       dodoc README
-       # execs and libraries
-       cd "${S}"/build/bin
-       dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL
-       insinto /usr/$(get_libdir)/${PN}
-       doins *.so
-
-       dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN}
-       dosym ${MY_PN}-${MY_DIR} /usr/bin/${PN}
-
-       # stuff from the share tar ball
-       cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}
-       insinto /usr/share/${PN}
-       doins -r LIB
-       if use examples; then
-               insinto /usr/share/doc/${PF}
-               doins -r examples
-       fi
-       if use doc; then
-               dohtml -r html/*
-               insinto /usr/share/${PN}
-               doins doc/singular.idx
-               cp info/${PN}.hlp info/${PN}.info &&
-               doinfo info/${PN}.info
-       fi
-       if use emacs; then
-               elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs*
-               elisp-site-file-install "${FILESDIR}"/60${PN}-gentoo.el
-       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
-}

Reply via email to