Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/primecoind: primecoind-0.1.2.ebuild ChangeLog metadata.xml
Date: Sun, 01 Dec 2013 15:20:52
Message-Id: 20131201152047.312D82004E@flycatcher.gentoo.org
1 blueness 13/12/01 15:20:47
2
3 Added: primecoind-0.1.2.ebuild ChangeLog metadata.xml
4 Log:
5 Initial commit
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
8
9 Revision Changes Path
10 1.1 net-p2p/primecoind/primecoind-0.1.2.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/primecoind/primecoind-0.1.2.ebuild?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/primecoind/primecoind-0.1.2.ebuild?rev=1.1&content-type=text/plain
14
15 Index: primecoind-0.1.2.ebuild
16 ===================================================================
17 # Copyright 1999-2013 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/net-p2p/primecoind/primecoind-0.1.2.ebuild,v 1.1 2013/12/01 15:20:47 blueness Exp $
20
21 EAPI=5
22
23 DB_VER="4.8"
24
25 inherit bash-completion-r1 db-use eutils systemd
26
27 MyPV="${PV/_/-}"
28 MyPN="primecoin"
29 MyP="${MyPN}-${MyPV}"
30
31 DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine."
32 HOMEPAGE="http://primecoin.org/"
33 SRC_URI="mirror://sourceforge/${MyPN}/${MyP}-linux.tar.gz -> ${MyP}.tar.gz"
34
35 LICENSE="MIT ISC GPL-2"
36 SLOT="0"
37 KEYWORDS="~amd64 ~x86"
38 IUSE="bash-completion examples ipv6 logrotate upnp"
39
40 RDEPEND="
41 dev-libs/boost[threads(+)]
42 dev-libs/openssl:0[-bindist]
43 logrotate? (
44 app-admin/logrotate
45 )
46 upnp? (
47 net-libs/miniupnpc
48 )
49 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
50 <=dev-libs/leveldb-1.12.0[-snappy]
51 "
52 DEPEND="${RDEPEND}
53 >=app-shells/bash-4.1
54 sys-apps/sed
55 "
56
57 S="${WORKDIR}/${MyP}-linux/src"
58
59 pkg_setup() {
60 local UG='primecoin'
61 enewgroup "${UG}"
62 enewuser "${UG}" -1 -1 /var/lib/primecoin "${UG}"
63 }
64
65 src_prepare() {
66 epatch "${FILESDIR}"/${MyPN}-sys_leveldb.patch
67 rm -r src/leveldb
68
69 if has_version '>=dev-libs/boost-1.52'; then
70 sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix
71 fi
72 }
73
74 src_configure() {
75 OPTS=()
76
77 OPTS+=("DEBUGFLAGS=")
78 OPTS+=("CXXFLAGS=${CXXFLAGS}")
79 OPTS+=("LDFLAGS=${LDFLAGS}")
80
81 if use upnp; then
82 OPTS+=("USE_UPNP=1")
83 else
84 OPTS+=("USE_UPNP=-")
85 fi
86
87 use ipv6 || OPTS+=("USE_IPV6=-")
88
89 OPTS+=("USE_SYSTEM_LEVELDB=1")
90 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
91 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
92
93 cd src || die
94 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN}
95 }
96
97 #Tests are broken with and without our primecoin-sys_leveldb.patch.
98 #When tests work, make sure to inherit toolchain-funcs
99 #src_test() {
100 # cd src || die
101 # emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_primecoin
102 # ./test_primecoin || die 'Tests failed'
103 #}
104
105 src_install() {
106 dobin src/${PN}
107
108 insinto /etc/primecoin
109 doins "${FILESDIR}/primecoin.conf"
110 fowners primecoin:primecoin /etc/primecoin/primecoin.conf
111 fperms 600 /etc/primecoin/primecoin.conf
112
113 newconfd "${FILESDIR}/primecoin.confd" ${PN}
114 newinitd "${FILESDIR}/primecoin.initd" ${PN}
115 systemd_dounit "${FILESDIR}/primecoin.service"
116
117 keepdir /var/lib/primecoin/.primecoin
118 fperms 700 /var/lib/primecoin
119 fowners primecoin:primecoin /var/lib/primecoin/
120 fowners primecoin:primecoin /var/lib/primecoin/.primecoin
121 dosym /etc/primecoin/primecoin.conf /var/lib/primecoin/.primecoin/primecoin.conf
122
123 dodoc doc/README.md doc/release-notes.md
124 newman contrib/debian/manpages/bitcoind.1 primecoind.1
125 newman contrib/debian/manpages/bitcoin.conf.5 primecoin.conf.5
126
127 if use bash-completion; then
128 newbashcomp contrib/bitcoind.bash-completion ${PN}.bash-completion
129 fi
130
131 if use examples; then
132 docinto examples
133 dodoc -r contrib/{bitrpc,pyminer,spendfrom,tidy_datadir.sh,wallettools}
134 fi
135
136 if use logrotate; then
137 insinto /etc/logrotate.d
138 newins "${FILESDIR}/primecoind.logrotate" primecoind
139 fi
140 }
141
142
143
144 1.1 net-p2p/primecoind/ChangeLog
145
146 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/primecoind/ChangeLog?rev=1.1&view=markup
147 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/primecoind/ChangeLog?rev=1.1&content-type=text/plain
148
149 Index: ChangeLog
150 ===================================================================
151 # ChangeLog for net-p2p/primecoind
152 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
153 # $Header: /var/cvsroot/gentoo-x86/net-p2p/primecoind/ChangeLog,v 1.1 2013/12/01 15:20:47 blueness Exp $
154
155 *primecoind-0.1.2 (01 Dec 2013)
156
157 01 Dec 2013; Anthony G. Basile <blueness@g.o>
158 +primecoind-0.1.2.ebuild, +files/primecoin.conf, +files/primecoin.confd,
159 +files/primecoin.initd, +files/primecoin.service,
160 +files/primecoin-sys_leveldb.patch, +files/primecoind.logrotate,
161 +metadata.xml:
162 Initial commit
163
164
165
166
167 1.1 net-p2p/primecoind/metadata.xml
168
169 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/primecoind/metadata.xml?rev=1.1&view=markup
170 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/primecoind/metadata.xml?rev=1.1&content-type=text/plain
171
172 Index: metadata.xml
173 ===================================================================
174 <?xml version="1.0" encoding="UTF-8"?>
175 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
176 <pkgmetadata>
177 <maintainer>
178 <email>blueness@g.o</email>
179 <name>Anthony G. Basile</name>
180 </maintainer>
181 <use>
182 <flag name='logrotate'>Use app-admin/logrotate for rotating logs</flag>
183 </use>
184 </pkgmetadata>