# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="The bytefield LaTeX package, by Scott Pakin" HOMEPAGE="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/bytefield.html" # Use the zip file; .tar.gz files from CTAN are auto-generated with a timestamp # and will fail md5sum verification... SRC_URI="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/bytefield.zip" LICENSE="lppl-1.3a" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~ppc-macos ~ppc-od ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-obsd ~x86-od" SLOT="0" IUSE="" DEPEND="app-text/tetex app-arch/unzip" # Assumes tetex installs into: /usr/share/texmf src_unpack() { unpack ${A} epatch ${FILESDIR}/bfcalcfix.patch } src_compile() { cd ${WORKDIR}/bytefield tex bytefield.ins } src_install() { cd ${WORKDIR}/bytefield dodoc README example.tex example.pdf bytefield.pdf insinto /usr/share/texmf/tex/latex doins bytefield.sty } pkg_postinst() { texhash } pkg_postrm() { texhash }