Changeset 101151


Ignore:
Timestamp:
Jan 5, 2013, 11:33:05 AM (8 years ago)
Author:
jmr@…
Message:

py-smb: use unified portgroup, license, noarch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-smb/Portfile

    r49054 r101151  
    22
    33PortSystem 1.0
    4 PortGroup python24 1.0
     4PortGroup python 1.0
    55
    66name                    py-smb
     
    88revision                1
    99categories              python net
     10license                 zlib
    1011maintainers             nomaintainer
    1112platforms               darwin freebsd
     13supported_archs noarch
    1214description             SMB/CIFS library for python
    1315long_description        SMB/CIFS library for python speaking NT LM0.12 \
     
    2022checksums               md5 768c729ed843359352099b12d5967c0b
    2123
    22 worksrcdir              pysmb
     24python.versions 24
    2325
    24 extract.post_args       "| tar -xf - --exclude 'CVS'"
     26if {$subport != $name} {
     27    worksrcdir          pysmb
    2528
    26 patch   {
    27         file copy ${portpath}/files/setup.py ${worksrcpath}
    28         reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
     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    }
    2950}
    30 
    31 post-destroot   {
    32         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/extra
    33         xinstall -m 644 -W ${worksrcpath}/docs index.html nmb_nbhostentry.html \
    34                 nmb_nbnodeentry.html nmb_netbios.html nmb_netbiossession.html \
    35                 return.gif smb.html smb_shareddevice.html smb_sharedfile.html \
    36                 smb_smb.html smb_smbmachine.html nmb.html \
    37                 ${destroot}${prefix}/share/doc/${name}
    38         xinstall -m 644 -W ${worksrcpath} nmbquery smbcp smbdu smblistshare \
    39                 ${destroot}${prefix}/share/doc/${name}/examples
    40         xinstall -m 644 -W ${worksrcpath}/extra NT4_PlainPassword.reg \
    41                 Win2000_PlainPassword.reg Win95_PlainPassword.reg \
    42                 Win98_PlainPassword.reg WinME_PlainPassword.reg \
    43                 ${destroot}${prefix}/share/doc/${name}/extra
    44 }
Note: See TracChangeset for help on using the changeset viewer.