Ignore:
Timestamp:
Jun 26, 2013, 10:35:57 PM (6 years ago)
Author:
mk@…
Message:

litecoin: use subport instead of variants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/finance/litecoin/Portfile

    r107385 r107387  
    88
    99github.setup        litecoin-project litecoin 0.6.9.2
     10revision            1
    1011
    1112categories          finance
     
    3132
    3233depends_lib-append  port:boost \
    33                                         port:openssl \
    34                                         port:db48 \
    35                                         port:miniupnpc \
    36                                         port:qrencode
     34                    port:openssl \
     35                    port:db48 \
     36                    port:miniupnpc \
     37                    port:qrencode
    3738
    3839checksums           md5     24cf887081cca5af2c59ffa3682f64d3 \
     
    5051}
    5152
    52 destroot {
    53     if {![variant_isset onlydaemon]} {
    54                 xinstall -m 0755 -d ${destroot}${qt_apps_dir}
    55                 file copy ${worksrcpath}/Litecoin-Qt.app ${destroot}${qt_apps_dir}
    56         }
    57         if {[variant_isset daemon] || [variant_isset onlydaemon]} {
    58                 xinstall -d ${destroot}${prefix}/sbin
    59                 xinstall -m 755 -W ${worksrcpath} src/litecoind ${destroot}${prefix}/sbin
    60         }
     53if {$subport == $name} {
     54    destroot {
     55        xinstall -m 0755 -d ${destroot}${qt_apps_dir}
     56        file copy ${worksrcpath}/Litecoin-Qt.app ${destroot}${qt_apps_dir}
     57    }
    6158}
    6259
    63 variant daemon description {Build and install also the litecoind deamon (not recommended)} {
    64     set build.cmd "(cd src && make -f makefile.osx DEPSDIR=\"${prefix}\" USE_IPV6=1) && make"
     60subport litecoind {
     61    depends_lib-delete  port:qt4-mac
     62
     63    set build.cmd "cd src && make -f makefile.osx DEPSDIR=\"${prefix}\" USE_IPV6=1"
     64
     65    destroot {
     66        xinstall -d ${destroot}${prefix}/sbin
     67        xinstall -m 755 -W ${worksrcpath} src/litecoind ${destroot}${prefix}/sbin
     68    }
    6569}
    66 
    67 variant onlydaemon description {Build and install only the litecoind deamon (not recommended)} {
    68     set build.cmd "cd src && make -f makefile.osx DEPSDIR=\"${prefix}\" USE_IPV6=1"
    69         depends_lib-delete port:qt4-mac
    70 }
    71 
Note: See TracChangeset for help on using the changeset viewer.