[101151] trunk/dports/python/py-smb/Portfile

jmr at macports.org jmr at macports.org
Sat Jan 5 03:33:05 PST 2013


Revision: 101151
          https://trac.macports.org/changeset/101151
Author:   jmr at macports.org
Date:     2013-01-05 03:33:05 -0800 (Sat, 05 Jan 2013)
Log Message:
-----------
py-smb: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-smb/Portfile
===================================================================
--- trunk/dports/python/py-smb/Portfile	2013-01-05 11:25:31 UTC (rev 101150)
+++ trunk/dports/python/py-smb/Portfile	2013-01-05 11:33:05 UTC (rev 101151)
@@ -1,14 +1,16 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-smb
 version			0.4.4
 revision		1
 categories		python net
+license			zlib
 maintainers		nomaintainer
 platforms		darwin freebsd
+supported_archs	noarch
 description		SMB/CIFS library for python
 long_description	SMB/CIFS library for python speaking NT LM0.12 \
 				enables python to access shares from Windows computers or \
@@ -19,26 +21,30 @@
 distname		pysmb-${version}
 checksums		md5 768c729ed843359352099b12d5967c0b
 
-worksrcdir		pysmb
+python.versions	24
 
-extract.post_args	"| tar -xf - --exclude 'CVS'"
+if {$subport != $name} {
+    worksrcdir		pysmb
 
-patch	{
-	file copy ${portpath}/files/setup.py ${worksrcpath}
-	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
-}
+    extract.post_args	"| tar -xf - --exclude 'CVS'"
 
-post-destroot	{
-	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/extra
-	xinstall -m 644 -W ${worksrcpath}/docs index.html nmb_nbhostentry.html \
-		nmb_nbnodeentry.html nmb_netbios.html nmb_netbiossession.html \
-		return.gif smb.html smb_shareddevice.html smb_sharedfile.html \
-		smb_smb.html smb_smbmachine.html nmb.html \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} nmbquery smbcp smbdu smblistshare \
-		${destroot}${prefix}/share/doc/${name}/examples
-	xinstall -m 644 -W ${worksrcpath}/extra NT4_PlainPassword.reg \
-		Win2000_PlainPassword.reg Win95_PlainPassword.reg \
-		Win98_PlainPassword.reg WinME_PlainPassword.reg \
-		${destroot}${prefix}/share/doc/${name}/extra
+    patch	{
+        file copy ${portpath}/files/setup.py ${worksrcpath}
+        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
+    }
+
+    post-destroot	{
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/extra
+        xinstall -m 644 -W ${worksrcpath}/docs index.html nmb_nbhostentry.html \
+            nmb_nbnodeentry.html nmb_netbios.html nmb_netbiossession.html \
+            return.gif smb.html smb_shareddevice.html smb_sharedfile.html \
+            smb_smb.html smb_smbmachine.html nmb.html \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} nmbquery smbcp smbdu smblistshare \
+            ${destroot}${prefix}/share/doc/${subport}/examples
+        xinstall -m 644 -W ${worksrcpath}/extra NT4_PlainPassword.reg \
+            Win2000_PlainPassword.reg Win95_PlainPassword.reg \
+            Win98_PlainPassword.reg WinME_PlainPassword.reg \
+            ${destroot}${prefix}/share/doc/${subport}/extra
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130105/f659d6df/attachment.html>


More information about the macports-changes mailing list