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

Last change on this file since 134772 was 123851, checked in by mojca@…, 5 years ago

cpan2port: new port (#37823)

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