Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv12096

Added Files:
        pari-gp.info pari-gp.patch 
Log Message:
builds on 10.7


--- NEW FILE: pari-gp.info ---
Info2: <<
Package: pari-gp%type_pkg[-nox]%type_pkg[-64bit]
Type: -nox (. -nox -xemacs), -64bit (boolean)
Version: 2.3.5
Revision: 1
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = 
-64bit ) i386
Distribution: ( %type_raw[-64bit] = -64bit ) 10.5, ( %type_raw[-64bit] = -64bit 
) 10.6
PatchFile: %{ni}.patch
PatchFile-MD5: ee49103c3b23e2bf4dfd3a4eda77e3af
Depends: <<
 readline5%type_pkg[-64bit]-shlibs (>= 5.0-1004), 
 libncurses5%type_pkg[-64bit]-shlibs (>= 5.4-20041023-1006),
 gmp%type_pkg[-64bit]-shlibs,
 (%type_raw[-nox] != -xemacs) emacsen-common, 
 (%type_raw[-nox] != -nox) x11-shlibs,
 ( %type_raw[-64bit] = -64bit ) 64bit-cpu
<<
BuildDepends: <<
 fink (>= 0.24.12-1),
 tetex-base, 
 readline5%type_pkg[-64bit] (>= 5.0-1004), 
 libncurses5%type_pkg[-64bit] (>= 5.4-20041023-1006),
 gmp%type_pkg[-64bit],
 (%type_raw[-nox] = -xemacs) xemacs,
 (%type_raw[-nox] != -nox) x11, 
 (%type_raw[-nox] != -nox) x11-dev
<<
Conflicts: pari-gp, pari-gp-nox, pari-gp-xemacs, pari-gp-64bit, 
pari-gp-nox-64bit, pari-gp-xemacs-64bit
Replaces: pari-gp, pari-gp-nox, pari-gp-xemacs, pari-gp-64bit, 
pari-gp-nox-64bit, pari-gp-xemacs-64bit
Source: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%v.tar.gz
Source-MD5: 6077c6db56fdd32e39a06a9bf320e1f7
Source2: http://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz
Source2-MD5: 4b5203e36ddd9e1786cd761e78fdc4f0
Source2ExtractDir: pari-%v
Source3: http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz
Source3-MD5: f7798ba3587c3d51432f4abf5c69c885
Source3ExtractDir: pari-%v
PatchScript: <<
 sed 's|@FINK@|%p|g' < %{PatchFile} | patch -p1
