# -*- 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 # $Id: Portfile 154393 2016-10-28 22:10:07Z mojca@macports.org $ # This comment was inserted on 20160713 to force reindexing of # this port after the default homepage definition in the perl5 # PortGroup was changed to use metacpan.org (r150080). # Reindexing is necessary for the new definition to take effect. # This comment may be removed in subsequent updates of this port. PortSystem 1.0 PortGroup perl5 1.0 perl5.branches 5.24 perl5.setup Math-Pari 2.01080900 license {Artistic-1 GPL} maintainers nomaintainer description perl interface to pari. long_description ${description} platforms darwin use_zip yes master_sites-append http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/:pari dist_subdir pari if {${perl5.major} != ""} { # 2.1.7, though old, is the newest version of pari # supported by p5-math-pari 2.01080*, according to the README. set pari_version 2.1.7 set pari_distfile pari-${pari_version}.tgz # Let the p5-math-pari configure process extract and patch the pari distfile. set p5_distfile ${distfiles} extract.only ${p5_distfile} checksums ${p5_distfile} \ rmd160 12ed92b335a9b097190ed3147dae14b491d3827c \ sha256 5845d9350fe0cd9d909d71b6d6b88ab67d17da88f4b0df6570938583d6f365fc \ ${pari_distfile} \ rmd160 6d7ca649cdd457d96c12e1f9333143d496a78b7e \ sha256 9142f2cdaf3083c8962f1a5c2bb0e9fe8915f7d9490c03312ac2361c7ea155fa distfiles-append ${pari_distfile}:pari post-patch { file copy ${filespath}/patch-pari-2_1_7-src-kernel-ix86-level0.h.diff ${worksrcpath}/patches/ } # The configure process will extract *and patch* this distfile. configure.args-append pari_tgz=${distpath}/${pari_distfile} platform darwin 9 i386 { patchfiles-append \ patch-libPARI-Makefile.PL.diff \ patch-utils-Math-PariBuild.pm.diff \ patch-MANIFEST.diff } }