# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit latex-package elisp-common MY_P=Hyperlatex-2.8 S=${WORKDIR}/${MY_P} DESCRIPTION="LaTeX package to generate html from LaTeX documents using elisp macros." HOMEPAGE="http://hyperlatex.sourceforge.net/" SRC_URI="mirror://sourceforge/hyperlatex/${MY_P}b.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="app-editors/emacs virtual/tetex" HYPERLATEX_DIR="usr/share/hyperlatex" src_unpack() { unpack ${A} cd ${S} sed -e "s:HYPERLATEX_SYS_DIR=\"\$HOME/Hyperlatex/Hlx\":HYPERLATEX_SYS_DIR=\"${ROOT}${HYPERLATEX_DIR}\":" -i bin/hyperlatex } src_compile() { cd ${S}/hlx elisp-compile hyperlatex.el } src_install() { cd ${D} dodir ${HYPERLATEX_DIR} cp -pPR ${S}/hlx/* ${HYPERLATEX_DIR} # install sty cd ${S}/etc latex-package_src_install # documentation installation # TODO generate and install HTML documentation cd ${S} dodoc README cd ${S}/doc latex-package_src_install # install commands cd ${S} exeinto /usr/bin doexe bin/* }