From 5bbebd2d7c375c263de1abd516891de5fb3ab7c6 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Fri, 5 Jul 2013 23:32:08 +0000 Subject: Install in texmf-site and adjust a bit search paths. Package-Manager: portage-2.2.0_alpha186/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A --- dev-tex/tex4ht/ChangeLog | 8 +- dev-tex/tex4ht/Manifest | 21 ++--- dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild | 116 +++++++++++++++++++++++++ 3 files changed, 129 insertions(+), 16 deletions(-) create mode 100644 dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild (limited to 'dev-tex') diff --git a/dev-tex/tex4ht/ChangeLog b/dev-tex/tex4ht/ChangeLog index 3faee7f2dc1b..b6a9be82f290 100644 --- a/dev-tex/tex4ht/ChangeLog +++ b/dev-tex/tex4ht/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-tex/tex4ht # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v 1.90 2013/04/25 21:29:52 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v 1.91 2013/07/05 23:32:00 aballier Exp $ + +*tex4ht-20090611_p1038-r3 (05 Jul 2013) + + 05 Jul 2013; Alexis Ballier + +tex4ht-20090611_p1038-r3.ebuild: + Install in texmf-site and adjust a bit search paths. 25 Apr 2013; Agostino Sarubbo tex4ht-20090611_p1038-r2.ebuild: diff --git a/dev-tex/tex4ht/Manifest b/dev-tex/tex4ht/Manifest index c90a2b24681c..044cc5f4e711 100644 --- a/dev-tex/tex4ht/Manifest +++ b/dev-tex/tex4ht/Manifest @@ -6,22 +6,13 @@ AUX tex4ht-texlive-updates.patch 16596 SHA256 34b803f68ebe65c8de910c513106401e21 DIST tex4ht-1.0.2009_06_11_1038.tar.gz 2576719 SHA256 9f3e259641bb7d5f32b8efaa85cb7c1a9f1a17f5fc6a859c81449d9984ec91a3 SHA512 868961c16da63ef20a8af3ec3e56a2b6c518a291cdbc3974f701773dbb55b844f0df06aae4c7b481c96b9e2ba29cb0f1ed1279b6f32340e4708e31bb67170963 WHIRLPOOL 3fd49876e0cc19432c0ba5142848dd034a528441586550c49d04187a301ceb44a7d4374ef57a5b658a19e32b039ce1cdaa742331baf0008d51098567556e46cd EBUILD tex4ht-20090611_p1038-r1.ebuild 3426 SHA256 cf54f63b37c816ee0a6763710da2d4c434b8aa608eddb184529717dfe20c28bd SHA512 c8292ee0c63ee1b7d5904521ebecb2784c06df84a5727771595b11881a86d02df6c5b754c85ad05127bed9d4bb7ce49f5790a1da6543441c011fa9b33e50e1d2 WHIRLPOOL fe3d79b719b1cd178fb504c45d1b320069341b4ed15dea213730b50b34f5630cc1f2d841f1ce424abccd0d0715c6b1a69a23999bfbcaeab3c297602d6a1d7406 EBUILD tex4ht-20090611_p1038-r2.ebuild 3473 SHA256 f9eb77547eb07af3bb71046f75bb1890722873dc95126c021ef9b473154c807c SHA512 a30aaf9be4520f61b4437c13057484a814d9c0b0f5a5b93deab66b2e2cba82782745a938bfeb25d6871c662dfb746d76003ccc08dea1bcf3b1cea1470c221828 WHIRLPOOL e7fa0cb1cf346aeca4cd827400c57222c74ca55bc63575c079eb4a49220df786427b35562dd65d8067d37e2078fef5ce273783e630d74c26f5bc3d2ee224f4b3 -MISC ChangeLog 12277 SHA256 687d80db502183a3f9d126e11a1c1d140e6adde5a5afb9750a1910b29fd23f11 SHA512 9c0ef2d545f38f7b72f562d65d64edfbb89c27c92ca515d9c2738cedfb547313a0f92e24e7431eb27158f33f2bdf6c3c1f221c995b3b203fe4324cb61f45d555 WHIRLPOOL 5daf02271f957d2e58e4433d328be7c55130a00acd072f8bb3e4d0b14cc1630ba0dd3412c43cf49537dbd29ec00546b48a9c9abc7078f13bf9e512c14fec9f46 +EBUILD tex4ht-20090611_p1038-r3.ebuild 3524 SHA256 c7676b2a4b0c5814b2ab6504d72d1e024356bbf391ad3d17d92415e76e3218a6 SHA512 11ffc6a8bb25d4a3492d0cc5331a60a014ba3b6d3d509f83c53336a12fd6f452495824bb5dc2c0cbbb167ee053036c5f4e1c80ac9d438a23bc4f227954cf1570 WHIRLPOOL 19521c0dd33c03e7353c129c7c31741c9b14a0c45a9b1f2e955508302d9e6d3d297132a05b37f24493d0ba9f99467a05516aa9533eba2dbec130e9bea36d3f20 +MISC ChangeLog 12467 SHA256 8027d9769fd2c996175e805515aee5eeeaa635d932c95fb7331f49059a9ea474 SHA512 1758f38426fd309297890c7bf3eb0e1381c413bd82df9e09df33db0a8ae265f3a4173f932511ab3a9f6c621166141043c7d9c3cb05aebde662ac0c438a9a831f WHIRLPOOL ff57f448ab17e9a6144c7e42226899e42366d9118ff0eb420b89c547098f536328683361b553b024317dd30be02297bb0264ff0a8d15101527a9d299f9d84873 MISC metadata.xml 156 SHA256 b4971b8472ab3fe4fbfe41b331a79193ca19e86c08d055ad1c20eaf9e04b79b6 SHA512 cecee760dd314c182191a282255f2415e479a8cc6cab9cb664e5b82d52b700a3444aa0d33b30a721a756e432819decc8c92588c769ea6fd33dabe9adc16d75c0 WHIRLPOOL 88a15092b616df72dd0ae91d89c80d852ad49ab9fee8a9688f3a1be59c365cc3dc77e90be68b5c4ec9cc1dc9885e06e723abc96830df4d0628df8c97f8b2a332 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.19 (GNU/Linux) +Version: GnuPG v2.0.20 (GNU/Linux) -iQIcBAEBCAAGBQJReaBTAAoJELp701BxlEWfwOkQAKxd6YbOKSKQNVg1mbi52L0E -cYALJHdeNADcdp1dOtsRV1QzUap0jGueliBK/DNFvKWYeCkn4h8B0Q9CUU6mjC1K -kpeeuOLyFXxolOUzg5a5TzrJbJ+bNmfbdW5ZguOk7iUeai1exJKPzgaR0hVoB++u -oDmdMAb2J8ZCfV5HuoKoDG46B+PRgtNWBc2RQ0vfp/5Th8JaU0j1gsTRgHmWFdlL -d+7JHkvWC+YDsO/5cOmxrRVwNghrOTrokNxoZL5JXBGg/IpVJlyAt6YItlVOnpM8 -kIoFt4DLKEAyGu8nQJkVmy/1kyna+NdB+5Kxao6rRY2wlu2UUpZDp04SDqf+xOyD -uHgFeM1PAkoHiuVXp864wD273lRPx/xbgAv1WuPdZI/zpGAce3JTdsKpheW7I5yT -iUTlGeWeOwMFWYtvVrgxeCAq+2uXK6eZHMxshIkEAG/LMD5kjvU3Tj7ZI1jLUe+c -CuXP+v9L6uu+cZwcGLcDK6hY4wO5vNNhf1rMA8CMD20qqZFZLL0zQkPryCAiGa2A -9X6YZqpMMcTFseluTmm1C9PBLFs/DAm8TP83UTa+8xUmFB9WxEmj440eiSe2ZePD -es46+gtgrWJOBixaQWArvTilT6/gP5Gg/XIv3YrhYh+j70CMkwfEVquNwI4DEsYk -SaehosPdu2uEqW/WuRFd -=9Cbl +iEYEAREIAAYFAlHXV3IACgkQvFcC4BYPU0pfNACffxJbVim4VuuZ4WmyM9HaGQCh ++rAAoMf8xcTDzh7VCO3GmtjS0ghB1nCB +=tdzM -----END PGP SIGNATURE----- diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild new file mode 100644 index 000000000000..5fe74e28ac07 --- /dev/null +++ b/dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild,v 1.1 2013/07/05 23:32:01 aballier Exp $ + +EAPI=4 + +inherit latex-package toolchain-funcs java-pkg-opt-2 + +IUSE="" + +# tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350 +MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}" + +DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org" +HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/ + http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html" +SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz" + +LICENSE="LPPL-1.2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +SLOT="0" + +DEPEND=">=sys-apps/sed-4 + java? ( >=virtual/jdk-1.5 )" + +RDEPEND="app-text/ghostscript-gpl + media-gfx/imagemagick + java? ( >=virtual/jre-1.5 )" + +IUSE="java" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-texlive-updates.patch" + cd "${S}/texmf/tex4ht/base/unix" + sed -i \ + -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \ + -e "s#tpath/tex/texmf/fonts/tfm/!#t${EPREFIX}/usr/share/texmf-dist/fonts/tfm/!\nt${EPREFIX}/usr/local/share/texmf/fonts/tfm/!\nt${EPREFIX}/var/cache/fonts/tfm/!\nt${EPREFIX}${TEXMF}/fonts/tfm/!#" \ + -e "s#%%~/texmf-dist#${EPREFIX}${TEXMF}#g" \ + -e "s#/usr/share/texmf/#${EPREFIX}${TEXMF}/#" \ + tex4ht.env \ + || die "sed of tex4ht.env failed" + + einfo "Removing precompiled java stuff" + find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete +} + +src_compile() { + cd "${S}/src/" + einfo "Compiling postprocessor sources..." + for f in tex4ht t4ht htcmd ; do + $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \ + -DENVFILE="\"${EPREFIX}${TEXMF}/tex4ht/base/tex4ht.env\"" \ + -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \ + || die "Compiling $f failed" + done + if use java; then + einfo "Compiling java files..." + cd java + ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin + cd "${S}/texmf/tex4ht/bin" + # Create the jar needed by oolatex + jar -cf "${S}/${PN}.jar" * || die "failed to create jar" + fi +} + +src_install () { + # install the binaries + dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd" + # install the scripts + if ! use java; then + rm -f "${S}"/bin/unix/oo* + rm -f "${S}"/bin/unix/jh* + fi + dobin "${S}"/bin/unix/mk4ht || die + + # install the .4ht scripts + insinto ${TEXMF}/tex/generic/tex4ht + doins "${S}"/texmf/tex/generic/tex4ht/* || die + + # install the special htf fonts + insinto ${TEXMF}/tex4ht + doins -r "${S}/texmf/tex4ht/ht-fonts" || die + + if use java; then + # install the java files + doins -r "${S}/texmf/tex4ht/bin" + java-pkg_jarinto ${TEXMF}/tex4ht/bin + java-pkg_dojar "${S}/${PN}.jar" + fi + + # install the .4xt files + doins -r "${S}/texmf/tex4ht/xtpipes" || die + + # install the env file + insinto ${TEXMF}/tex4ht/base + newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env || die + + if latex-package_has_tetex_3 ; then + insinto /etc/texmf/texmf.d + doins "${FILESDIR}/50tex4ht.cnf" || die + fi + + insinto ${TEXMF}/tex/generic/${PN} + insopts -m755 + doins "${S}"/bin/ht/unix/* || die +} + +pkg_postinst() { + use java || elog 'ODF converters (oolatex & friends) require the java use flag' + latex-package_pkg_postinst + elog "In order to avoid collisions with multiple packages" + elog "We are not installing the scripts in /usr/bin anymore" + elog "If you want to use, say, htlatex, you can use 'mk4ht htlatex file'" +} -- cgit v1.2.3-65-gdbad