Ticket #37823: Portfile.2

File Portfile.2, 1.5 KB (added by cooljeanius (Eric Gallager), 11 years ago)

New portfile for cpan2port

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$
3
4PortSystem          1.0
5
6name                cpan2port
7version             0.1.0
8categories          sysutils macports
9platforms           darwin
10maintainers         gwmail.gwu.edu:egall openmaintainer
11license             WTFPL-2 permissive
12supported_archs     noarch
13
14description         A perl script to generate MacPorts portfiles
15long_description    ${description} from CPAN modules
16homepage            http://svn.macports.org/repository/macports/contrib/cpan2port
17
18livecheck.type      none
19
20fetch.type          svn
21svn.url             https://svn.macports.org/repository/macports/contrib/cpan2port
22svn.revision        101883
23
24depends_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
33worksrcdir          ${name}
34
35configure.perl      ${prefix}/bin/perl5.12
36
37configure {
38    reinplace "s|#! /usr/bin/env perl|#!${configure.perl}|g" ${worksrcpath}/${name}
39}
40
41build {}
42
43destroot {
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}