1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils toolchain-funcs versionator
9 DESCRIPTION="Userspace utils and init scripts for the AppArmor application security system"
10 HOMEPAGE="http://apparmor.net/"
11 SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
18 LANGS="af ar bg bn bs ca cs cy da de el en_GB en_US es et fi fr gl
19 gu he hi hr hu id it ja ka km ko lo lt mk mr nb nl pa pl pt pt_BR ro ru si
20 sk sl sr sv ta th tr uk vi wa xh zh_CN zh_TW zu"
22 for X in ${LANGS} ; do
30 doc? ( dev-tex/latex2html )"
33 S=${WORKDIR}/apparmor-${PV}/parser
36 epatch "${FILESDIR}"/${P}-makefile.patch
39 for lang in ${LANGS}; do
40 if ! use linguas_${lang}; then
41 rm po/${lang}.po || die "failed to remove nls"
47 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" arch manpages
52 emake DESTDIR="${D}" arch manpages install
56 newinitd "${FILESDIR}"/${PN}-init ${PN}
57 newconfd "${FILESDIR}"/${PN}-confd ${PN}
60 use doc && dodoc techdoc.pdf