# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit latex-package DESCRIPTION="LuxiMono font for TeX" HOMEPAGE="http://ctan.tug.org/tex-archive/fonts/LuxiMono/" SRC_URI="http://home.arcor.de/dpolke/distfiles/${P}.tar.bz2" LICENSE="LuxiMono LPPL-1.2" SLOT="0" KEYWORDS="~x86 ~amd64" RDEPEND="dev-texlive/texlive-latex" DEPEND="${RDEPEND}" TEXMF="/usr/share/texmf-site" S=${WORKDIR}/${PN} IUSE="" SUPPLIER="." UPDMAP="${WORKDIR}/luximono.cfg" src_install(){ for dir in \ afm tfm type1 vf; do cd "${S}"/fonts/${dir}/public/${PN} latex-package_src_install done cd "${S}"/dvips/config insinto "${TEXMF}"/fonts/map/dvips/${PN} doins *.map || die "doins *.map failed" cd "${S}"/doc/fonts/${PN} dodoc ${PN}.txt dosym /usr/share/doc/${PF} "${TEXMF}"/doc/fonts/${PN} cd "${S}"/tex/latex/${PN} latex-package_src_install cd "${S}"/dvips/config for map in *.map; do echo "Map ${map}" >> "${UPDMAP}" done if latex-package_has_tetex_3; then insinto /etc/texmf/updmap.d doins "${UPDMAP}" fi } pkg_postinst() { latex-package_pkg_postinst while read map; do latex-package_has_tetex_3 || updmap-sys --enable Map=${map} done < "${UPDMAP}" } pkg_postrm() { latex-package_pkg_postrm while read map; do latex-package_has_tetex_3 || updmap-sys --disable Map=${map} done < "${UPDMAP}" }