diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-02-01 08:05:52 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-02-01 08:05:52 +0000 |
commit | 8c55d1cb16b89154039f59a78f033d0f2a078dc8 (patch) | |
tree | 38f30b4307d96863570fda949d62b9dc84329e53 /dev-tex/preview-latex | |
parent | Initial import. Ebuild submitted by Felix Kurth <felix@fkurth.de> in bug #30692 (diff) | |
download | gentoo-2-8c55d1cb16b89154039f59a78f033d0f2a078dc8.tar.gz gentoo-2-8c55d1cb16b89154039f59a78f033d0f2a078dc8.tar.bz2 gentoo-2-8c55d1cb16b89154039f59a78f033d0f2a078dc8.zip |
Initial import. Ebuild submitted by Felix Kurth <felix@fkurth.de> in bug #30692
Diffstat (limited to 'dev-tex/preview-latex')
-rw-r--r-- | dev-tex/preview-latex/ChangeLog | 11 | ||||
-rw-r--r-- | dev-tex/preview-latex/Manifest | 3 | ||||
-rw-r--r-- | dev-tex/preview-latex/files/60preview-latex-gentoo.el | 6 | ||||
-rw-r--r-- | dev-tex/preview-latex/files/digest-preview-latex-0.7.8 | 1 | ||||
-rw-r--r-- | dev-tex/preview-latex/metadata.xml | 6 | ||||
-rw-r--r-- | dev-tex/preview-latex/preview-latex-0.7.8.ebuild | 84 |
6 files changed, 110 insertions, 1 deletions
diff --git a/dev-tex/preview-latex/ChangeLog b/dev-tex/preview-latex/ChangeLog new file mode 100644 index 000000000000..a3dc6ba3dfce --- /dev/null +++ b/dev-tex/preview-latex/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-tex/preview-latex +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/preview-latex/ChangeLog,v 1.1 2004/02/01 08:05:44 usata Exp $ + +*preview-latex-0.7.8 (01 Feb 2004) + + 01 Feb 2004; Mamoru KOMACHI <usata@gentoo.org> metadata.xml, + preview-latex-0.7.8.ebuild: + Initial import. Ebuild submitted by Felix Kurth <felix@fkurth.de> + in bug #30692 + diff --git a/dev-tex/preview-latex/Manifest b/dev-tex/preview-latex/Manifest index cd8cab6ca784..2f0cb5775a82 100644 --- a/dev-tex/preview-latex/Manifest +++ b/dev-tex/preview-latex/Manifest @@ -1,4 +1,5 @@ -MD5 f1f0409d656a4abc36d0d2656e46c5bf preview-latex-0.7.8.ebuild 1512 +MD5 d07e65751c9bc1a10ad007983c4a20f3 preview-latex-0.7.8.ebuild 2133 MD5 786cb4377be8732dba7dbf85a457e85f metadata.xml 183 +MD5 88eadd701a65690f7cc691c80a9c9e89 ChangeLog 437 MD5 a8cbe2c49c69efd921b171793b8cbfe7 files/60preview-latex-gentoo.el 138 MD5 229b82d8b5e7e15c2897794cbe5a1d8c files/digest-preview-latex-0.7.8 71 diff --git a/dev-tex/preview-latex/files/60preview-latex-gentoo.el b/dev-tex/preview-latex/files/60preview-latex-gentoo.el new file mode 100644 index 000000000000..d1c36e259fc2 --- /dev/null +++ b/dev-tex/preview-latex/files/60preview-latex-gentoo.el @@ -0,0 +1,6 @@ + +;; preview-latex gentoo site configuration + +(add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) +(autoload 'LaTeX-preview-setup "preview") + diff --git a/dev-tex/preview-latex/files/digest-preview-latex-0.7.8 b/dev-tex/preview-latex/files/digest-preview-latex-0.7.8 new file mode 100644 index 000000000000..2c23dac33fca --- /dev/null +++ b/dev-tex/preview-latex/files/digest-preview-latex-0.7.8 @@ -0,0 +1 @@ +MD5 569aa370482436db4588428da4f27594 preview-latex-0.7.8.tar.gz 236683 diff --git a/dev-tex/preview-latex/metadata.xml b/dev-tex/preview-latex/metadata.xml new file mode 100644 index 000000000000..81a6bd4eb98d --- /dev/null +++ b/dev-tex/preview-latex/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>text-markup</herd> +<herd>emacs</herd> +</pkgmetadata> diff --git a/dev-tex/preview-latex/preview-latex-0.7.8.ebuild b/dev-tex/preview-latex/preview-latex-0.7.8.ebuild new file mode 100644 index 000000000000..5941231baeda --- /dev/null +++ b/dev-tex/preview-latex/preview-latex-0.7.8.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/preview-latex/preview-latex-0.7.8.ebuild,v 1.1 2004/02/01 08:05:44 usata Exp $ + +inherit latex-package elisp-common + +DESCRIPTION="Renders embed latex environments such as math or figures in realtime" +HOMEPAGE="http://preview-latex.sourceforge.net/" +SRC_URI="mirror://sourceforge/preview-latex/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="emacs xemacs" + +DEPEND="emacs? ( virtual/emacs + >=app-emacs/auctex-11.14 ) + xemacs? ( virtual/xemacs + >=app-xemacs/auctex-1.32 ) + >=app-text/ghostscript-7.05.6-r3 + virtual/tetex" + +#RDEPEND="" + +src_unpack() { + unpack ${A} + cp -a ${P}/* ${T} +} + +src_compile() { + if [ "`use emacs`" -a "`use xemacs`" ] ; then + econf --with-emacs \ + --with-lispdir=${D}/usr/share/emacs/site-lisp/${PN} \ + || die + emake || die + cd ${T} + econf --with-xemacs \ + --with-packagedir=${D}/usr/lib/xemacs/site-packages \ + || die + emake || die + elif [ "`use emacs`" -o "`use xemacs`" ] ; then + local myconf + if [ "`use emacs`" ] ; then + myconf="--with-emacs + --with-lispdir=${D}/usr/share/emacs/site-lisp/${PN}" + elif [ "`use xemacs`" ] ; then + myconf="--with-xemacs + --with-packagedir=${D}/usr/lib/xemacs/site-packages" + fi + econf ${myconf} || die + emake || die + else + econf || die + emake || die + fi +} + +src_install() { + # hack.- we cant call texhash within the make install because of sandbox violations + # doing it later by hand + if [ "`use emacs`" -a "`use xemacs`" ] ; then + einstall texmfdir=${D}${TEXMF} TEXHASH=/bin/true || die + pushd ${T} + einstall texmfdir=${D}${TEXMF} TEXHASH=/bin/true || die + popd + else + einstall texmfdir=${D}${TEXMF} TEXHASH=/bin/true || die + fi + + if [ -n "`use emacs`" ] ; then + elisp-site-file-install ${FILESDIR}/60preview-latex-gentoo.el + fi + + dodoc ChangeLog FAQ INSTALL PROBLEMS README RELEASE TODO doc/preview-latex.dvi +} + +pkg_postinst() { + latex-package_pkg_postinst + use emacs && elisp-site-regen +} + +pkg_postrm() { + latex-package_pkg_postrm + use emacs && elisp-site-regen +} |