Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libdnet/
Date: Thu, 07 Jan 2021 04:10:27
Message-Id: 1609992395.5d964ed5ad7989e4075febd72d6e4083b80a3cf2.sam@gentoo
1 commit: 5d964ed5ad7989e4075febd72d6e4083b80a3cf2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 04:06:35 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 04:06:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d964ed5
7
8 dev-libs/libdnet: further style changes
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/libdnet/libdnet-1.14-r2.ebuild | 34 ++++++++++++++++++---------------
14 1 file changed, 19 insertions(+), 15 deletions(-)
15
16 diff --git a/dev-libs/libdnet/libdnet-1.14-r2.ebuild b/dev-libs/libdnet/libdnet-1.14-r2.ebuild
17 index 068ca755f13..f628dbd0b74 100644
18 --- a/dev-libs/libdnet/libdnet-1.14-r2.ebuild
19 +++ b/dev-libs/libdnet/libdnet-1.14-r2.ebuild
20 @@ -1,7 +1,8 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26 +
27 AT_M4DIR="config"
28 PYTHON_COMPAT=( python3_{6,7,8} )
29 DISTUTILS_OPTIONAL=1
30 @@ -10,27 +11,26 @@ inherit autotools distutils-r1
31 DESCRIPTION="simplified, portable interface to several low-level networking routines"
32 HOMEPAGE="https://github.com/ofalk/libdnet"
33 SRC_URI="https://github.com/ofalk/${PN}/archive/${P}.tar.gz"
34 -LICENSE="LGPL-2"
35 +S="${WORKDIR}/${PN}-${P}"
36
37 +LICENSE="LGPL-2"
38 SLOT="0"
39 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
40 IUSE="python test"
41 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
42
43 -DEPEND="
44 - python? ( ${PYTHON_DEPS} )
45 -"
46 -RDEPEND="
47 - ${DEPEND}
48 -"
49 +DEPEND="python? ( ${PYTHON_DEPS} )"
50 +RDEPEND="${DEPEND}"
51 BDEPEND="
52 python? (
53 dev-python/cython[${PYTHON_USEDEP}]
54 )
55 "
56 +
57 RESTRICT="test"
58 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
59 +
60 DOCS=( README.md THANKS )
61 -S="${WORKDIR}/${PN}-${P}"
62 +
63 PATCHES=(
64 "${FILESDIR}/${PN}-1.14-ndisc.patch"
65 "${FILESDIR}/${PN}-1.14-strlcpy.patch"
66 @@ -53,29 +53,33 @@ src_prepare() {
67 eautoreconf
68
69 if use python; then
70 - cd python
71 + cd python || die
72 distutils-r1_src_prepare
73 fi
74 }
75
76 src_configure() {
77 - econf --disable-static $(use_with python)
78 + econf \
79 + --disable-static \
80 + $(use_with python)
81 }
82
83 src_compile() {
84 default
85 if use python; then
86 - cd python
87 + cd python || die
88 distutils-r1_src_compile
89 fi
90 }
91
92 src_install() {
93 default
94 +
95 if use python; then
96 - cd python
97 + cd python || die
98 unset DOCS
99 distutils-r1_src_install
100 fi
101 - find "${D}" -name '*.la' -delete || die
102 +
103 + find "${ED}" -name '*.la' -delete || die
104 }