<<
CompileScript: <<
#!/usr/bin/perl
if (open(GCC, '/usr/bin/gcc --version 2>/dev/null |')) {
        my $version = <GCC>;
        close(GCC);
        if( ! defined $version ) {
                die "Your gcc version is undefined.";
        }
        chomp($version);
        my ($build) = $version =~ /build (\d+)/i;
        if ($build < 5341) {
                die "\nSorry, this package requires XCode 2.3 or later to 
build.  Please upgrade\nyour XCode and try again.\n\n";
        }
} else {
        die "Couldn't run '/usr/bin/gcc --version'.\n";
}
if ("%type_raw[-64bit]" eq "." ) {
 if ( "%type_raw[-nox]" eq "-nox" ) {
  system("./Configure  --prefix=%p --libdir=%p/%lib --with-readline=%p 
--with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib --with-gmp=%p 
--with-gmp-lib=%p/%lib --graphic=none");
 } else {
  system("./Configure  --prefix=%p --libdir=%p/%lib --with-readline=%p 
--with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib --with-gmp=%p 
--with-gmp-lib=%p/%lib");
}
} else {
 if ( "%type_raw[-nox]" eq "-nox" ) {
  system("export CC='gcc -m64'; ./Configure  --prefix=%p --libdir=%p/%lib 
--with-readline=%p --with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib 
--with-gmp=%p --with-gmp-lib=%p/%lib --graphic=none");
 } else {
  system("export CC='gcc -m64'; ./Configure  --prefix=%p --libdir=%p/%lib 
--with-readline=%p --with-readline-lib=%p/%lib --with-ncurses-lib=%p/%lib 
--with-gmp=%p --with-gmp-lib=%p/%lib");
}
}

system( "make all; make bench");
<<
InstallScript: <<
#!/bin/bash -ev
 make install DESTDIR=%d
 mkdir -p %i/etc
 install -m644 misc/gprc.dft %i/etc/gprc
 install -m644 misc/gpalias %i/etc
if [ "%type_raw[-nox]" != "-xemacs" ]; then
 rm %i/share/emacs/site-lisp/pari/*.elc
 mkdir -p %i/lib/emacsen-common/packages/install
 mkdir -p %i/lib/emacsen-common/packages/remove
 install -m 755 emacsen-install %i/lib/emacsen-common/packages/install/%n
 install -m 755 emacsen-remove %i/lib/emacsen-common/packages/remove/%n
fi
<<
PostInstScript: <<
if [ "%type_raw[-nox]" != "-xemacs" ]; then
 %p/lib/emacsen-common/emacs-package-install %n
fi
<<
PreRmScript: <<
if [ "%type_raw[-nox]" != "-xemacs" ]; then
 %p/lib/emacsen-common/emacs-package-remove %n
fi
<<
DocFiles: AUTHORS Announce.2.1 CHANGES CHANGES-2.2 COMPAT COPYING MACHINES NEW 
README
ConfFiles: %p/etc/gprc %p/etc/gpalias
License: GPL
Description: Number theory (calculator and C-library)
DescPort: <<
 * Edited gp.c so that %p/etc/gprc is recognized in addition to /etc/gprc. 
 * No longer makes or installs the pdf doc files.
 * Thanks to Matt Sachs for patches for gcc 4.0 compatibility (no longer 
needed.)
 * Someday we might want to build shared libs, in which case the following 
line could be useful (but needs modification for 64bit):
   perl -pi -e 's|darwin\)  DLLD=;|darwin\)  DLLD=gcc;|' config/get_dlld
<<
DescPackaging: <<
 Depends on tetex during building, which is used to make the documentation.
 Depends on emacsen-common for proper handling of pari.el file, except for
 the -xemacs variant.

 We need to make sure that this is compiled with XCode 2.3 or later, and
 we could have used BuildDepends:  gcc4.0 (>= 4.0.1-5341), but this would
 have left users with no clue about the source of the problem and how to
 fix it if their XCode was not up to date.  Instead, we have cribbed some
 code from VirtPackage.pm.
<<
Homepage: http://pari.math.u-bordeaux.fr/
Maintainer:  Dave Morrison <[email protected]>
#end of Info2
<<

--- NEW FILE: pari-gp.patch ---
diff -c pari-2.1.1/src/gp/gp.c pari-2.1.1-patched/src/gp/gp.c
*** pari-2.1.1/src/gp/gp.c      Mon Apr  2 05:31:12 2001
--- pari-2.1.1-patched/src/gp/gp.c      Thu Aug 23 18:47:13 2001
***************
*** 1908,1913 ****
--- 1908,1914 ----
      f = gprc_chk(str); /* in $HOME */
      if (!f) f = gprc_chk(s); /* in . */
      if (!f) f = gprc_chk("/etc/gprc");
+     if (!f) f = gprc_chk("@FINK@/etc/gprc");
      if (!f) f = gprc_chk("C:/_gprc");
      free(str);
    }
diff -ruN pari-2.1.4/emacsen-install pari-2.1.4-patched/emacsen-install
--- pari-2.1.4/emacsen-install  Wed Dec 31 16:00:00 1969
+++ pari-2.1.4-patched/emacsen-install  Sun Aug  4 15:01:19 2002
@@ -0,0 +1,33 @@
+#!/bin/sh
+# @FINK@/lib/emacsen-common/packages/install/pari-gp
+set -e
+ 
+FLAVOR=$1
+echo install/pari-gp: Handling install of emacsen flavor ${FLAVOR}
+
+byte_compile_options="-batch -f batch-byte-compile"
+el_files="pari.el pari-*.el sli-tools.el"
+el_dir=@FINK@/share/emacs/site-lisp/pari
+elc_dir=@FINK@/share/${FLAVOR}/site-lisp/pari
+el_path_list="${el_dir}/pari.el ${el_dir}/pari-*.el ${el_dir}/sli-tools.el"
+elc_path_list="${elc_dir}/pari.el ${elc_dir}/pari-*.el ${elc_dir}/sli-tools.el"
+
+if [ ${FLAVOR} != emacs ]
+then
+  echo install/pari-gp: byte-compiling for ${FLAVOR}
+
+  # Create the directory
+  mkdir -p ${elc_dir}
+
+  # Copy the temp .el files
+  cp ${el_path_list} ${elc_dir}
+
+  # Byte compile them
+  ${FLAVOR} ${byte_compile_options} ${elc_path_list}
+
+  # remove the redundant .el files
+  # presumes that any .el files in the <flavor> dir are trash.
+  rm ${elc_dir}/*.el
+fi
+exit 0;
+
diff -ruN pari-2.1.4/emacsen-remove pari-2.1.4-patched/emacsen-remove
--- pari-2.1.4/emacsen-remove   Wed Dec 31 16:00:00 1969
+++ pari-2.1.4-patched/emacsen-remove   Sun Aug  4 15:01:30 2002
@@ -0,0 +1,13 @@
+#!/bin/sh
+# @FINK@/lib/emacsen-common/packages/remove/pari-gp
+set -e
+
+FLAVOR=$1
+echo remove/pari-gp: Handling removal of emacsen flavor ${FLAVOR}
+
+if [ ${FLAVOR} != emacs ]
+then
+  echo emacsen-common: purging byte-compiled files for ${FLAVOR}
+  rm -f @FINK@/share/${FLAVOR}/site-lisp/pari/*.elc
+fi
+exit 0;
diff -ruN pari-2.3.0/misc/gprc.dft pari-2.3.0-patched/misc/gprc.dft
--- pari-2.3.0/misc/gprc.dft    2005-09-03 10:26:31.000000000 -0700
+++ pari-2.3.0-patched/misc/gprc.dft    2006-06-30 05:57:30.000000000 -0700
@@ -5,8 +5,8 @@
  * Customize (by uncommenting and modifying the relevant lines) and put in
  * $HOME/.gprc (or $GPRC) or /etc/gprc. Syntax explained at the end. */
 
-\\ read "lib/gpalias"
-/* Read lib/gpalias BEFORE gp prompts you for commands.
+read "@FINK@/gpalias"
+/* Read @FINK@/gpalias BEFORE gp prompts you for commands.
  * The file contains some standard abbreviations (correct the path first !) */
 
 \\ compatible = 0


------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to