[133343] trunk/dports/sysutils/pypi2port/Portfile

gaurav at macports.org gaurav at macports.org
Thu Feb 26 12:39:20 PST 2015


Revision: 133343
          https://trac.macports.org/changeset/133343
Author:   gaurav at macports.org
Date:     2015-02-26 12:39:20 -0800 (Thu, 26 Feb 2015)
Log Message:
-----------
trunk/dports/sysutils: Added Portfile for pypi2port

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

Added: trunk/dports/sysutils/pypi2port/Portfile
===================================================================
--- trunk/dports/sysutils/pypi2port/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/pypi2port/Portfile	2015-02-26 20:39:20 UTC (rev 133343)
@@ -0,0 +1,46 @@
+# -*- 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
+PortGroup           python 1.0
+
+name                pypi2port
+version             133341
+svn.revision        ${version}
+categories          sysutils macports
+platforms           darwin
+maintainers         gaurav openmaintainer
+license             BSD
+supported_archs     noarch
+
+description         A python script to generate MacPorts Portfiles
+long_description    ${description} from pypi
+homepage            https://trac.macports.org/wiki/howto/${name}
+
+fetch.type          svn
+svn.url             https://svn.macports.org/repository/macports/contrib/${name}
+
+python.versions     27 34
+
+# list dependencies
+depends_run-append  port:py${python.version}-requests
+
+worksrcdir          ${name}
+
+build {}
+
+post-patch {
+    reinplace "s|#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/${name}.py
+}
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/${name}.py ${destroot}${prefix}/bin/${name}
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name}/README.txt
+}
+
+# TODO: check the latest svn revision of the file
+# Checks for latest revision in the commit log
+livecheck.type      regex
+livecheck.url       http://trac.macports.org/log/contrib/pypi2port
+livecheck.regex     {@(\d+)</a>}


Property changes on: trunk/dports/sysutils/pypi2port/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/20150226/8b1ec63b/attachment.html>


More information about the macports-changes mailing list