/[gentoo-x86]/dev-tex/abntex/abntex-0.9_beta2.ebuild
Gentoo

Contents of /dev-tex/abntex/abntex-0.9_beta2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun May 8 16:26:08 2011 UTC (3 years, 7 months ago) by rafaelmartins
Branch: MAIN
Initial version.

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=3
6
7 inherit latex-package
8
9 MY_PV="${PV/_/-}"
10 MY_P="${PN}-${MY_PV}"
11
12 DESCRIPTION="LaTeX macros for writing documents following the ABNT norms."
13 HOMEPAGE="http://abntex.codigolivre.org.br/ http://abntex.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
15 doc? ( mirror://sourceforge/${PN}/${PN}-doc-${MY_PV}.tar.gz )"
16
17 LICENSE="LPPL-1.3c"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20
21 IUSE="doc examples lyx"
22
23 DEPEND="dev-texlive/texlive-latex
24 dev-texlive/texlive-latexrecommended
25 lyx? ( app-office/lyx )"
26 RDEPEND="${DEPEND}"
27
28 S="${WORKDIR}/${MY_P%-*}"
29
30 src_prepare() {
31 # fix permissions
32 find . -type f -exec chmod 0644 "{}" + || die 'chmod 0644 failed.'
33 find . -type d -exec chmod 0755 "{}" + || die 'chmod 0755 failed.'
34 }
35
36 src_install() {
37 dobin bin/geratss || die 'dobin failed.'
38
39 if use examples; then
40 insinto /usr/share/doc/${PF}/examples
41 doins -r texmf/doc/* || die 'could not install examples.'
42 fi
43
44 rm -rf texmf/doc
45
46 insinto /usr/share/texmf-site
47 doins -r texmf/* || die 'could not install texmf.'
48
49 if use lyx; then
50 insinto /usr/share/lyx
51 doins -r lyx/* || die 'could not install lyx files.'
52 fi
53
54 dodoc LEIAME || die 'could not install LEIAME'
55
56 if use doc; then
57 insinto /usr/share/doc/${PF}/docs
58 doins -r compiled.docs/* || die "could not install doc"
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20