[123851] trunk/dports/sysutils

mojca at macports.org mojca at macports.org
Fri Aug 15 04:06:50 PDT 2014


Revision: 123851
          https://trac.macports.org/changeset/123851
Author:   mojca at macports.org
Date:     2014-08-15 04:06:50 -0700 (Fri, 15 Aug 2014)
Log Message:
-----------
cpan2port: new port (#37823)

Added Paths:
-----------
    trunk/dports/sysutils/cpan2port/
    trunk/dports/sysutils/cpan2port/Portfile

Added: trunk/dports/sysutils/cpan2port/Portfile
===================================================================
--- trunk/dports/sysutils/cpan2port/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/cpan2port/Portfile	2014-08-15 11:06:50 UTC (rev 123851)
@@ -0,0 +1,53 @@
+# -*- 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$
+
+PortSystem          1.0
+
+name                cpan2port
+svn.revision        123850
+version             0.1.0-r${svn.revision}
+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}
+
+set perl_version    5.16
+
+depends_run-append  port:p${perl_version}-carp-clan \
+                    port:p${perl_version}-cpan-meta-yaml \
+                    port:p${perl_version}-file-path \
+                    port:p${perl_version}-getopt-simple \
+                    port:p${perl_version}-list-moreutils \
+                    port:p${perl_version}-module-corelist \
+                    port:p${perl_version}-module-depends \
+                    port:p${perl_version}-parse-cpan-meta \
+                    port:p${perl_version}-pod-simple \
+                    port:p${perl_version}-yaml
+
+worksrcdir          ${name}
+
+configure {
+    reinplace "s|#! /usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|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


Property changes on: trunk/dports/sysutils/cpan2port/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140815/9b881eef/attachment.html>


More information about the macports-changes mailing list