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 |
---|
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/cpan2port |
---|
17 | |
---|
18 | livecheck.type none |
---|
19 | |
---|
20 | fetch.type svn |
---|
21 | svn.url https://svn.macports.org/repository/macports/contrib/cpan2port |
---|
22 | svn.revision 101883 |
---|
23 | |
---|
24 | depends_lib-append port:p5.12-module-depends \ |
---|
25 | port:p5.12-list-moreutils \ |
---|
26 | port:p5.12-module-corelist \ |
---|
27 | port:p5.12-yaml \ |
---|
28 | port:p5.12-file-path \ |
---|
29 | port:p5.12-pod-simple \ |
---|
30 | port:p5.12-carp-clan \ |
---|
31 | port:p5.12-getopt-simple |
---|
32 | |
---|
33 | worksrcdir ${name} |
---|
34 | |
---|
35 | configure.perl ${prefix}/bin/perl5.12 |
---|
36 | |
---|
37 | configure { |
---|
38 | reinplace "s|#! /usr/bin/env perl|#!${configure.perl}|g" ${worksrcpath}/${name} |
---|
39 | } |
---|
40 | |
---|
41 | build {} |
---|
42 | |
---|
43 | destroot { |
---|
44 | xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name} |
---|
45 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
46 | xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING |
---|
47 | } |
---|