Сравнение wput-0.6.2 с wput-0.6.2_p20130413_p11

/usr/portage/net-misc/wput/wput-0.6.2_p20130413_p11.ebuild 2023-10-09 14:52:34.716368482 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5

  
6
inherit autotools
5 7

  
6 8
DESCRIPTION="Tiny program like wget, to upload files/whole directories via FTP"
7 9
HOMEPAGE="https://wput.sourceforge.net/"
8
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
10

  
11
if [[ ${PV} == *_p* ]] ; then
12
	MY_PV=$(ver_cut 1-3)
13
	SRC_URI=" mirror://debian/pool/main/w/wput/wput_${MY_PV}+git$(ver_cut 5).orig.tar.bz2"
14
	SRC_URI+=" mirror://debian/pool/main/w/wput/wput_${MY_PV}+git$(ver_cut 5)-$(ver_cut 7).debian.tar.xz"
15
	S="${WORKDIR}"/${PN}-${MY_PV}+git$(ver_cut 5)
16
else
17
	SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tgz"
18
fi
9 19

  
10 20
LICENSE="GPL-2+"
11 21
SLOT="0"
12 22
KEYWORDS="amd64 ppc ~sparc x86"
13
IUSE="debug nls ssl"
23
IUSE="debug ssl"
14 24

  
15
BDEPEND="nls? ( sys-devel/gettext )"
16
RDEPEND="ssl? ( net-libs/gnutls )"
25
RDEPEND="ssl? ( net-libs/gnutls:= )"
17 26
DEPEND="${RDEPEND}"
27
# Debian's patches to fix spelling means need gettext to regenerate
28
# It's so common that it's not really worth the 'touch' dance to avoid it
29
# or conditional patching.
30
BDEPEND="sys-devel/gettext"
18 31

  
19 32
PATCHES=(
20
	"${FILESDIR}/${PN}-0.6.2-respect-destdir.patch"
21
	"${FILESDIR}/${PN}-0.6-respectldflags.patch"
22
	"${FILESDIR}/${PN}-fix-crash.patch"
23
	"${FILESDIR}/${PN}-0.6.2-fno-common.patch"
33
	"${FILESDIR}"/${PN}-0.6.2_p20130413_p11-xopen_source-strdup.patch
34
	"${FILESDIR}"/${PN}-0.6.2_p20130413_p11-no-compress-manpages.patch
24 35
)
25 36

  
26
DOCS=( ChangeLog INSTALL TODO )
37
src_prepare() {
38
	eapply $(sed -e "s:^:${WORKDIR}/debian/patches/:" "${WORKDIR}"/debian/patches/series)
39
	default
40

  
41
	eautoreconf
42
}
27 43

  
28 44
src_configure() {
29
	local myconf="--enable-g-switch=no"
30
	use debug && myconf="--enable-memdbg=yes"
31
	econf \
32
		$(use_enable nls) \
33
		$(use_with ssl) \
34
		"${myconf}"
45
	local myconf=(
46
		--enable-g-switch=no
47
		--enable-nls
48

  
49
		$(usev debug '--enable-memdbg=yes')
50
		$(use_with ssl)
51
	)
52

  
53
	econf "${myconf[@]}"
35 54
}
Спасибо!