summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Turk <satai@gentoo.org>2003-07-14 03:07:30 +0000
committerMatthew Turk <satai@gentoo.org>2003-07-14 03:07:30 +0000
commit48103466eb2665a5bf3831a363e3d5bd6f6cf76c (patch)
tree73e3214cbe3537662923552b96609a15691136f8 /dev-tex
parentAdding ebuild for cweb code directly in LaTeX. Fixes bug 16908. (diff)
downloadgentoo-2-48103466eb2665a5bf3831a363e3d5bd6f6cf76c.tar.gz
gentoo-2-48103466eb2665a5bf3831a363e3d5bd6f6cf76c.tar.bz2
gentoo-2-48103466eb2665a5bf3831a363e3d5bd6f6cf76c.zip
Adding ebuild for cweb code directly in LaTeX. Fixes bug 16908.
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/cweb_latex/ChangeLog8
-rw-r--r--dev-tex/cweb_latex/Manifest3
-rw-r--r--dev-tex/cweb_latex/cweb_latex-1.1.1.ebuild17
-rw-r--r--dev-tex/cweb_latex/files/cweb.cls.patch36
-rw-r--r--dev-tex/cweb_latex/files/digest-cweb_latex-1.1.11
5 files changed, 64 insertions, 1 deletions
diff --git a/dev-tex/cweb_latex/ChangeLog b/dev-tex/cweb_latex/ChangeLog
new file mode 100644
index 000000000000..d62c1d134b75
--- /dev/null
+++ b/dev-tex/cweb_latex/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/cweb_latex/ChangeLog,v 1.1 2003/07/14 03:07:24 satai Exp $
+
+*cweb_latex-1.1.1 (13 Jul 2003)
+
+ 13 Jul 2003; Matthew Turk <satai@gentoo.org> :
+ Initial import. Ebuild submitted by John Steele Scott <toojays@toojays.net>
diff --git a/dev-tex/cweb_latex/Manifest b/dev-tex/cweb_latex/Manifest
index 1dde04f713aa..d363a8f6911c 100644
--- a/dev-tex/cweb_latex/Manifest
+++ b/dev-tex/cweb_latex/Manifest
@@ -1,3 +1,4 @@
-MD5 bce4734527eb00cc86aa70df6d689d6a cweb_latex-1.1.1.ebuild 464
+MD5 5efb7f129dbf4185bd4e4f4cde6e18e8 ChangeLog 385
+MD5 4bee7ab8d25a04634b48b252926bca5c cweb_latex-1.1.1.ebuild 466
MD5 6c82be26f774748d06ec48e63c66fead files/cweb.cls.patch 1156
MD5 2451da3da690a5163fc7ffd7cc8c302a files/digest-cweb_latex-1.1.1 66
diff --git a/dev-tex/cweb_latex/cweb_latex-1.1.1.ebuild b/dev-tex/cweb_latex/cweb_latex-1.1.1.ebuild
new file mode 100644
index 000000000000..887ad91cce3a
--- /dev/null
+++ b/dev-tex/cweb_latex/cweb_latex-1.1.1.ebuild
@@ -0,0 +1,17 @@
+inherit latex-package
+
+S="${WORKDIR}/cweb-sty-${PV}"
+DESCRIPTION="LaTeX package for using LaTeX with CWEB"
+SRC_URI="ftp://ftp.th-darmstadt.de//programming/literate-programming/c.c++/cweb-sty-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 mips"
+PATCHES="${FILESDIR}/cweb.cls.patch"
+
+# this package has a .tex file which needs to go with the cweb.sty
+src_install() {
+ cd ${S}
+ latex-package_src_install
+ insinto ${TEXMF}/tex/latex/${PN}
+ doins cwebbase.tex
+}
diff --git a/dev-tex/cweb_latex/files/cweb.cls.patch b/dev-tex/cweb_latex/files/cweb.cls.patch
new file mode 100644
index 000000000000..07f20ff7fa3e
--- /dev/null
+++ b/dev-tex/cweb_latex/files/cweb.cls.patch
@@ -0,0 +1,36 @@
+This patch fixes cweb.cls so that it works with new versions of the
+LaTeX format. (Any format later than 1997/06/30 or thereabouts is
+affected.)
+
+This patch may be freely redistributed.
+
+To use it, run the command "patch -p0 < cweb.cls.patch" in the
+directory containing cweb.cls if you have a UNIX-type system with the
+patch command. If not, just make the necessary changes by hand to
+lines 846 and 848 as shown in the patch below.
+
+ Julian Gilbey <jdg@debian.org>, November 1999
+
+--- cweb.cls.orig
++++ cweb.cls
+@@ -836,16 +836,16 @@
+
+ %%% \sect Let's make sure that the expansion of |\end| is the one that we
+ %%% expect. Then we can define |\cweb@skip_end| appropriately, we have to
+-%%% skip 5~tokens.
++%%% skip 4~tokens.
+
+ %%% \beginprog
+ \CheckCommand*\end[1]{%
+ \csname end#1\endcsname\@checkend{#1}%
+ \expandafter\endgroup\if@endpe\@doendpe\fi
+-% 1 2 3 4 5
+- \if@ignore\global\@ignorefalse\ignorespaces\fi}
++% 1 2 3 4
++ \if@ignore\@ignorefalse\ignorespaces\fi}
+
+-\def\cweb@skip_end#1#2#3#4#5{\cweb@check_fi}
++\def\cweb@skip_end#1#2#3#4{\cweb@check_fi}
+ %%% \endprog
+
+
diff --git a/dev-tex/cweb_latex/files/digest-cweb_latex-1.1.1 b/dev-tex/cweb_latex/files/digest-cweb_latex-1.1.1
new file mode 100644
index 000000000000..6527f3d8c29f
--- /dev/null
+++ b/dev-tex/cweb_latex/files/digest-cweb_latex-1.1.1
@@ -0,0 +1 @@
+MD5 3913f44e9270494f43bf0fbaf01e7d47 cweb-sty-1.1.1.tar.gz 178654