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.5.3_rc3.ebuild ChangeLog metadata.xml
Date: Sun, 01 Dec 2013 13:20:43
Message-Id: 20131201132037.3B7512004E@flycatcher.gentoo.org
1 blueness 13/12/01 13:20:37
2
3 Added: litecoind-0.8.5.3_rc3.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/litecoind/litecoind-0.8.5.3_rc3.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/litecoind-0.8.5.3_rc3.ebuild?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/litecoind-0.8.5.3_rc3.ebuild?rev=1.1&content-type=text/plain
14
15 Index: litecoind-0.8.5.3_rc3.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/litecoind/litecoind-0.8.5.3_rc3.ebuild,v 1.1 2013/12/01 13:20:37 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="litecoin"
29 MyP="${MyPN}-${MyPV}"
30
31 DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine."
32 HOMEPAGE="https://litecoin.org/"
33 SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.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}"
58
59 pkg_setup() {
60 local UG='litecoin'
61 enewgroup "${UG}"
62 enewuser "${UG}" -1 -1 /var/lib/litecoin "${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 litecoin-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_litecoin
102 # ./test_litecoin || die 'Tests failed'
103 #}
104
105 src_install() {
106 dobin src/${PN}
107
108 insinto /etc/litecoin
109 doins "${FILESDIR}/litecoin.conf"
110 fowners litecoin:litecoin /etc/litecoin/litecoin.conf
111 fperms 600 /etc/litecoin/litecoin.conf
112
113 newconfd "${FILESDIR}/litecoin.confd" ${PN}
114 newinitd "${FILESDIR}/litecoin.initd" ${PN}
115 systemd_dounit "${FILESDIR}/litecoin.service"
116
117 keepdir /var/lib/litecoin/.litecoin
118 fperms 700 /var/lib/litecoin
119 fowners litecoin:litecoin /var/lib/litecoin/
120 fowners litecoin:litecoin /var/lib/litecoin/.litecoin
121 dosym /etc/litecoin/litecoin.conf /var/lib/litecoin/.litecoin/litecoin.conf
122
123 dodoc doc/README.md doc/release-notes.md
124 newman contrib/debian/manpages/bitcoind.1 litecoind.1
125 newman contrib/debian/manpages/bitcoin.conf.5 litecoin.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}/litecoind.logrotate" litecoind
139 fi
140 }
141
142
143
144 1.1 net-p2p/litecoind/ChangeLog
145
146 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/ChangeLog?rev=1.1&view=markup
147 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/ChangeLog?rev=1.1&content-type=text/plain
148
149 Index: ChangeLog
150 ===================================================================
151 # ChangeLog for net-p2p/litecoind
152 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
153 # $Header: /var/cvsroot/gentoo-x86/net-p2p/litecoind/ChangeLog,v 1.1 2013/12/01 13:20:37 blueness Exp $
154
155 *litecoind-0.8.5.3_rc3 (01 Dec 2013)
156
157 01 Dec 2013; Anthony G. Basile <blueness@g.o>
158 +litecoind-0.8.5.3_rc3.ebuild, +files/litecoin.conf, +files/litecoin.confd,
159 +files/litecoin.initd, +files/litecoin.service,
160 +files/litecoin-sys_leveldb.patch, +files/litecoind.logrotate, +metadata.xml:
161 Initial commit
162
163
164
165
166 1.1 net-p2p/litecoind/metadata.xml
167
168 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/metadata.xml?rev=1.1&view=markup
169 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/metadata.xml?rev=1.1&content-type=text/plain
170
171 Index: metadata.xml
172 ===================================================================
173 <?xml version="1.0" encoding="UTF-8"?>
174 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
175 <pkgmetadata>
176 <maintainer>
177 <email>blueness@g.o</email>
178 <name>Anthony G. Basile</name>
179 </maintainer>
180 <use>
181 <flag name='logrotate'>Use app-admin/logrotate for rotating logs</flag>
182 </use>
183 </pkgmetadata>