Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libdnet/
Date: Sun, 02 Aug 2020 15:07:05
Message-Id: 1596380815.69148bea9bf3a7877ae74e2662b47e47b151f5d0.jer@gentoo
1 commit: 69148bea9bf3a7877ae74e2662b47e47b151f5d0
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 2 14:43:48 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 2 15:06:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69148bea
7
8 dev-libs/libdnet: Add live ebuild
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 dev-libs/libdnet/libdnet-9999.ebuild | 73 ++++++++++++++++++++++++++++++++++++
14 1 file changed, 73 insertions(+)
15
16 diff --git a/dev-libs/libdnet/libdnet-9999.ebuild b/dev-libs/libdnet/libdnet-9999.ebuild
17 new file mode 100644
18 index 00000000000..3878f74646e
19 --- /dev/null
20 +++ b/dev-libs/libdnet/libdnet-9999.ebuild
21 @@ -0,0 +1,73 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +AT_M4DIR="config"
27 +PYTHON_COMPAT=( python3_{6,7,8} )
28 +DISTUTILS_OPTIONAL=1
29 +inherit autotools distutils-r1 git-r3
30 +
31 +DESCRIPTION="simplified, portable interface to several low-level networking routines"
32 +HOMEPAGE="https://github.com/ofalk/libdnet"
33 +EGIT_REPO_URI="https://github.com/ofalk/libdnet"
34 +LICENSE="LGPL-2"
35 +
36 +SLOT="0"
37 +KEYWORDS=""
38 +IUSE="python static-libs test"
39 +
40 +DEPEND="
41 + python? ( ${PYTHON_DEPS} )
42 +"
43 +RDEPEND="
44 + ${DEPEND}
45 +"
46 +RESTRICT="test"
47 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
48 +DOCS=( README.md THANKS TODO )
49 +
50 +src_prepare() {
51 + default
52 +
53 + sed -i \
54 + -e 's/libcheck.a/libcheck.so/g' \
55 + -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
56 + configure.ac || die
57 + sed -i \
58 + -e 's|-L$libdir ||g' \
59 + dnet-config.in || die
60 + sed -i \
61 + -e '/^SUBDIRS/s|python||g' \
62 + Makefile.am || die
63 +
64 + eautoreconf
65 +
66 + if use python; then
67 + cd python
68 + distutils-r1_src_prepare
69 + fi
70 +}
71 +
72 +src_configure() {
73 + econf \
74 + $(use_with python) \
75 + $(use_enable static-libs static)
76 +}
77 +
78 +src_compile() {
79 + default
80 + if use python; then
81 + cd python
82 + distutils-r1_src_compile
83 + fi
84 +}
85 +
86 +src_install() {
87 + default
88 + if use python; then
89 + cd python
90 + unset DOCS
91 + distutils-r1_src_install
92 + fi
93 + find "${D}" -name '*.la' -delete || die
94 +}