[91444] trunk/dports/python/py-ftputil/Portfile

dports at macports.org dports at macports.org
Sun Apr 1 19:02:54 PDT 2012


Revision: 91444
          https://trac.macports.org/changeset/91444
Author:   dports at macports.org
Date:     2012-04-01 19:02:54 -0700 (Sun, 01 Apr 2012)
Log Message:
-----------
py-ftputil: unify and update to v2.6 (#33196)
 * new maintainer
 * add license and livecheck
 * noarch

Modified Paths:
--------------
    trunk/dports/python/py-ftputil/Portfile

Modified: trunk/dports/python/py-ftputil/Portfile
===================================================================
--- trunk/dports/python/py-ftputil/Portfile	2012-04-02 01:58:17 UTC (rev 91443)
+++ trunk/dports/python/py-ftputil/Portfile	2012-04-02 02:02:54 UTC (rev 91444)
@@ -1,25 +1,57 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-off set: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
-PortGroup python24 1.0
+PortSystem        1.0
+PortGroup python  1.0
 
-name			py-ftputil
-version			2.0.3
-categories		python
-platforms		darwin
-maintainers		nomaintainer
-description		high level Python interface to the ftplib module
-long_description	The module ftputil is a high-level interface to the \
-				ftplib module. The FTPHost objects generated from it \
-				allow many operations similar to those of os and \
-				os.path.
+name              py-ftputil
+version           2.6
+categories        python network
+license           BSD
+platforms         darwin
+supported_archs   noarch
 
-homepage		http://www.sschwarzer.net/python/python_software.html
-master_sites	http://www.sschwarzer.net/download/
-distname		ftputil-${version}
-checksums		md5 13cbdf29f637883fe3ecea815d389d2e
+maintainers       maiar.org:jason-macports openmaintainer
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath} README.html README.txt ftputil.html \
-		ftputil.txt ${destroot}${prefix}/share/doc/${name}
+description       High level Python interface to the ftplib module
+long_description  The module ftputil is a high-level interface to the \
+                  ftplib module. The FTPHost objects generated from it \
+                  allow many operations similar to those of os and \
+                  os.path.
+
+distname          ftputil-${version}
+extract.suffix    .tar.gz
+homepage          http://ftputil.sschwarzer.net/trac/
+master_sites      ${homepage}raw-attachment/wiki/Download/${distfiles}?format=raw?dummy=
+checksums         md5    df1880064485be39b3e6eeefbd812b03 \
+                  sha1   5fe61f7165b309e021011de66bd80f990c0cff3c \
+                  rmd160 cd7bd7bfcb40c82b13f5d9daa1ba15a0a26c4b51
+
+
+python.versions     24 25 26 27
+
+if {$subport != $name} {
+  depends_build   port:py${python.version}-distribute
 }
+
+
+if {$subport != $name} {
+  post-destroot  {
+      if {${python.version} == 24 || ${python.version} == 25} {
+          delete ${destroot}${prefix}/doc/ftputil
+      }
+      xinstall -d ${destroot}${prefix}/share/doc/${subport}
+      xinstall -m 644 -W ${worksrcpath} README.html README.txt ftputil.html \
+          ftputil.txt VERSION PKG-INFO ${destroot}${prefix}/share/doc/${subport}
+  }
+}
+
+
+
+if {$subport != $name} {
+    livecheck.type  regex
+    livecheck.url   ${homepage}raw-attachment/wiki/Download/
+    livecheck.regex {>ftputil-([0-9.]+).tar.gz<}
+} else {
+    livecheck.type      none
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120401/56606412/attachment.html>


More information about the macports-changes mailing list