Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/
Date: Thu, 25 Aug 2016 18:13:17
Message-Id: 1472148695.2b633f72bcc0ea57e51c152dff2138552982a2ed.blueness@gentoo
1 commit: 2b633f72bcc0ea57e51c152dff2138552982a2ed
2 Author: Marc Popp <Marc.Popp <AT> sunny-computing <DOT> de>
3 AuthorDate: Thu Aug 25 16:47:48 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 18:11:35 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b633f72
7
8 net-p2p/litecoind: Version Bump to 0.10.4.0, bug #592100
9
10 net-p2p/litecoind/Manifest | 1 +
11 net-p2p/litecoind/litecoind-0.10.4.0.ebuild | 103 ++++++++++++++++++++++++++++
12 2 files changed, 104 insertions(+)
13
14 diff --git a/net-p2p/litecoind/Manifest b/net-p2p/litecoind/Manifest
15 index 992235c..a1d9c8d 100644
16 --- a/net-p2p/litecoind/Manifest
17 +++ b/net-p2p/litecoind/Manifest
18 @@ -1 +1,2 @@
19 DIST litecoin-0.10.2.2.tar.gz 4700783 SHA256 952c84b181323db17a8fa23217f59b576ad3ebad92c158b3a7c29d458a1130dc SHA512 46e4c014ae8527dd58af073bab96ea4fd55c69fcc63eaa4fd600bf3c1fc2102500151b49431a72b55334a409d4f5226937cd0c5337feaa4ad49e6ef9e9728aba WHIRLPOOL 5c1d5605d4afb16744fcf0b09dd52eb574aea0cdd9754f94d4cfd9ac064491a0e192d8c4b1a3324e355d71758735265b272dfa41f938212e17badb9f8a70698b
20 +DIST litecoin-0.10.4.0.tar.gz 4730189 SHA256 a9adb6d2ae555afdaa2a5febb81341ac506930cf04ab95b9dc3ab99a4de0405e SHA512 ae17e754d188efb1b51a376a52fe03e43b58c5059673b7dd4ecbf4f48574290b84011525fef2e10893f53e4da3d6ad9b5577001bb40aef7080d4c2479f4714a9 WHIRLPOOL 21737a593390cd8ef41e5adb77e6cd5ccb886bdbc8d2ea96078bac99ffab5c95347cd86f1e9047b5ee528a112bfe3ae0e5ef5be3498b7aa36ec169bdfdaf4818
21
22 diff --git a/net-p2p/litecoind/litecoind-0.10.4.0.ebuild b/net-p2p/litecoind/litecoind-0.10.4.0.ebuild
23 new file mode 100644
24 index 00000000..283321c
25 --- /dev/null
26 +++ b/net-p2p/litecoind/litecoind-0.10.4.0.ebuild
27 @@ -0,0 +1,103 @@
28 +# Copyright 1999-2016 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +EAPI=5
33 +
34 +DB_VER="4.8"
35 +
36 +inherit autotools db-use eutils flag-o-matic systemd user
37 +
38 +MyPV="${PV/_/-}"
39 +MyPN="litecoin"
40 +MyP="${MyPN}-${MyPV}"
41 +
42 +DESCRIPTION="Litecoin is a peer-to-peer Internet currency that enables instant, near-zero cost payments to anyone in the world. It's based on Bitcoin and not so widely adapted."
43 +HOMEPAGE="https://litecoin.org/"
44 +SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyP}.tar.gz"
45 +
46 +LICENSE="MIT ISC GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="logrotate upnp +wallet"
50 +
51 +RDEPEND="
52 + dev-libs/boost[threads(+)]
53 + dev-libs/openssl:0[-bindist]
54 + logrotate? ( app-admin/logrotate )
55 + upnp? ( net-libs/miniupnpc )
56 + sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
57 + >=dev-libs/leveldb-1.18-r1
58 +"
59 +DEPEND="${RDEPEND}
60 + >=app-shells/bash-4.1
61 + sys-apps/sed
62 +"
63 +
64 +S="${WORKDIR}/${MyP}"
65 +
66 +pkg_setup() {
67 + local UG='litecoin'
68 + enewgroup "${UG}"
69 + enewuser "${UG}" -1 -1 /var/lib/litecoin "${UG}"
70 +}
71 +
72 +src_prepare() {
73 + epatch "${FILESDIR}"/0.9.0-sys_leveldb.patch
74 + epatch "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
75 + epatch "${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch
76 + eautoreconf
77 + rm -r src/leveldb
78 +}
79 +
80 +src_configure() {
81 + # To avoid executable GNU stack.
82 + append-ldflags -Wl,-z,noexecstack
83 +
84 + local my_econf=
85 + if use upnp; then
86 + my_econf="${my_econf} --with-miniupnpc --enable-upnp-default"
87 + else
88 + my_econf="${my_econf} --without-miniupnpc --disable-upnp-default"
89 + fi
90 + econf \
91 + $(use_enable wallet)\
92 + --disable-ccache \
93 + --disable-static \
94 + --disable-tests \
95 + --with-system-leveldb \
96 + --with-system-libsecp256k1 \
97 + --without-libs \
98 + --with-daemon \
99 + --without-gui \
100 + --without-qrencode \
101 + ${my_econf}
102 +}
103 +
104 +src_install() {
105 + default
106 +
107 + insinto /etc/litecoin
108 + doins "${FILESDIR}/litecoin.conf"
109 + fowners litecoin:litecoin /etc/litecoin/litecoin.conf
110 + fperms 600 /etc/litecoin/litecoin.conf
111 +
112 + newconfd "${FILESDIR}/litecoin.confd" ${PN}
113 + newinitd "${FILESDIR}/litecoin.initd-r1" ${PN}
114 + systemd_dounit "${FILESDIR}/litecoin.service"
115 +
116 + keepdir /var/lib/litecoin/.litecoin
117 + fperms 700 /var/lib/litecoin
118 + fowners litecoin:litecoin /var/lib/litecoin/
119 + fowners litecoin:litecoin /var/lib/litecoin/.litecoin
120 + dosym /etc/litecoin/litecoin.conf /var/lib/litecoin/.litecoin/litecoin.conf
121 +
122 + dodoc doc/README.md doc/release-notes.md
123 + newman contrib/debian/manpages/bitcoind.1 litecoind.1
124 + newman contrib/debian/manpages/bitcoin.conf.5 litecoin.conf.5
125 +
126 + if use logrotate; then
127 + insinto /etc/logrotate.d
128 + newins "${FILESDIR}/litecoind.logrotate" litecoind
129 + fi
130 +}