source: trunk/dports/python/py-smb/Portfile

Last change on this file was 130796, checked in by larryv@…, 3 years ago

py24-smb: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 130796 2015-01-02 20:55:03Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-smb
7version                 0.4.4
8revision                1
9categories-append       net
10license                 zlib
11maintainers             nomaintainer
12platforms               darwin freebsd
13supported_archs noarch
14description             SMB/CIFS library for python
15long_description        SMB/CIFS library for python speaking NT LM0.12 \
16                                enables python to access shares from Windows computers or \
17                                machines running Samba.
18
19homepage                http://pysmb.sourceforge.net/
20master_sites            sourceforge:pysmb
21distname                pysmb-${version}
22checksums               md5 768c729ed843359352099b12d5967c0b
23
24python.versions 27
25
26if {${name} ne ${subport}} {
27    worksrcdir          pysmb
28
29    extract.post_args   "| tar -xf - --exclude 'CVS'"
30
31    patch       {
32        file copy ${portpath}/files/setup.py ${worksrcpath}
33        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
34    }
35
36    post-destroot       {
37        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/extra
38        xinstall -m 644 -W ${worksrcpath}/docs index.html nmb_nbhostentry.html \
39            nmb_nbnodeentry.html nmb_netbios.html nmb_netbiossession.html \
40            return.gif smb.html smb_shareddevice.html smb_sharedfile.html \
41            smb_smb.html smb_smbmachine.html nmb.html \
42            ${destroot}${prefix}/share/doc/${subport}
43        xinstall -m 644 -W ${worksrcpath} nmbquery smbcp smbdu smblistshare \
44            ${destroot}${prefix}/share/doc/${subport}/examples
45        xinstall -m 644 -W ${worksrcpath}/extra NT4_PlainPassword.reg \
46            Win2000_PlainPassword.reg Win95_PlainPassword.reg \
47            Win98_PlainPassword.reg WinME_PlainPassword.reg \
48            ${destroot}${prefix}/share/doc/${subport}/extra
49    }
50}
Note: See TracBrowser for help on using the repository browser.