source: trunk/dports/perl/p5-ifeffit/Portfile

Last change on this file was 154393, checked in by mojca@…, 11 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
4PortSystem          1.0
5PortGroup           perl5 1.0
6PortGroup           compilers 1.0
7
8perl5.branches      5.24
9perl5.setup         Ifeffit 2
10epoch               1
11version             1.2.13
12
13platforms           darwin
14license             Permissive
15maintainers         nomaintainer
16
17description         Perl interface to ifeffit
18
19long_description    ${description}
20
21homepage            http://cars9.uchicago.edu/ifeffit/
22master_sites        https://github.com/newville/ifeffit/archive/
23
24checksums           rmd160  dedd8b9f6be0d0b0bce67e5f53c18faddf7b0912 \
25                    sha256  72a7f5bd6e6e1ff2b41761cfe726f79f2da8e71606399d3c3307451496a1c0ef
26
27dist_subdir         ifeffit
28distname            1.2.final
29worksrcdir          ifeffit-${distname}/wrappers/perl
30
31# IMPORTANT BUILD NOTES
32#
33# p5-ifeffit is configured using a Makefile.PL that is generated when ifeffit is built.
34# since the paths to the compiler libraries contain compiler version information,
35# if the compiler version changes then both ifeffit and p5-ifeffit need to be rebuilt
36# so that the Makefile.PL in use contains the correct paths.
37#
38# if in doubt rebuild everything
39
40if {${perl5.major} != ""} {
41    depends_lib-append \
42                    port:ifeffit
43
44    compilers.choose    f77
45    compilers.setup     require_fortran
46
47    compilers.enforce_fortran  ifeffit
48    # this shows up in the contents of Makefile.PL, as the gcc/gfortran library
49   
50    pre-configure {
51        # copy the preconfigured Makefile.PL generated during the build of ifeffit
52        # this must be done in pre-configure to ensure that ifeffit is installed and active
53        # before the copy is attempted
54       
55        copy -force ${prefix}/share/ifeffit/config/Makefile.PL ${worksrcpath}/Makefile.PL
56    }
57   
58    post-configure {
59        # Need to patch the generated Makefile due to strange bug
60        reinplace "s|^PERL_ARCHIVE *= *$|PERL_ARCHIVE = \$(PERL_INC)/libperl.dylib|" ${worksrcpath}/Makefile
61    }
62}
63
64# this is the final release of ifeffit
65livecheck.type      none
Note: See TracBrowser for help on using the repository browser.