diff options
author | Alexis Ballier <aballier@gentoo.org> | 2007-10-16 07:10:12 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2007-10-16 07:10:12 +0000 |
commit | 64b2b44a974293b02bbab8a6ec5ab04c06c3f8b6 (patch) | |
tree | d42547ad1632d96a091feaa5df0631ca056471db /app-text | |
parent | stable x86, security bug 195315 (diff) | |
download | gentoo-2-64b2b44a974293b02bbab8a6ec5ab04c06c3f8b6.tar.gz gentoo-2-64b2b44a974293b02bbab8a6ec5ab04c06c3f8b6.tar.bz2 gentoo-2-64b2b44a974293b02bbab8a6ec5ab04c06c3f8b6.zip |
add format description for fmtutil, thanks to Dmitry S. Kulyabov <yamadharma@gmail.com>, bug #108848, only run texmf-update when root=/
(Portage version: 2.1.3.14)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/jadetex/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/jadetex/files/80format.jadetex.cnf | 5 | ||||
-rw-r--r-- | app-text/jadetex/files/digest-jadetex-3.13-r2 | 3 | ||||
-rw-r--r-- | app-text/jadetex/jadetex-3.13-r2.ebuild | 89 |
4 files changed, 105 insertions, 1 deletions
diff --git a/app-text/jadetex/ChangeLog b/app-text/jadetex/ChangeLog index af71a5a05b2f..e82597e2a586 100644 --- a/app-text/jadetex/ChangeLog +++ b/app-text/jadetex/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/jadetex # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/jadetex/ChangeLog,v 1.32 2007/10/15 20:17:42 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/jadetex/ChangeLog,v 1.33 2007/10/16 07:10:12 aballier Exp $ + +*jadetex-3.13-r2 (16 Oct 2007) + + 16 Oct 2007; Alexis Ballier <aballier@gentoo.org> + +files/80format.jadetex.cnf, +jadetex-3.13-r2.ebuild: + add format description for fmtutil, thanks to Dmitry S. Kulyabov + <yamadharma@gmail.com>, bug #108848, only run texmf-update when root=/ 15 Oct 2007; Alexis Ballier <aballier@gentoo.org> jadetex-3.13-r1.ebuild: Fixes for texlive integration diff --git a/app-text/jadetex/files/80format.jadetex.cnf b/app-text/jadetex/files/80format.jadetex.cnf new file mode 100644 index 000000000000..349d3f5d9987 --- /dev/null +++ b/app-text/jadetex/files/80format.jadetex.cnf @@ -0,0 +1,5 @@ +# JadeTeX +jadetex pdflatex language.dat -translate-file=cp227.tcx "&latex" jadetex.ini +pdfjadetex pdflatex language.dat -translate-file=cp227.tcx "&pdflatex" pdfjadetex.ini + + diff --git a/app-text/jadetex/files/digest-jadetex-3.13-r2 b/app-text/jadetex/files/digest-jadetex-3.13-r2 new file mode 100644 index 000000000000..c6948d3d961f --- /dev/null +++ b/app-text/jadetex/files/digest-jadetex-3.13-r2 @@ -0,0 +1,3 @@ +MD5 634dfc172fbf66a6976e2c2c60e2d198 jadetex-3.13.tar.gz 103137 +RMD160 d28ea2f55892c26fe04eea2faace15e9b646cef4 jadetex-3.13.tar.gz 103137 +SHA256 115aa01dc9665c263453e51dbb099769c63e47adb5e800436950154701059cf8 jadetex-3.13.tar.gz 103137 diff --git a/app-text/jadetex/jadetex-3.13-r2.ebuild b/app-text/jadetex/jadetex-3.13-r2.ebuild new file mode 100644 index 000000000000..84ae4ff67ec3 --- /dev/null +++ b/app-text/jadetex/jadetex-3.13-r2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/jadetex/jadetex-3.13-r2.ebuild,v 1.1 2007/10/16 07:10:12 aballier Exp $ + +inherit latex-package + +DESCRIPTION="TeX macros used by Jade TeX output" +HOMEPAGE="http://jadetex.sourceforge.net/" +SRC_URI="mirror://sourceforge/jadetex/${P}.tar.gz" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" +RESTRICT="test" + +DEPEND=">=app-text/openjade-1.3.1 + || ( dev-texlive/texlive-fontsrecommended virtual/tetex )" + +has_tetex_3() { + if has_version '>=app-text/tetex-2.96' || has_version '>=app-text/ptex-3.1.4.20041026' || has_version '>=app-text/texlive-2005' || has_version '>=app-text/texlive-core-2007'; then + true + else + false + fi +} + +src_compile() { + addwrite /usr/share/texmf/ls-R + addwrite /usr/share/texmf/fonts + addwrite /var/cache/fonts + + if has_tetex_3 ; then + sed -i -e "s:tex -ini:latex -ini:" Makefile || die "sed failed" + fi + + emake || die "emake failed" +} + +src_install() { + addwrite /usr/share/texmf/ls-R + addwrite /usr/share/texmf/fonts + addwrite /var/cache/fonts + + emake DESTDIR="${D}" install || die + + dodoc ChangeLog* + doman *.1 + + dodir /usr/bin + if has_tetex_3 ; then + dosym /usr/bin/latex /usr/bin/jadetex + dosym /usr/bin/pdftex /usr/bin/pdfjadetex + insinto /etc/texmf/texmf.d + doins "${FILESDIR}/80jadetex.cnf" + insinto /etc/texmf/fmtutil.d + doins "${FILESDIR}/80format.jadetex.cnf" + else + dosym /usr/bin/virtex /usr/bin/jadetex + dosym /usr/bin/pdfvirtex /usr/bin/pdfjadetex + fi + + dohtml -r . +} + +pkg_postinst() { + if has_tetex_3 ; then + if [ "$ROOT" = "/" ] ; then + /usr/sbin/texmf-update + fi + elog + elog "If jadetex fails with \"TeX capacity exceeded, sorry [save size=5000]\"," + elog "increase save_size in /etc/texmf/texmf.d/80jadetex.cnf and." + elog "remerge jadetex. See bug #21501." + elog + else + latex-package_pkg_postinst + fi +} + +pkg_postrm() { + if has_tetex_3 ; then + if [ "$ROOT" = "/" ] ; then + /usr/sbin/texmf-update + fi + else + latex-package_pkg_postrm + fi +} |