diff options
author | 2007-08-26 16:12:12 +0000 | |
---|---|---|
committer | 2007-08-26 16:12:12 +0000 | |
commit | af3ada7de2538c1e5940050dad2030811b8e4ab6 (patch) | |
tree | 5de2693012a305794387a8cb97c14b8f961a6427 /net-dialup/pppconfig/pppconfig-2.3.17-r1.ebuild | |
parent | Fixing the LOAD_MODULE replacement (as reported in #189916 thanks to Marius K... (diff) | |
download | historical-af3ada7de2538c1e5940050dad2030811b8e4ab6.tar.gz historical-af3ada7de2538c1e5940050dad2030811b8e4ab6.tar.bz2 historical-af3ada7de2538c1e5940050dad2030811b8e4ab6.zip |
Fix man page installation (#190185).
Package-Manager: portage-2.1.2.12
Diffstat (limited to 'net-dialup/pppconfig/pppconfig-2.3.17-r1.ebuild')
-rw-r--r-- | net-dialup/pppconfig/pppconfig-2.3.17-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-dialup/pppconfig/pppconfig-2.3.17-r1.ebuild b/net-dialup/pppconfig/pppconfig-2.3.17-r1.ebuild new file mode 100644 index 000000000000..e5dc0cbd0681 --- /dev/null +++ b/net-dialup/pppconfig/pppconfig-2.3.17-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/pppconfig/pppconfig-2.3.17-r1.ebuild,v 1.1 2007/08/26 16:12:12 mrness Exp $ + +DESCRIPTION="A text menu based utility for configuring ppp." +SRC_URI="http://http.us.debian.org/debian/pool/main/p/pppconfig/${PN}_${PV}.tar.gz" +HOMEPAGE="http://http.us.debian.org/debian/pool/main/p/pppconfig/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 ~ppc ~x86" +IUSE="nls" + +RDEPEND="net-dialup/ppp + dev-util/dialog + dev-lang/perl" +DEPEND="nls? ( sys-devel/gettext )" + +# Supported languages and translated documentation +# Be sure all languages are prefixed with a single space! +MY_AVAILABLE_LINGUAS=" ca cs da de el es eu fi fr gl he id it ja ko lt nb nl nn pt_BR pt ro ru sk sv tl tr vi zh_CN zh_TW" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +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 + cd "${S}/po" + local MY_LINGUAS="" lang + + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if use linguas_${lang} ; then + MY_LINGUAS="${MY_LINGUAS} ${lang}" + fi + done + if [[ -z "${MY_LINGUAS}" ]] ; then + #If no language is selected, install 'em all + MY_LINGUAS="${MY_AVAILABLE_LINGUAS}" + fi + + einfo "Locale messages will be installed for following languages:" + einfo " ${MY_LINGUAS}" + + for lang in ${MY_LINGUAS}; do + msgfmt -o ${lang}.mo ${lang}.po && \ + insinto /usr/share/locale/${lang}/LC_MESSAGES && \ + newins ${lang}.mo pppconfig.mo || \ + die "failed to install locale messages for ${lang} language" + done + fi +} |