source: trunk/dports/sysutils/cpan2port/Portfile @ 146253

Last change on this file since 146253 was 143731, checked in by devans@…, 4 years ago

p5-module-load-conditional, cpan2port: remove dependency on p5-module-corelist which may conflict with version in core, increment revision (#50048).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 143731 2015-12-19 18:42:21Z devans@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                cpan2port
8svn.revision        142084
9version             0.1.0-r${svn.revision}
10revision            1
11categories          sysutils macports perl
12platforms           darwin
13maintainers         gwmail.gwu.edu:egall openmaintainer
14license             WTFPL-2 permissive
15supported_archs     noarch
16
17description         A perl script to generate MacPorts portfiles
18long_description    ${description} from CPAN modules.
19homepage            https://trac.macports.org/wiki/howto/${name}
20
21fetch.type          svn
22svn.url             https://svn.macports.org/repository/macports/contrib/${name}
23
24perl5.branches      5.22
25
26depends_run-append  port:p${perl5.major}-carp-clan \
27                    port:p${perl5.major}-cpan-meta-yaml \
28                    port:p${perl5.major}-file-path \
29                    port:p${perl5.major}-getopt-simple \
30                    port:p${perl5.major}-list-moreutils \
31                    port:p${perl5.major}-module-depends \
32                    port:p${perl5.major}-parse-cpan-meta \
33                    port:p${perl5.major}-pod-simple \
34                    port:p${perl5.major}-yaml
35
36worksrcdir          ${name}
37
38configure {
39    reinplace "s|#! /usr/bin/env perl|#!${prefix}/bin/perl${perl5.major}|g" ${worksrcpath}/${name}
40}
41
42# should be implied by overriding configure:
43configure.ccache    no
44
45build {}
46
47destroot {
48    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
49    xinstall -d ${destroot}${prefix}/share/doc/${name}
50    xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING
51}
52
53# TODO: check the latest svn revision of the file
54livecheck.type      none
Note: See TracBrowser for help on using the repository browser.