View previous topic :: View next topic |
Author |
Message |
YakS n00b
Joined: 16 Jul 2003 Posts: 17 Location: Zurich, Switzerland
|
|
Back to top |
|
|
RoyRatcliffe n00b
Joined: 19 Jan 2005 Posts: 1 Location: UK
|
Posted: Thu Apr 28, 2005 11:44 am Post subject: How to set up GlossTeX on Gentoo |
|
|
Use the following ebuild script to install GlossTeX on Gentoo Linux.
Code: |
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit latex-package
# Note: version is 0.4 as taken from Release file, see
# ftp://ftp.dante.de/tex-archive/support/glosstex. However, tarball
# name on ftp.dante.de is simply glosstex without version
# identification. Also, after unpacking to the work directory,
# glosstex subdirectory continues without version identification.
# Hence, we only assume version 0.4! Any way of checking?
S="${WORKDIR}/${PN}"
DESCRIPTION="Prepare glossaries in LaTeX"
SRC_URI="http://theory.uwinnipeg.ca/scripts/CTAN/support/${PN}.tar.gz"
HOMEPAGE="http://tug.ctan.org/tex-archive/help/Catalogue/entries/glosstex.html"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
src_compile() {
latex-package_src_compile
cd ${S}
emake || die "Error compiling glosstex binary"
}
src_install() {
dobin glosstex
# Instructions output at the end of ``make all'' say:
# glosstex.sty to texmf/tex/latex/glosstex
# glosstex.std to texmf/tex/latex/glosstex
# glosstex.ist to texmf/makeindex
latex-package_src_doinstall sty doc
insinto ${TEXMF}/tex/latex/${PN}
doins glosstex.std
insinto ${TEXMF}/makeindex
doins glosstex.ist
}
|
Follow the steps below.
1) Copy the ebuild script to /usr/local/portage/dev-tex/glosstex, assuming your local Portage overlay directory is /usr/local/portage. Of course, you need a corresponding entry in /etc/make.conf, i.e.
Code: | PORTDIR_OVERLAY=/usr/local/portage |
2) As root user, create the package manifest using
Code: | ebuild /usr/local/portage/dev-tex/glosstex/glosstex-0.4.ebuild digest |
3) Finally, merge the package using
You can test the installation by creating testglosstex.tex containing LaTeX input:
Code: |
\documentclass{article}
\usepackage{glosstex}
\begin{document}
\gls{GlossTeX}
\printglosstex(glo)
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
|
and a glossary definition input, testglosstex.gdf:
Code: |
% -*- latex -*-
@entry{GlossTeX} package for preparing glossaries in \LaTeX
|
and some makefile rules, testglosstex.makefile:
Code: |
%.gxs: %.tex %.gdf
glosstex $* $*.gdf
%.glx: %.gxs
makeindex $< -o $@ -s glosstex.ist
|
Run latex first! It may give errors but ignore them. Then run
Code: |
make -f testglosstex.makefile testglosstex.glx
|
The makefile rules here assume that your LaTeX input is something.tex and your glossary definitions are something.gdf (see GlossTeX documentation for the details). Finally run latex again and your glossary definitions should appear!
Regards,
Roy |
|
Back to top |
|
|
el_Salmon Guru
Joined: 15 Dec 2003 Posts: 339 Location: Around 2.4GHz
|
Posted: Mon May 28, 2007 9:02 pm Post subject: |
|
|
I have updated the glosstex ebuild (I fixed SRC_URI and I added ppc keyword):
Code: | Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit latex-package
# Note: version is 0.4 as taken from Release file, see
# ftp://ftp.dante.de/tex-archive/support/glosstex. However, tarball
# name on ftp.dante.de is simply glosstex without version
# identification. Also, after unpacking to the work directory,
# glosstex subdirectory continues without version identification.
# Hence, we only assume version 0.4! Any way of checking?
S="${WORKDIR}/${PN}"
DESCRIPTION="Prepare glossaries in LaTeX"
SRC_URI="ftp://cam.ctan.org/tex-archive/support/${PN}.zip"
HOMEPAGE="http://tug.ctan.org/tex-archive/help/Catalogue/entries/glosstex.html"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE=""
src_compile() {
latex-package_src_compile
cd ${S}
emake || die "Error compiling glosstex binary"
}
src_install() {
dobin glosstex
# Instructions output at the end of ``make all'' say:
# glosstex.sty to texmf/tex/latex/glosstex
# glosstex.std to texmf/tex/latex/glosstex
# glosstex.ist to texmf/makeindex
latex-package_src_doinstall sty doc
insinto ${TEXMF}/tex/latex/${PN}
doins glosstex.std
insinto ${TEXMF}/makeindex
doins glosstex.ist
}
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|