source: trunk/dports/sysutils/cpan2port/Portfile

Last change on this file was 154372, checked in by mojca@…, 9 months ago

cpan2port: remove variant for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 154372 2016-10-28 20:51:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                cpan2port
8svn.revision        148568
9version             0.1.0-r${svn.revision}
10revision            3
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
24# use perl5 port group to create variants
25# set default variant to p5.24 (#52081)
26
27perl5.conflict_variants yes
28perl5.branches 5.24
29perl5.default_branch 5.24
30perl5.create_variants ${perl5.branches}
31
32depends_run-append  port:p${perl5.major}-carp-clan \
33                    port:p${perl5.major}-cpan-meta-yaml \
34                    port:p${perl5.major}-file-path \
35                    port:p${perl5.major}-getopt-simple \
36                    port:p${perl5.major}-list-moreutils \
37                    port:p${perl5.major}-module-depends \
38                    port:p${perl5.major}-cpan-meta \
39                    port:p${perl5.major}-pod-simple \
40                    port:p${perl5.major}-yaml
41
42worksrcdir          ${name}
43
44configure {
45    reinplace "s|#! /usr/bin/env perl|#!${prefix}/bin/perl${perl5.major}|g" ${worksrcpath}/${name}
46}
47
48# should be implied by overriding configure:
49configure.ccache    no
50
51build {}
52
53destroot {
54    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
55    xinstall -d ${destroot}${prefix}/share/doc/${name}
56    xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING
57}
58
59# TODO: check the latest svn revision of the file
60livecheck.type      none
Note: See TracBrowser for help on using the repository browser.