ports/103297: Unbreak & update port math/p5-Math-Pari
skv at FreeBSD.org
skv at FreeBSD.org
Fri Sep 15 10:00:40 UTC 2006
>Number: 103297
>Category: ports
>Synopsis: Unbreak & update port math/p5-Math-Pari
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 15 10:00:34 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Sergey Skvortsov
>Release: FreeBSD 6.1-STABLE i386
>Organization:
<Organization of PR author (multiple lines)>
>Environment:
<Relevant environment information (multiple lines)>
>Description:
Update port math/p5-Math-Pari to 2.010706
p.s. If you have no plans to maintaint this port
(it was last updated 2003/08/21) then feel free to pass maintainership
to me or to perl@
>How-To-Repeat:
<Code/input/activities to reproduce the problem (multiple lines)>
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-Pari/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile 2 Sep 2006 16:51:04 -0000 1.8
+++ Makefile 15 Sep 2006 09:50:20 -0000
@@ -6,7 +6,7 @@
#
PORTNAME= Math-Pari
-PORTVERSION= 2.010500
+PORTVERSION= 2.010706
CATEGORIES= math perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Math
@@ -15,28 +15,21 @@
MAINTAINER= mharo at FreeBSD.org
COMMENT= PARI - numerical/scientific/number-theoretic calculations
-BROKEN= fails to install
-DEPRECATED= ${BROKEN}
-EXPIRATION_DATE=2006-12-01
-
BUILD_DEPENDS= pari:${PORTSDIR}/math/pari:configure
+LIB_DEPENDS= pari:${PORTSDIR}/math/pari
-USE_GMAKE= yes
USE_GCC= 3.2+
PERL_CONFIGURE= yes
-MAN3= Math::Pari.3 Math::libPARI.3 \
- Math::PariInit.3 Math::libPARI.dumb.3
-
-.include <bsd.port.pre.mk>
+CONFIGURE_ARGS= parilib="-L${LOCALBASE}/lib -lpari" \
+ paridir=`${MAKE} -C ${PORTSDIR}/math/pari -V WRKSRC`
-PARI_PORT?= math/pari
-PARI_PORTDIR?= ${PORTSDIR}/${PARI_PORT}
-PARI_WRKSRC!= cd ${PARI_PORTDIR} && ${MAKE} -V WRKSRC
+MAN3= Math::Pari.3 Math::libPARI.3 Math::PariInit.3
-CONFIGURE_ARGS= paridir=${PARI_WRKSRC}
+post-patch:
+ ${REINPLACE_CMD} -e 's/2001004/200300/' ${WRKSRC}/Makefile.PL
post-clean:
- @cd ${PARI_PORTDIR} && ${MAKE} -DBATCH clean
+ ${MAKE} -C ${PORTSDIR}/math/pari -DBATCH clean
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-Pari/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo 22 Jan 2006 12:56:37 -0000 1.5
+++ distinfo 15 Sep 2006 08:11:48 -0000
@@ -1,3 +1,3 @@
-MD5 (Math-Pari-2.010500.tar.gz) = 6ae5d0b044984a4fdc7817e79922419e
-SHA256 (Math-Pari-2.010500.tar.gz) = eea5b9918b4861274d48457b360310737755415f3200e080511ff19a57598676
-SIZE (Math-Pari-2.010500.tar.gz) = 91295
+MD5 (Math-Pari-2.010706.tar.gz) = 5ed1fb49f246288a9899fa6ad1b7753c
+SHA256 (Math-Pari-2.010706.tar.gz) = ba546277afcbb072a11e7dbe74f44bd233d86ee310ef43fa945ac20dfc79ea02
+SIZE (Math-Pari-2.010706.tar.gz) = 111692
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-Pari/pkg-plist,v
retrieving revision 1.3
diff -u -r1.3 pkg-plist
--- pkg-plist 22 Jan 2006 02:26:19 -0000 1.3
+++ pkg-plist 15 Sep 2006 09:47:31 -0000
@@ -1,6 +1,5 @@
%%SITE_PERL%%/%%PERL_ARCH%%/Math/Pari.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Math/PariInit.pm
-%%SITE_PERL%%/%%PERL_ARCH%%/Math/libPARI.dumb.pod
%%SITE_PERL%%/%%PERL_ARCH%%/Math/libPARI.pod
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Pari/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Pari/Pari.bs
Index: files/patch-Makefile.PL
===================================================================
RCS file: files/patch-Makefile.PL
diff -N files/patch-Makefile.PL
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-Makefile.PL 15 Sep 2006 09:48:13 -0000
@@ -0,0 +1,31 @@
+--- Makefile.PL.orig Wed May 31 12:39:28 2006
++++ Makefile.PL Fri Sep 15 13:45:27 2006
+@@ -44,7 +44,7 @@
+ EOP
+
+ if ($common::parilib) {
+- $pari_version = '2001004'; # XXXX How to get a correct one?
++ $pari_version = '2003000'; # XXXX How to get a correct one?
+ $define = '-DNO_HIGHLEVEL_PARI';
+ print <<EOP;
+ Trying to use existing PARI library (at $common::parilib)
+@@ -91,9 +91,9 @@
+ }
+
+ my %opts;
++ make_pod 'libPARI.pod', '-to_pod', $paridir; # Now the docs
+ unless ($common::parilib) {
+ build_tests $paridir; # Convert the test suite
+- make_pod 'libPARI.pod', '-to_pod', $paridir; # Now the docs
+ make_pod 'libPARI.dumb.pod', '-to_dumb_pod', $paridir;
+ %opts = build_paricfg($paridir, $common::do_configure); # ... and paricfg.h
+
+@@ -139,7 +139,7 @@
+ # the contents of the Makefile being created.
+ &WriteMakefile(
+ LIBS => $libs,
+- INC => $extra_inc . ' -I$(PARI_DIR)/src/headers -I$(PARI_DIR)/src -I./libPARI',
++ INC => '-I$(PREFIX)/include/pari -I$(PARI_DIR)/src',
+ NAME => 'Math::Pari',
+ ($common::parilib ? () :
+ (MYEXTLIB => 'libPARI/libPARI$(LIB_EXT)')),
Index: files/patch-makefile
===================================================================
RCS file: files/patch-makefile
diff -N files/patch-makefile
--- files/patch-makefile 26 Aug 2003 05:30:07 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
---- libPARI/Makefile.PL.orig Thu Apr 24 05:23:32 2003
-+++ libPARI/Makefile.PL Thu Aug 21 14:51:06 2003
-@@ -137,11 +137,13 @@
- $mycflags .= " -DASMINLINE";
- }
--$mycflags .= ' -DGCC_INLINE' if $Config{gccversion};
-+$mycflags .= ' -O -DGCC_INLINE' if $Config{gccversion};
-+$mycflags .= " $ENV{CFLAGS} " if $ENV{CFLAGS};
-
- @obj_files = map { "$_\$(OBJ_EXT)" } keys(%cfiles), qw(kernel mp mpinl);
- push @obj_files, 'kernel2$(OBJ_EXT)' if $kernel{converted2};
-
- $mycflags .= " -DDYNAMIC_PLOTTING";
-+$mycflags .= " -DDL_DFLT_NAME=\\\"libpari.2.1.3\\\"";
- # OMF build needs no underscores:
- $mycflags .= " -D__NO_AOUT" if $^O eq 'os2' and !$OS2::is_aout;
-
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list