Ticket #18928: pyuid103.diff

File pyuid103.diff, 3.1 KB (added by arthur@…, 16 years ago)

Portfile

  • Portfile

    old new  
    11# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $
    22
    3 PortSystem 1.0
    4 PortGroup python24 1.0
     3PortSystem          1.0
     4PortGroup           python24 1.0
    55
    6 name                    py-uid
    7 version                 1.0.2
    8 revision                1
    9 categories              python
    10 platforms               darwin
    11 maintainers             nomaintainer
    12 description             unique ID generator python module and program
    13 long_description        Provided is an implementation of a unique ID (UID) \
    14                                 generator in Python. The implementation does not \
    15                                 follow UUID or GUID standards, but rather uses \
    16                                 available system, host, user, shell environment, \
    17                                 process, and other ephemeral information fed into a \
    18                                 hasher to generate the UID.
    19 
    20 homepage                http://www.alcyone.com/software/uid/
    21 master_sites    ${homepage}
    22 distname                uid-${version}
    23 checksums               md5 79868221e3baa21ae189ebcecd1ad9e6
    24 
    25 post-extract    {
    26         file copy ${filespath}/setup.py ${worksrcpath}
    27         reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
     6name                py-uid
     7version             1.0.3
     8platforms           darwin
     9maintainers         openmaintainer arthurkoziel.com:arthur
     10
     11homepage            http://www.alcyone.com/software/uid/
     12description         Configurable unique ID generation.
     13long_description    Provided is an implementation of a unique ID (UID) \
     14                    generator in Python. The implementation does not \
     15                    follow UUID or GUID standards, but rather uses \
     16                    available system, host, user, shell environment, \
     17                    process, and other ephemeral information fed into a \
     18                    hasher to generate the UID.
     19
     20master_sites        ${homepage}
     21distname            uid-${version}
     22checksums           md5     0b3bf357056900556d1ed4244300594b \
     23                    sha1    0d335ccc462b27a8a0d08dd2f5547c7023e06358 \
     24                    rmd160  10451943309a3cf17c2d22f6cbc38a93bb32398c
     25
     26post-extract {
     27    file copy ${filespath}/setup.py ${worksrcpath}
     28    reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
    2829}
    2930
    30 post-destroot   {
    31         xinstall -m 755 ${filespath}/uid ${destroot}${prefix}/bin
    32         reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/uid
    33         xinstall -m 644 -W ${worksrcpath} COPYING README \
    34                 ${destroot}${prefix}/share/doc/${name}
    35         xinstall -m 644 -W ${worksrcpath}/doc index.html uid.py.html \
    36                 uid_Hash.py.html uid_HashGenerator.py.html \
    37                 uid_IdentityHash.py.html uid_UIDGenerator.py.html \
    38                 ${destroot}${prefix}/share/doc/${name}
     31post-destroot   {
     32    xinstall -m 640 -W ${worksrcpath} COPYING README doc/index.html \
     33        ${destroot}${prefix}/share/doc/${name}
     34    xinstall -d ${destroot}${prefix}/share/doc/${name}/home/max/projects/uid/doc/uid
     35    xinstall -m 640 -W ${worksrcpath}/doc/home/max/projects/uid/doc/ uid.html \
     36        ${destroot}${prefix}/share/doc/${name}/home/max/projects/uid/doc   
     37    eval xinstall -m 640 [glob ${worksrcpath}/doc/home/max/projects/uid/doc/uid/*] \
     38       ${destroot}${prefix}/share/doc/${name}/home/max/projects/uid/doc/uid
    3939}