You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
|
inherit latex-package
|
||
|
|
||
|
MY_PV="${PV/_/-}"
|
||
|
MY_P="${PN}-${MY_PV}"
|
||
|
|
||
10 years ago
|
DESCRIPTION="LaTeX macros for writing documents following the ABNT norms"
|
||
13 years ago
|
HOMEPAGE="http://abntex.codigolivre.org.br/ http://abntex.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
|
||
|
doc? ( mirror://sourceforge/${PN}/${PN}-doc-${MY_PV}.tar.gz )"
|
||
|
|
||
|
LICENSE="LPPL-1.3c"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
IUSE="doc examples lyx"
|
||
|
|
||
|
DEPEND="dev-texlive/texlive-latex
|
||
|
dev-texlive/texlive-latexrecommended
|
||
|
lyx? ( app-office/lyx )"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
S="${WORKDIR}/${MY_P%-*}"
|
||
|
|
||
|
src_prepare() {
|
||
|
# fix permissions
|
||
|
find . -type f -exec chmod 0644 "{}" + || die 'chmod 0644 failed.'
|
||
|
find . -type d -exec chmod 0755 "{}" + || die 'chmod 0755 failed.'
|
||
6 years ago
|
default
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
dobin bin/geratss
|
||
13 years ago
|
|
||
|
if use examples; then
|
||
|
insinto /usr/share/doc/${PF}/examples
|
||
6 years ago
|
doins -r texmf/doc/*
|
||
13 years ago
|
fi
|
||
|
|
||
6 years ago
|
rm -rf texmf/doc || die
|
||
13 years ago
|
|
||
|
insinto /usr/share/texmf-site
|
||
6 years ago
|
doins -r texmf/*
|
||
13 years ago
|
|
||
|
if use lyx; then
|
||
|
insinto /usr/share/lyx
|
||
6 years ago
|
doins -r lyx/*
|
||
13 years ago
|
fi
|
||
|
|
||
6 years ago
|
dodoc LEIAME
|
||
13 years ago
|
|
||
|
if use doc; then
|
||
|
insinto /usr/share/doc/${PF}/docs
|
||
6 years ago
|
doins -r compiled.docs/*
|
||
13 years ago
|
fi
|
||
|
}
|