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-append textproc sysutils |
---|
9 | platforms darwin |
---|
10 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
11 | license WTFPL-2 permissive |
---|
12 | supported_archs noarch |
---|
13 | |
---|
14 | description a tool 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 | configure.perl ${prefix}/bin/perl5.12 |
---|
34 | |
---|
35 | configure { |
---|
36 | reinplace "s|#! /usr/bin/env perl|#!${configure.perl}|g" ${workpath}/${name}/${name} |
---|
37 | } |
---|
38 | |
---|
39 | build {} |
---|
40 | |
---|
41 | destroot { |
---|
42 | xinstall -m 755 ${workpath}/${name}/${name} ${destroot}${prefix}/bin/${name} |
---|
43 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
44 | xinstall -m 644 ${workpath}/${name}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING |
---|
45 | } |
---|