blob: b2560f286d532f3e28cb14b6a6a0c2e2977b2435 (
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
55
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit strip-linguas
DESCRIPTION="A text menu based utility for configuring ppp"
HOMEPAGE="https://packages.qa.debian.org/p/pppconfig.html"
SRC_URI="mirror://debian/pool/main/p/${PN}/${P/-/_}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"
IUSE="nls"
RDEPEND="
net-dialup/ppp
dev-util/dialog
dev-lang/perl"
BDEPEND="nls? ( sys-devel/gettext )"
src_prepare() {
default
use nls && strip-linguas -i po/
}
src_compile() {
default
if use nls; then
local lang
for lang in ${LINGUAS}; do
msgfmt -o po/${lang}.{m,p}o || die
done
fi
}
src_install() {
dodir /etc/chatscripts /etc/ppp/resolv
dosbin 0dns-down 0dns-up dns-clean
newsbin pppconfig pppconfig.real
dosbin "${FILESDIR}/pppconfig"
doman man/pppconfig.8
dodoc debian/{copyright,changelog}
if use nls; then
local lang
for lang in ${LINGUAS}; do
insinto /usr/share/locale/${lang}/LC_MESSAGES
newins po/${lang}.mo pppconfig.mo
done
fi
}
|