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