blob: 7ee4c29b053cfdb87d1f58a9b937b295898363d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Tiny program like wget, to upload files/whole directories via FTP"
HOMEPAGE="http://wput.sourceforge.net/"
if [[ ${PV} == *_p* ]] ; then
MY_PV=$(ver_cut 1-3)
SRC_URI=" mirror://debian/pool/main/w/wput/wput_${MY_PV}+git$(ver_cut 5).orig.tar.bz2"
SRC_URI+=" mirror://debian/pool/main/w/wput/wput_${MY_PV}+git$(ver_cut 5)-$(ver_cut 7).debian.tar.xz"
S="${WORKDIR}"/${PN}-${MY_PV}+git$(ver_cut 5)
else
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tgz"
fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc x86"
IUSE="debug ssl"
RDEPEND="ssl? ( net-libs/gnutls:= )"
DEPEND="${RDEPEND}"
# Debian's patches to fix spelling means need gettext to regenerate
# It's so common that it's not really worth the 'touch' dance to avoid it
# or conditional patching.
BDEPEND="sys-devel/gettext"
PATCHES=(
"${FILESDIR}"/${PN}-0.6.2_p20130413_p11-xopen_source-strdup.patch
"${FILESDIR}"/${PN}-0.6.2_p20130413_p11-no-compress-manpages.patch
)
src_prepare() {
eapply $(sed -e "s:^:${WORKDIR}/debian/patches/:" "${WORKDIR}"/debian/patches/series)
default
eautoreconf
}
src_configure() {
local myconf=(
--enable-g-switch=no
--enable-nls
$(usev debug '--enable-memdbg=yes')
$(use_with ssl)
)
econf "${myconf[@]}"
}
|