Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-tex/slatex
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/slatex/ChangeLog,v 1.2 2008/01/18 18:07:29 opfer Exp $
18 Jan 2008; Christian Faulhammer
slatex-20050609.ebuild:
keyworded ~x86, bug 206526
*slatex-20050609 (17 Jan 2008)
17 Jan 2008; Marijn Schouten
+slatex-20050609.ebuild:
Initial commit, bug 188118
DIST slatex-20050609.tar.gz 47617 RMD160 73cb79c8b64a788caf74568304118d1e11d1f399 SHA1 426169e392316a70ebcda44775793b9cd01e93b4 SHA256 d392d523054f5100698f12477ef65ea7f4b074da2723c60bb9f3410b51a2ab2e
EBUILD slatex-20050609.ebuild 1498 RMD160 6db0e5e1cadd209164a48047919051c2fa7e08a8 SHA1 9a745c859dee262e988b030cc870b996cd364ff1 SHA256 1ecd4e1452c88faca13880232a3190313875d4703c75fba65e51d0072e7c9bf7
MISC ChangeLog 465 RMD160 3e7801c3b55e10206a23d86ad17d9f9c6649709b SHA1 ada6f0449c95ee7337a7cc488c320d474de36cee SHA256 78a6f2cf721805ef196bf280b7d9440bb511a315843eac2912ff7b08da93603c
MISC metadata.xml 1501 RMD160 aacb0740bcf83689a947547de054b21f11d0b1be SHA1 04914f684764a614f7b83b1fc0e279b2f5bc04b7 SHA256 c36b12fbd194f770f5f49efb530ccc50333fa6248169d0f9a4c92c38c528c558
SLaTeX is a Scheme program that allows you to write programs or program fragments ``as is'' in your TeX or LaTeX source. It is particularly geared to the programming languages Scheme and other Lisps, eg, Common Lisp. The formatting of the code includes assigning appropriate fonts and colors to the various tokens in the code (keywords, variables, constants, data), at the same time retaining the proper indentation when going to the non-monospace (non-typewriter) fonts provided by TeX. SLaTeX comes with two databases that recognize the identifier conventions of Scheme and Common Lisp respectively. These can be modified by the user with easy TeX commands. In addition, the user can tell SLaTeX to typeset certain identifiers as specially suited TeX expressions (ie, beyond just fonting them). All this is done without interfering with the identifier conventions of the language of the programming code. In sum, no change need be made to your (presumably running) program code in order to get a typeset version with a desired look: You can get a spectrum of styles ranging from no fonting through basic default fonting to various ``mathematical''-looking output for pedagogic or other reasons.
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/slatex/slatex-20050609.ebuild,v 1.2 2008/01/18 18:07:29 opfer Exp $
# for updating the texmf database, id est latex-package_rehash
inherit latex-package
DESCRIPTION="SLaTeX is a Scheme program that allows you to write Scheme code in your (La)TeX source."
HOMEPAGE="http://www.ccs.neu.edu/home/dorai/slatex/slatxdoc.html"
#http://www.ccs.neu.edu/home/dorai/slatex/slatex.tar.gz
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
CDEPEND="dev-scheme/guile"
DEPEND="${CDEPEND} dev-scheme/scmxlate !dev-scheme/drscheme"
RDEPEND="${CDEPEND}"
S="${WORKDIR}/${PN}"
TARGET_DIR="/usr/share/slatex"
src_unpack() {
unpack ${A}; cd "${S}"
# cp scmxlate-slatex-src.scm scmxlate-slatex-src.scm.old
sed "s:\"/home/dorai/.www/slatex/slatex.scm\":\"${TARGET_DIR}/slatex.scm\":" -i scmxlate-slatex-src.scm
# diff -u scmxlate-slatex-src.scm.old scmxlate-slatex-src.scm
}
src_compile() {
local command="(load \"/usr/share/scmxlate/scmxlate.scm\")"
# echo "${command}"
guile -c "${command}" <<< "guile" || die
# mzscheme -e "${command}(exit)" <<< "mzscheme" || die
# guile -c "(load \"slatex.scm\")(slatex::process-main-tex-file \"slatxdoc.tex\")" && tex slatxdoc.tex
}
src_install() {
insinto "${TARGET_DIR}"; doins slatex.scm
insinto /usr/share/texmf/tex/latex/slatex/; doins slatex.sty
dobin slatex
}