Ticket #42167: demeter-0.9.19.diff

File demeter-0.9.19.diff, 2.8 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

proposed patch

  • Portfile

     
    44PortSystem          1.0
    55PortGroup           perl5 1.0
    66PortGroup           github 1.0
    7 PortGroup           active_variants 1.1
    87
    98# Need to use perl 5.16 because p5.12-wx does not work. But make the perl version easy to change.
    109set perl-version    5.16
    1110perl5.branches      ${perl-version}
    1211
    13 name                demeter
    14 version             0.9.18.2
    15 revision            1
    16 
     12github.setup        bruceravel demeter 0.9.19
    1713categories          science
    1814platforms           darwin
    1915license             Permissive
     
    2420long_description    Demeter is a comprehensive system for processing and analyzing X-ray Absorption Spectroscopy data.
    2521
    2622homepage            http://bruceravel.github.com/demeter/
    27 master_sites        https://github.com/bruceravel/demeter/archive/
    2823
    29 distname            ${version}
    30 worksrcdir          ${name}-${version}
     24checksums           rmd160  2e2ab1f0c46185996e8c5a189648528d36f95832 \
     25                    sha256  82dbdd03db9f01926d66821c48ccbc6c3787ea7c6c3761b37562179e9022c922
    3126
    32 checksums           rmd160  002f5ec90aacb0a103f8bd5f77872917003b0949 \
    33                     sha256  4cac8067e3d8d62678192c42554b42771baad4299175b9c6693b225055efade6
    34 
    3527depends_build-append \
     28                    port:perl${perl-version} \
    3629                    port:p${perl-version}-file-touch \
    3730                    port:p${perl-version}-image-size \
    3831                    port:p${perl-version}-pod-projectdocs \
     
    8578patchfiles          patch-DocBuilder-Artemis.pm.diff \
    8679                    patch-DocBuilder-Athena.pm.diff
    8780
    88 require_active_variants \
    89                     perl5 perl5_16
    90 
    9181post-patch {
    9282    reinplace "s|@@PERL-VERSION@@|${perl-version}|g" ${worksrcpath}/DocBuilder/Artemis.pm
    9383    reinplace "s|@@PERL-VERSION@@|${perl-version}|g" ${worksrcpath}/DocBuilder/Athena.pm
    9484}
    9585
    96 configure.cmd       perl Build.PL
     86configure.cmd       ${prefix}/bin/perl${perl-version} Build.PL
    9787configure.args      --destdir ${destroot}
    9888
    9989build.cmd           ./Build
     
    10191
    10292post-destroot   {
    10393    # Put the main executables (perl scripts) into the PATH
    104     ln -s ${prefix}/libexec/perl5.16/sitebin/dartemis    ${destroot}${prefix}/bin/artemis
    105     ln -s ${prefix}/libexec/perl5.16/sitebin/dathena     ${destroot}${prefix}/bin/athena
    106     ln -s ${prefix}/libexec/perl5.16/sitebin/dhephaestus ${destroot}${prefix}/bin/hephaestus
     94    ln -s ${prefix}/libexec/perl${perl-version}/sitebin/dartemis    ${destroot}${prefix}/bin/artemis
     95    ln -s ${prefix}/libexec/perl${perl-version}/sitebin/dathena     ${destroot}${prefix}/bin/athena
     96    ln -s ${prefix}/libexec/perl${perl-version}/sitebin/dhephaestus ${destroot}${prefix}/bin/hephaestus
    10797}