diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-11-25 19:20:46 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-11-25 19:21:16 +0100 |
commit | b4f502cdf61882c97a98a8c6ade065a2aa834a48 (patch) | |
tree | 5653be62ca9207b8cba391ba68b3e66bb79d268e /net-dialup/pppconfig/pppconfig-2.3.25.ebuild | |
parent | dev-scheme/chez: inherit toolchain-funcs instead of multilib (diff) | |
download | gentoo-b4f502cdf61882c97a98a8c6ade065a2aa834a48.tar.gz gentoo-b4f502cdf61882c97a98a8c6ade065a2aa834a48.tar.bz2 gentoo-b4f502cdf61882c97a98a8c6ade065a2aa834a48.zip |
net-dialup/pppconfig: add 2.3.25
Bug: https://bugs.gentoo.org/819360
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-dialup/pppconfig/pppconfig-2.3.25.ebuild')
-rw-r--r-- | net-dialup/pppconfig/pppconfig-2.3.25.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-dialup/pppconfig/pppconfig-2.3.25.ebuild b/net-dialup/pppconfig/pppconfig-2.3.25.ebuild new file mode 100644 index 000000000000..5816bbea39c4 --- /dev/null +++ b/net-dialup/pppconfig/pppconfig-2.3.25.ebuild @@ -0,0 +1,56 @@ +# 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://tracker.debian.org/pkg/pppconfig" +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 + + if use nls; then + strip-linguas -i po/ + fi +} + +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() { + keepdir /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 +} |