Diff libdnet-1.12 with a libdnet-1.12-r1

/usr/portage/dev-libs/libdnet/libdnet-1.12-r1.ebuild 2020-02-11 20:51:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=7
5 5

  
6 6
AT_M4DIR="config"
7 7
PYTHON_COMPAT=( python2_7 )
8 8
DISTUTILS_OPTIONAL=1
9

  
10
inherit autotools distutils-r1 eutils ltprune
9
inherit autotools distutils-r1
11 10

  
12 11
DESCRIPTION="simplified, portable interface to several low-level networking routines"
13 12
HOMEPAGE="https://github.com/dugsong/libdnet"
14
SRC_URI="https://libdnet.googlecode.com/files/${P}.tgz
15
	ipv6? ( https://fragroute-ipv6.googlecode.com/files/${P}.ipv6-1.patch.gz )"
16

  
13
SRC_URI="
14
	https://github.com/dugsong/libdnet/archive/${P}.tar.gz
15
	ipv6? ( https://fragroute-ipv6.googlecode.com/files/${P}.ipv6-1.patch.gz )
16
"
17 17
LICENSE="LGPL-2"
18

  
18 19
SLOT="0"
19
KEYWORDS="~alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
20
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
20 21
IUSE="ipv6 python static-libs test"
21 22

  
22
#DEPEND="test? ( dev-libs/check )"
23
DEPEND="python? ( ${PYTHON_DEPS} )"
24
RDEPEND="${DEPEND}"
23
DEPEND="
24
	python? ( ${PYTHON_DEPS} )
25
"
26
RDEPEND="
27
	${DEPEND}
28
"
25 29
RESTRICT="test"
26 30
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
27

  
28 31
DOCS=( README THANKS TODO )
32
S=${WORKDIR}/${PN}-${P}
29 33

  
30 34
src_prepare() {
31 35
	# Useless copy
......
36 40
		-e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
37 41
		configure.in || die
38 42
	sed -i -e 's|-L@libdir@ ||g' dnet-config.in || die
39
	use ipv6 && epatch "${WORKDIR}/${P}.ipv6-1.patch"
43
	use ipv6 && eapply "${WORKDIR}/${P}.ipv6-1.patch"
40 44
	sed -i -e '/^SUBDIRS/s|python||g' Makefile.am || die
41 45
	eautoreconf
46

  
42 47
	if use python; then
43 48
		cd python
44 49
		distutils-r1_src_prepare
45 50
	fi
51

  
52
	eapply_user
46 53
}
47 54

  
48 55
src_configure() {
......
66 73
		unset DOCS
67 74
		distutils-r1_src_install
68 75
	fi
69
	prune_libtool_files
76
	find "${D}" -name '*.la' -delete || die
70 77
}
Thank you!