Revision: 107387 https://trac.macports.org/changeset/107387 Author: mk@macports.org Date: 2013-06-26 15:35:57 -0700 (Wed, 26 Jun 2013) Log Message: ----------- litecoin: use subport instead of variants Modified Paths: -------------- trunk/dports/finance/litecoin/Portfile Modified: trunk/dports/finance/litecoin/Portfile =================================================================== --- trunk/dports/finance/litecoin/Portfile 2013-06-26 21:50:38 UTC (rev 107386) +++ trunk/dports/finance/litecoin/Portfile 2013-06-26 22:35:57 UTC (rev 107387) @@ -7,6 +7,7 @@ PortGroup github 1.0 github.setup litecoin-project litecoin 0.6.9.2 +revision 1 categories finance maintainers mk openmaintainer @@ -30,10 +31,10 @@ license MIT depends_lib-append port:boost \ - port:openssl \ - port:db48 \ - port:miniupnpc \ - port:qrencode + port:openssl \ + port:db48 \ + port:miniupnpc \ + port:qrencode checksums md5 24cf887081cca5af2c59ffa3682f64d3 \ sha1 54783ecf0b426de410718b2c40045e052c78728d \ @@ -49,23 +50,20 @@ configure.pre_args-append USE_QRCODE=1 INCLUDEPATH+="${prefix}/include/db48/" LIBS+="-L${prefix}/lib/db48" } -destroot { - if {![variant_isset onlydaemon]} { - xinstall -m 0755 -d ${destroot}${qt_apps_dir} - file copy ${worksrcpath}/Litecoin-Qt.app ${destroot}${qt_apps_dir} - } - if {[variant_isset daemon] || [variant_isset onlydaemon]} { - xinstall -d ${destroot}${prefix}/sbin - xinstall -m 755 -W ${worksrcpath} src/litecoind ${destroot}${prefix}/sbin - } +if {$subport == $name} { + destroot { + xinstall -m 0755 -d ${destroot}${qt_apps_dir} + file copy ${worksrcpath}/Litecoin-Qt.app ${destroot}${qt_apps_dir} + } } -variant daemon description {Build and install also the litecoind deamon (not recommended)} { - set build.cmd "(cd src && make -f makefile.osx DEPSDIR=\"${prefix}\" USE_IPV6=1) && make" -} +subport litecoind { + depends_lib-delete port:qt4-mac -variant onlydaemon description {Build and install only the litecoind deamon (not recommended)} { set build.cmd "cd src && make -f makefile.osx DEPSDIR=\"${prefix}\" USE_IPV6=1" - depends_lib-delete port:qt4-mac -} + destroot { + xinstall -d ${destroot}${prefix}/sbin + xinstall -m 755 -W ${worksrcpath} src/litecoind ${destroot}${prefix}/sbin + } +}