# -*- 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 # $Id: Portfile 143731 2015-12-19 18:42:21Z devans@macports.org $ PortSystem 1.0 PortGroup perl5 1.0 name cpan2port svn.revision 142084 version 0.1.0-r${svn.revision} revision 1 categories sysutils macports perl platforms darwin maintainers gwmail.gwu.edu:egall openmaintainer license WTFPL-2 permissive supported_archs noarch description A perl script to generate MacPorts portfiles long_description ${description} from CPAN modules. homepage https://trac.macports.org/wiki/howto/${name} fetch.type svn svn.url https://svn.macports.org/repository/macports/contrib/${name} perl5.branches 5.22 depends_run-append port:p${perl5.major}-carp-clan \ port:p${perl5.major}-cpan-meta-yaml \ port:p${perl5.major}-file-path \ port:p${perl5.major}-getopt-simple \ port:p${perl5.major}-list-moreutils \ port:p${perl5.major}-module-depends \ port:p${perl5.major}-parse-cpan-meta \ port:p${perl5.major}-pod-simple \ port:p${perl5.major}-yaml worksrcdir ${name} configure { reinplace "s|#! /usr/bin/env perl|#!${prefix}/bin/perl${perl5.major}|g" ${worksrcpath}/${name} } # should be implied by overriding configure: configure.ccache no build {} destroot { xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name} xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING } # TODO: check the latest svn revision of the file livecheck.type none