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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name cpan2port |
---|
7 | version 0.1.0 |
---|
8 | categories sysutils macports perl |
---|
9 | platforms darwin |
---|
10 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
11 | license WTFPL-2 permissive |
---|
12 | supported_archs noarch |
---|
13 | |
---|
14 | description A perl script to generate MacPorts portfiles |
---|
15 | long_description ${description} from CPAN modules. |
---|
16 | homepage http://svn.macports.org/repository/macports/contrib/${name} |
---|
17 | |
---|
18 | livecheck.type none |
---|
19 | |
---|
20 | fetch.type svn |
---|
21 | svn.url https://svn.macports.org/repository/macports/contrib/${name} |
---|
22 | svn.revision 120996 |
---|
23 | revision ${svn.revision} |
---|
24 | |
---|
25 | depends_lib-append port:p5.16-module-depends \ |
---|
26 | port:p5.16-list-moreutils \ |
---|
27 | port:p5.16-module-corelist \ |
---|
28 | port:p5.16-yaml \ |
---|
29 | port:p5.16-file-path \ |
---|
30 | port:p5.16-pod-simple \ |
---|
31 | port:p5.16-carp-clan \ |
---|
32 | port:p5.16-getopt-simple \ |
---|
33 | port:p5.16-parse-cpan-meta \ |
---|
34 | port:p5.16-cpan-meta-yaml |
---|
35 | |
---|
36 | worksrcdir ${name} |
---|
37 | |
---|
38 | configure.perl ${prefix}/bin/perl5.16 |
---|
39 | |
---|
40 | configure { |
---|
41 | reinplace "s|#! /usr/bin/env perl|#!${configure.perl}|g" ${worksrcpath}/${name} |
---|
42 | } |
---|
43 | |
---|
44 | # should be implied by overriding configure: |
---|
45 | configure.ccache no |
---|
46 | |
---|
47 | build { |
---|
48 | ui_debug "${name} has no build step." |
---|
49 | } |
---|
50 | |
---|
51 | destroot { |
---|
52 | xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name} |
---|
53 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
54 | xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING |
---|
55 | } |
---|