[117040] trunk/dports/finance/bitcoin
and.damore at macports.org
and.damore at macports.org
Thu Feb 13 12:12:33 PST 2014
Revision: 117040
https://trac.macports.org/changeset/117040
Author: and.damore at macports.org
Date: 2014-02-13 12:12:33 -0800 (Thu, 13 Feb 2014)
Log Message:
-----------
port bitcoin: fix building on 10.9, upgrade version to 0.8.6, change bitcoind path to bin rather than sbin, add patch for building 0.8.6
Modified Paths:
--------------
trunk/dports/finance/bitcoin/Portfile
Added Paths:
-----------
trunk/dports/finance/bitcoin/files/
trunk/dports/finance/bitcoin/files/patch_src_src_serialize_h.diff
Modified: trunk/dports/finance/bitcoin/Portfile
===================================================================
--- trunk/dports/finance/bitcoin/Portfile 2014-02-13 17:44:30 UTC (rev 117039)
+++ trunk/dports/finance/bitcoin/Portfile 2014-02-13 20:12:33 UTC (rev 117040)
@@ -4,8 +4,7 @@
PortSystem 1.0
name bitcoin
categories finance crypto
-version 0.8.5
-revision 0
+version 0.8.6
platforms darwin
license MIT
maintainers yopmail.com:sami.laine easieste openmaintainer
@@ -18,9 +17,9 @@
homepage http://www.bitcoin.org/
master_sites sourceforge
distname ${name}-${version}-linux
-checksums md5 df456ff0bd037657d5de640715e740c8 \
- sha1 f2cb0c55633cab822fb7024357aac17cf5de2b3a \
- rmd160 82e99dc536a942102b5909580aa1b3cf2da0e3e0
+checksums md5 4c24497a3c88adf1ef9855efaf31cf87 \
+ sha1 a95b20338a14bb6aa379285828fb0a13b9f6c0e4 \
+ rmd160 7a1e4055a6e77cfaafab2f92ea0400238ea8a256
depends_lib port:boost \
port:openssl \
@@ -34,12 +33,20 @@
PortGroup qmake 1.0
}
+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
@@ -48,11 +55,14 @@
Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt \
${destroot}${prefix}/bin/bitcoin-qt
}
- xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/sbin
+ xinstall -m 755 -W ${worksrcpath} src/bitcoind ${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
}
variant daemon description {Build and install only the bitcoind daemon} {
Added: trunk/dports/finance/bitcoin/files/patch_src_src_serialize_h.diff
===================================================================
--- trunk/dports/finance/bitcoin/files/patch_src_src_serialize_h.diff (rev 0)
+++ trunk/dports/finance/bitcoin/files/patch_src_src_serialize_h.diff 2014-02-13 20:12:33 UTC (rev 117040)
@@ -0,0 +1,22 @@
+--- src/serialize.h.orig 2014-02-13 19:17:19.000000000 +0100
++++ src/serialize.h 2014-02-13 19:19:00.000000000 +0100
+@@ -895,19 +895,6 @@
+ iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }
+ void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }
+
+- void insert(iterator it, const_iterator first, const_iterator last)
+- {
+- assert(last - first >= 0);
+- if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos)
+- {
+- // special case for inserting at the front when there's room
+- nReadPos -= (last - first);
+- memcpy(&vch[nReadPos], &first[0], last - first);
+- }
+- else
+- vch.insert(it, first, last);
+- }
+-
+ void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
+ {
+ assert(last - first >= 0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140213/f2bede0d/attachment.html>
More information about the macports-changes
mailing list