Modified: trunk/dports/finance/bitcoin/Portfile (103499 => 103500)
--- trunk/dports/finance/bitcoin/Portfile 2013-02-27 12:08:52 UTC (rev 103499)
+++ trunk/dports/finance/bitcoin/Portfile 2013-02-27 12:21:12 UTC (rev 103500)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
@@ -3,63 +4,59 @@
name bitcoin
categories finance crypto
-version 0.3.22
+version 0.8.0
+revision 0
platforms darwin
license MIT
-maintainers nomaintainer
-description a peer-to-peer digital currency
-long_description \
- Bitcoin is a peer-to-peer digital currency. Peer-to-peer (P2P) means that \
- there is no central authority to issue new money or keep track of \
- transactions. Instead, these tasks are managed collectively by the nodes \
- of the network.
-
+maintainers yopmail.com:sami.laine easieste openmaintainer
+description client user interface for a peer-to-peer digital currency
+long_description Bitcoin is a peer-to-peer digital currency. Peer-to-peer \
+ (P2P) means that there is no central authority to issue \
+ new money or keep track of transactions. Instead, these \
+ tasks are managed collectively by the nodes of then \
+ network. \
+ This port is for client user interface, if you're looking \
+ for daemon, use port `bitcoind´ instead.
homepage http://www.bitcoin.org/
master_sites sourceforge
-distname ${name}-${version}-macosx
-use_zip yes
-checksums md5 5daa8d577e5ee081a4eae7cf4845f76c \
- sha1 5798efd33d38d530428d22aa4edf37e99731072e \
- rmd160 094c90358ed24be23feb66db6c68c6525e6234fc
+distname ${name}-${version}-linux
+checksums md5 112ba1251136b72ab341250fe9a513a9 \
+ sha1 a7096a816eed8e77a3a1fc20da850da489c9b4fb \
+ rmd160 3bbfa95d28c4ce76a607c1dbd887cbbdd6c3721e
depends_lib port:boost \
port:openssl \
port:db48 \
- port:wxWidgets-devel \
- port:miniupnpc
+ port:qt4-mac
-supported_archs x86_64
-universal_variant no
-worksrcdir ${name}-${version}/src
-set makefile ${worksrcpath}/makefile.osx
-configure {
- reinplace "s|^DEPSDIR=.*$|DEPSDIR=${prefix}|" ${makefile}
- reinplace "s|-I\"\$\(DEPSDIR\)\/include\"|-I${prefix}/include -I${prefix}/include/db48|" ${makefile}
- reinplace "s|lib/libdb_cxx-4.8.a|lib/db48/libdb_cxx-4.8.dylib|" ${makefile}
- reinplace "s|lib/libboost_thread.a|lib/libboost_thread-mt.dylib|" ${makefile}
- reinplace "s|\\\.a|.dylib|" ${makefile}
- reinplace "s|/miniupnpc/|/lib/|" ${makefile}
+worksrcdir ${name}-${version}-linux/src
- # The QuickTime framework isn't actually needed, and it doesn't exist for
- # x86_64, but wx-config --libs spits it out anyway, so we'll filter it out
- # with sed.
- reinplace "s|wx-config --libs --static|wx-config --libs \\\| sed -e \"s/-framework QuickTime//\"|g" ${makefile}
+configure.args ""
+configure.pre_args ""
+configure.post_args ""
+configure.cmd qmake
+build.args ""
+build.pre_args ""
+build.post_args ""
+build.target ""
+build.cmd (cd src && make -f makefile.osx ) && make
- # Building with i386 support seems to make everything explode, so we'll
- # remove it.
- reinplace "s|-arch i386||" ${makefile}
-}
-build.args -f ${makefile}
-build.target-append bitcoind
destroot {
- xinstall -m 755 -W ${worksrcpath} \
- bitcoin bitcoind ${destroot}${prefix}/bin
+ xinstall -d ${destroot}${prefix}/bin
+ xinstall -d ${destroot}${prefix}/sbin
+ if {![variant_isset daemon]} {
+ xinstall -m 755 -W ${worksrcpath} \
+ Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt \
+ ${destroot}${prefix}/bin/bitcoin-qt
+ }
+ xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/sbin
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${docdir}
- xinstall -m 444 -W ${worksrcpath}/.. readme.txt license.txt ${docdir}
-
- file copy ${worksrcpath}/../Bitcoin.app ${destroot}${applications_dir}/
+ eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*] ${docdir}
}
-# Tweak the Sourceforge livechecking
-livecheck.regex {/bitcoin-(\d+(?:\.\w+)+)/README}
+variant daemon description {Build and install only the bitcoind deamon} {
+ set build.cmd "cd src && make -f makefile.osx"
+ depends_lib-delete port:qt4-mac
+}
+