/[gentoo-x86]/dev-util/debhelper/debhelper-9.20120528.ebuild
Gentoo

Contents of /dev-util/debhelper/debhelper-9.20120528.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue May 29 07:37:39 2012 UTC (2 years, 5 months ago) by jer
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

1 jer 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-util/debhelper/debhelper-9.20120523.ebuild,v 1.1 2012/05/24 05:28:37 jer Exp $
4    
5     EAPI=4
6     inherit eutils toolchain-funcs
7    
8     DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules"
9     HOMEPAGE="http://packages.qa.debian.org/d/debhelper.html http://kitenet.net/~joey/code/debhelper.html"
10     SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.gz"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~s390 ~sh ~sparc ~x86"
15     IUSE="nls linguas_de linguas_es linguas_fr test"
16    
17     RDEPEND="app-arch/dpkg
18     dev-perl/TimeDate
19     virtual/perl-Getopt-Long
20     >=dev-lang/perl-5.10"
21    
22     DEPEND="${RDEPEND}
23     nls? ( >=app-text/po4a-0.24 )
24     test? ( dev-perl/Test-Pod )"
25    
26     S=${WORKDIR}/${PN}
27    
28     src_prepare() {
29     epatch "${FILESDIR}"/${PN}-7.4.13-conditional-nls.patch
30     }
31    
32     src_compile() {
33     tc-export CC
34     local USE_NLS=no LANGS=""
35    
36     use nls && USE_NLS=yes
37    
38     use linguas_de && LANGS="${LANGS} de"
39     use linguas_es && LANGS="${LANGS} es"
40     use linguas_fr && LANGS="${LANGS} fr"
41    
42     emake USE_NLS=${USE_NLS} LANGS="${LANGS}" build
43     }
44    
45     src_install() {
46     default
47     dodoc doc/* debian/changelog
48     docinto examples
49     dodoc examples/*
50     for manfile in *.1 *.7 ; do
51     case ${manfile} in
52     *.de.?) use linguas_de \
53     && cp ${manfile} "${T}"/${manfile/.de/} \
54     && doman -i18n=de "${T}"/${manfile/.de/}
55     ;;
56     *.es.?) use linguas_es \
57     && cp ${manfile} "${T}"/${manfile/.es/} \
58     && doman -i18n=es "${T}"/${manfile/.es/}
59     ;;
60     *.fr.?) use linguas_fr \
61     && cp ${manfile} "${T}"/${manfile/.fr/} \
62     && doman -i18n=fr "${T}"/${manfile/.fr/}
63     ;;
64     *) doman ${manfile}
65     ;;
66     esac
67     done
68     }

  ViewVC Help
Powered by ViewVC 1.1.20