Revision: 118125 https://trac.macports.org/changeset/118125 Author: easieste@macports.org Date: 2014-03-23 02:59:56 -0700 (Sun, 23 Mar 2014) Log Message: ----------- Update to bitcoin-0.9.0. Port now builds from git source avoiding large Linux binary distribution download. The qt client is now installed as `bitcoin-qt' as the packaging for the OS X app seems to be buried in the release process. As such, the dependency on the qmake PortGroup has also been removed. Modified Paths: -------------- trunk/dports/finance/bitcoin/Portfile Modified: trunk/dports/finance/bitcoin/Portfile =================================================================== --- trunk/dports/finance/bitcoin/Portfile 2014-03-23 09:35:02 UTC (rev 118124) +++ trunk/dports/finance/bitcoin/Portfile 2014-03-23 09:59:56 UTC (rev 118125) @@ -4,10 +4,10 @@ PortSystem 1.0 name bitcoin categories finance crypto -version 0.8.6 +version 0.9.0 platforms darwin license MIT -maintainers yopmail.com:sami.laine easieste openmaintainer +maintainers easieste openmaintainer yopmail.com:sami.laine description client user interface for a peer-to-peer digital currency long_description Bitcoin is a peer-to-peer digital currency. By peer-to-peer, \ we mean that there is no central authority to issue \ @@ -15,59 +15,36 @@ tasks are managed collectively by the Bitcoin protocol \ operating through the nodes of the network. homepage http://www.bitcoin.org/ -master_sites sourceforge -distname ${name}-${version}-linux -checksums md5 4c24497a3c88adf1ef9855efaf31cf87 \ - sha1 a95b20338a14bb6aa379285828fb0a13b9f6c0e4 \ - rmd160 7a1e4055a6e77cfaafab2f92ea0400238ea8a256 +fetch.type git +git.url https://github.com/bitcoin/bitcoin.git +git.branch v${version} + depends_lib port:boost \ port:openssl \ port:db48 \ port:miniupnpc \ port:qt4-mac -worksrcdir ${name}-${version}-linux/src +configure.cmd ./autogen.sh && ./configure -if {![variant_isset daemon]} { - PortGroup qmake 1.0 +variant daemon description {Build and install only the bitcoind daemon} { + configure.cmd-append --with-gui=no + depends_lib-delete port:qt4-mac } -patchfiles patch_src_src_serialize_h.diff -build.args "" -build.pre_args "" -build.post_args "" -build.target "" -build.cmd (cd src && make -f makefile.osx ) && make - -post-build { - set year [clock format [clock seconds] -format %Y] - - reinplace -W ${worksrcpath}/Bitcoin-Qt.app/Contents "s|\$VERSION|${version}|" Info.plist - reinplace -W ${worksrcpath}/Bitcoin-Qt.app/Contents "s|\$YEAR|${year}|" Info.plist -} - destroot { 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 + src/qt/bitcoin-qt ${destroot}${prefix}/bin } xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/bin + xinstall -m 755 -W ${worksrcpath} src/bitcoin-cli ${destroot}${prefix}/bin set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} - eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*] ${docdir} - - xinstall -d ${destroot}${applications_dir} - file rename ${worksrcpath}/Bitcoin-Qt.app ${destroot}${applications_dir}/Bitcoin-Qt.app + eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*.md] ${docdir} } -variant daemon description {Build and install only the bitcoind daemon} { - use_configure no - build.cmd "cd src && make -f makefile.osx" - depends_lib-delete port:qt4-mac -}
participants (1)
-
easieste@macports.org