source: trunk/dports/perl/p5-math-pari/Portfile

Last change on this file was 154393, checked in by mojca@…, 13 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4# This comment was inserted on 20160713 to force reindexing of
5# this port after the default homepage definition in the perl5
6# PortGroup was changed to use metacpan.org (r150080).
7# Reindexing is necessary for the new definition to take effect.
8# This comment may be removed in subsequent updates of this port.
9
10PortSystem          1.0
11PortGroup           perl5 1.0
12
13perl5.branches      5.24
14perl5.setup         Math-Pari 2.01080900
15license             {Artistic-1 GPL}
16maintainers         nomaintainer
17description         perl interface to pari.
18long_description    ${description}
19
20platforms           darwin
21
22use_zip             yes
23master_sites-append http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/:pari
24
25dist_subdir         pari
26
27if {${perl5.major} != ""} {
28# 2.1.7, though old, is the newest version of pari
29# supported by p5-math-pari 2.01080*, according to the README.
30set pari_version    2.1.7
31set pari_distfile   pari-${pari_version}.tgz
32
33# Let the p5-math-pari configure process extract and patch the pari distfile.
34set p5_distfile     ${distfiles}
35extract.only        ${p5_distfile}
36
37checksums           ${p5_distfile} \
38                    rmd160  12ed92b335a9b097190ed3147dae14b491d3827c \
39                    sha256  5845d9350fe0cd9d909d71b6d6b88ab67d17da88f4b0df6570938583d6f365fc \
40                    ${pari_distfile} \
41                    rmd160  6d7ca649cdd457d96c12e1f9333143d496a78b7e \
42                    sha256  9142f2cdaf3083c8962f1a5c2bb0e9fe8915f7d9490c03312ac2361c7ea155fa
43
44    distfiles-append    ${pari_distfile}:pari
45   
46    post-patch {
47        file copy ${filespath}/patch-pari-2_1_7-src-kernel-ix86-level0.h.diff ${worksrcpath}/patches/
48    }
49   
50    # The configure process will extract *and patch* this distfile.
51    configure.args-append pari_tgz=${distpath}/${pari_distfile}
52   
53    platform darwin 9 i386 {
54        patchfiles-append \
55                    patch-libPARI-Makefile.PL.diff \
56                    patch-utils-Math-PariBuild.pm.diff \
57                    patch-MANIFEST.diff
58    }
59}
Note: See TracBrowser for help on using the repository browser.