dev-tex/g-brief: Fix build. Bug #573374.
authorAlexis Ballier <aballier@gentoo.org>
Sat, 30 Jan 2016 12:48:04 +0000 (13:48 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 30 Jan 2016 12:48:48 +0000 (13:48 +0100)
Remove files that are going to be re-generated. Remove .dtx files after generating output so that it is not re-processing at src_install which would fail.
Add missing dep. Remove outdated tetex blocker.

Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-tex/g-brief/g-brief-4.0.2.ebuild

index 29c11ced32e97f38aa3504f1b3bbb47b108d4ec9..971d2395348a5b60e5c8d86ce3e1b0b141edd1cb 100644 (file)
@@ -16,8 +16,17 @@ IUSE=""
 SLOT="0"
 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
 
-RDEPEND="!>=app-text/tetex-2.96"
+RDEPEND="dev-texlive/texlive-langgerman"
 DEPEND="${RDEPEND}
        app-arch/unzip"
 
 TEXMF="/usr/share/texmf-site"
+
+src_compile() {
+       # latex chokes if these file exist, bug #573374
+       rm -f g-brief.drv g-brief.cls g-brief.sty g-brief2.cls g-brief2.sty beispiel.tex beispiel2.tex 
+       latex-package_src_compile
+       # Now that the source is processed, remove it so that it is not (wrongly)
+       # reprocessed at src_install.
+       rm -f g-brief.dtx
+}