1 |
commit: ba28ca612d29d200a6a2df8b0eba97bb57075505 |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 21 20:00:00 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 26 20:58:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba28ca61 |
7 |
|
8 |
net-p2p/ppcoind: Update to use EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/4691 |
12 |
|
13 |
.../ppcoind/files/ppcoind-0.4.0-boost_chrono.patch | 10 ++ |
14 |
net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild | 116 +++++++++++++++++++++ |
15 |
2 files changed, 126 insertions(+) |
16 |
|
17 |
diff --git a/net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch b/net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..390d5c7c94b |
20 |
--- /dev/null |
21 |
+++ b/net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch |
22 |
@@ -0,0 +1,10 @@ |
23 |
+--- a/src/makefile.unix |
24 |
++++ b/src/makefile.unix |
25 |
+@@ -30,6 +30,7 @@ |
26 |
+ -l boost_filesystem$(BOOST_LIB_SUFFIX) \ |
27 |
+ -l boost_program_options$(BOOST_LIB_SUFFIX) \ |
28 |
+ -l boost_thread$(BOOST_LIB_SUFFIX) \ |
29 |
++ -l boost_chrono$(BOOST_LIB_SUFFIX) \ |
30 |
+ -l db_cxx$(BDB_LIB_SUFFIX) \ |
31 |
+ -l ssl \ |
32 |
+ -l crypto |
33 |
|
34 |
diff --git a/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild b/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..1a5131498ab |
37 |
--- /dev/null |
38 |
+++ b/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild |
39 |
@@ -0,0 +1,116 @@ |
40 |
+# Copyright 1999-2017 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=6 |
44 |
+ |
45 |
+DB_VER="4.8" |
46 |
+ |
47 |
+inherit db-use eutils systemd user |
48 |
+ |
49 |
+MyPV="${PV/_/-}" |
50 |
+MyPN="ppcoin" |
51 |
+MyP="${MyPN}-${MyPV}" |
52 |
+ |
53 |
+DESCRIPTION="Cryptocurrency forked from Bitcoin which aims to be energy efficiency" |
54 |
+HOMEPAGE="http://peercoin.net/" |
55 |
+SRC_URI="mirror://sourceforge/${MyPN}/${MyP}-linux.tar.gz -> ${MyP}.tar.gz" |
56 |
+ |
57 |
+LICENSE="MIT ISC GPL-2" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~x86" |
60 |
+IUSE="examples ipv6 logrotate upnp" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ dev-libs/boost:=[threads(+)] |
64 |
+ dev-libs/openssl:0[-bindist] |
65 |
+ logrotate? ( |
66 |
+ app-admin/logrotate |
67 |
+ ) |
68 |
+ upnp? ( |
69 |
+ net-libs/miniupnpc |
70 |
+ ) |
71 |
+ sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] |
72 |
+" |
73 |
+DEPEND="${RDEPEND} |
74 |
+ >=app-shells/bash-4.1 |
75 |
+ sys-apps/sed |
76 |
+" |
77 |
+ |
78 |
+DOCS=( ../README README.md ) |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}"/${P}-gcc6.patch |
82 |
+ "${FILESDIR}"/${P}-boost_chrono.patch |
83 |
+) |
84 |
+ |
85 |
+S="${WORKDIR}/${MyP}-linux/src" |
86 |
+ |
87 |
+pkg_setup() { |
88 |
+ local UG='ppcoin' |
89 |
+ enewgroup "${UG}" |
90 |
+ enewuser "${UG}" -1 -1 /var/lib/ppcoin "${UG}" |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ OPTS=() |
95 |
+ |
96 |
+ OPTS+=("DEBUGFLAGS=") |
97 |
+ OPTS+=("CXXFLAGS=${CXXFLAGS}") |
98 |
+ OPTS+=("LDFLAGS=${LDFLAGS}") |
99 |
+ |
100 |
+ if use upnp; then |
101 |
+ OPTS+=("USE_UPNP=1") |
102 |
+ else |
103 |
+ OPTS+=("USE_UPNP=-") |
104 |
+ fi |
105 |
+ |
106 |
+ use ipv6 || OPTS+=("USE_IPV6=-") |
107 |
+ |
108 |
+ OPTS+=("USE_SYSTEM_LEVELDB=1") |
109 |
+ OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
110 |
+ OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
111 |
+ |
112 |
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -C src -f makefile.unix "${OPTS[@]}" ${PN} |
113 |
+} |
114 |
+ |
115 |
+#Tests are broken |
116 |
+#src_test() { |
117 |
+# cd src || die |
118 |
+# emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_ppcoin |
119 |
+# ./test_ppcoin || die 'Tests failed' |
120 |
+#} |
121 |
+ |
122 |
+src_install() { |
123 |
+ dobin src/${PN} |
124 |
+ |
125 |
+ insinto /etc/ppcoin |
126 |
+ doins "${FILESDIR}/ppcoin.conf" |
127 |
+ fowners ppcoin:ppcoin /etc/ppcoin/ppcoin.conf |
128 |
+ fperms 600 /etc/ppcoin/ppcoin.conf |
129 |
+ |
130 |
+ newconfd "${FILESDIR}/ppcoin.confd" ${PN} |
131 |
+ newinitd "${FILESDIR}/ppcoin.initd-r1" ${PN} |
132 |
+ systemd_dounit "${FILESDIR}/ppcoin.service" |
133 |
+ |
134 |
+ keepdir /var/lib/ppcoin/.ppcoin |
135 |
+ fperms 700 /var/lib/ppcoin |
136 |
+ fowners ppcoin:ppcoin /var/lib/ppcoin/ |
137 |
+ fowners ppcoin:ppcoin /var/lib/ppcoin/.ppcoin |
138 |
+ dosym /etc/ppcoin/ppcoin.conf /var/lib/ppcoin/.ppcoin/ppcoin.conf |
139 |
+ |
140 |
+ newman contrib/debian/manpages/bitcoind.1 ppcoind.1 |
141 |
+ newman contrib/debian/manpages/bitcoin.conf.5 ppcoin.conf.5 |
142 |
+ |
143 |
+ einstalldocs |
144 |
+ |
145 |
+ if use examples; then |
146 |
+ docinto examples |
147 |
+ dodoc -r contrib/{bitrpc,gitian-descriptors,gitian-downloader,pyminer,wallettools} |
148 |
+ |
149 |
+ fi |
150 |
+ |
151 |
+ if use logrotate; then |
152 |
+ insinto /etc/logrotate.d |
153 |
+ newins "${FILESDIR}/ppcoind.logrotate" ppcoind |
154 |
+ fi |
155 |
+} |