Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/
Date: Sat, 17 Apr 2021 19:20:34
Message-Id: 1618687173.7e696b56897a2e6f4cf587463aa682de025fe8f2.conikost@gentoo
1 commit: 7e696b56897a2e6f4cf587463aa682de025fe8f2
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 17 18:45:26 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 17 19:19:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e696b56
7
8 net-p2p/litecoind: migrate to glep 81
9
10 Closes: https://bugs.gentoo.org/781449
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild | 108 +++++++++++++++++++++++++
15 1 file changed, 108 insertions(+)
16
17 diff --git a/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild b/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..47158fa5e56
20 --- /dev/null
21 +++ b/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild
22 @@ -0,0 +1,108 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +DB_VER="4.8"
29 +
30 +inherit autotools db-use flag-o-matic systemd
31 +
32 +MY_PV="${PV/_/-}"
33 +MY_PN="litecoin"
34 +MY_P="${MY_PN}-${MY_PV}"
35 +
36 +DESCRIPTION="The offical daemon to run your own (full) Litecoin node"
37 +HOMEPAGE="https://litecoin.org/"
38 +SRC_URI="https://github.com/${MY_PN}-project/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
39 +S="${WORKDIR}/${MY_P}"
40 +
41 +LICENSE="MIT ISC GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="logrotate upnp +wallet"
45 +
46 +RDEPEND="
47 + acct-group/litecoin
48 + acct-user/litecoin
49 + dev-libs/boost:=[threads(+)]
50 + dev-libs/leveldb:=
51 + dev-libs/openssl:0[-bindist]
52 + sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
53 + logrotate? ( app-admin/logrotate )
54 + upnp? ( net-libs/miniupnpc )
55 +"
56 +DEPEND="
57 + ${RDEPEND}
58 + >=app-shells/bash-4.1
59 + sys-apps/sed
60 +"
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/0.9.0-sys_leveldb.patch
64 + "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
65 + "${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch
66 + "${FILESDIR}"/${P}-gcc6.patch
67 +)
68 +
69 +src_prepare() {
70 + default
71 +
72 + eautoreconf
73 + rm -r src/leveldb
74 +}
75 +
76 +src_configure() {
77 + # To avoid executable GNU stack.
78 + append-ldflags -Wl,-z,noexecstack
79 +
80 + local my_econf=
81 + if use upnp; then
82 + my_econf="${my_econf} --with-miniupnpc --enable-upnp-default"
83 + else
84 + my_econf="${my_econf} --without-miniupnpc --disable-upnp-default"
85 + fi
86 +
87 + local myeconfargs=(
88 + $(use_enable wallet)
89 + --disable-ccache
90 + --disable-static
91 + --disable-tests
92 + --with-system-leveldb
93 + --with-system-libsecp256k1
94 + --without-libs
95 + --with-daemon
96 + --without-gui
97 + --without-qrencode
98 + ${my_econf}
99 + )
100 +
101 + econf "${myeconfargs[@]}"
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 +}