diff options
-rw-r--r-- | dev-tex/rubber/ChangeLog | 11 | ||||
-rw-r--r-- | dev-tex/rubber/Manifest | 2 | ||||
-rw-r--r-- | dev-tex/rubber/files/digest-rubber-0.99.8 | 1 | ||||
-rw-r--r-- | dev-tex/rubber/files/rubber-module-command.patch | 77 | ||||
-rw-r--r-- | dev-tex/rubber/metadata.xml | 5 | ||||
-rw-r--r-- | dev-tex/rubber/rubber-0.99.8.ebuild | 33 |
6 files changed, 129 insertions, 0 deletions
diff --git a/dev-tex/rubber/ChangeLog b/dev-tex/rubber/ChangeLog new file mode 100644 index 000000000000..efd43daba325 --- /dev/null +++ b/dev-tex/rubber/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-tex/rubber +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/rubber/ChangeLog,v 1.1 2004/11/07 14:31:01 usata Exp $ + +*rubber-0.99.8 (07 Nov 2004) + + 07 Nov 2004; Mamoru KOMACHI <usata@gentoo.org> + +files/rubber-module-command.patch, +rubber-0.99.8.ebuild: + Initial import. Ebuild submitted by Sam Yates <sam@quux.dropbear.id.au>. + See bug #45009 for discussion about rubber-module-command.patch. + diff --git a/dev-tex/rubber/Manifest b/dev-tex/rubber/Manifest new file mode 100644 index 000000000000..00ceb86afd30 --- /dev/null +++ b/dev-tex/rubber/Manifest @@ -0,0 +1,2 @@ +MD5 5ada221427f83ba107a6c0037e2cb5e9 rubber-0.99.8.ebuild 512 +MD5 fa3ee1d6122e1a65f21eee40704b33ff files/digest-rubber-0.99.8 64 diff --git a/dev-tex/rubber/files/digest-rubber-0.99.8 b/dev-tex/rubber/files/digest-rubber-0.99.8 new file mode 100644 index 000000000000..07719bf75480 --- /dev/null +++ b/dev-tex/rubber/files/digest-rubber-0.99.8 @@ -0,0 +1 @@ +MD5 c912145b76786038fb954342d9840028 rubber-0.99.8.tar.gz 75860 diff --git a/dev-tex/rubber/files/rubber-module-command.patch b/dev-tex/rubber/files/rubber-module-command.patch new file mode 100644 index 000000000000..60e8fcb0b9f8 --- /dev/null +++ b/dev-tex/rubber/files/rubber-module-command.patch @@ -0,0 +1,77 @@ +diff -r -c rubber-0.99.7.orig/src/__init__.py rubber-0.99.7/src/__init__.py +*** rubber-0.99.7.orig/src/__init__.py 2004-02-16 22:33:47.000000000 +0900 +--- rubber-0.99.7/src/__init__.py 2004-03-22 17:07:08.650376984 +0900 +*************** +*** 82,87 **** +--- 82,90 ---- + """ + return self.objects[name] + ++ def has_key (self, name): ++ return self.objects.has_key(name) ++ + def register (self, name, dict={}): + """ + Attempt to register a package with the specified name. If a module is +*************** +*** 503,509 **** + else: + lst = string.split(cmd, ".", 1) + if len(lst) > 1: +! if modules.has_key(lst[0]): + self.modules[lst[0]].command(lst[1], arg) + else: + self.msg.info(pos, _("unknown directive '%s'") % cmd) +--- 506,512 ---- + else: + lst = string.split(cmd, ".", 1) + if len(lst) > 1: +! if self.modules.has_key(lst[0]): + self.modules[lst[0]].command(lst[1], arg) + else: + self.msg.info(pos, _("unknown directive '%s'") % cmd) +diff -r -c rubber-0.99.7.orig/src/modules/lhs2TeX.py rubber-0.99.7/src/modules/lhs2TeX.py +*** rubber-0.99.7.orig/src/modules/lhs2TeX.py 2003-10-28 05:04:41.000000000 +0900 +--- rubber-0.99.7/src/modules/lhs2TeX.py 2004-03-22 17:07:53.261595048 +0900 +*************** +*** 21,31 **** + self.env = env + self.source = source + self.target = target +! self.cmd = ["lhs2TeX", "-math", source] + + def run (self): + self.env.msg(0, _("pretty-printing %s...") % self.source) +! out = open(target, 'w') + def w (line, file=out): + file.write(line) + file.flush() +--- 21,31 ---- + self.env = env + self.source = source + self.target = target +! self.cmd = ["lhs2TeX", "-poly", source] + + def run (self): + self.env.msg(0, _("pretty-printing %s...") % self.source) +! out = open(self.target, 'w') + def w (line, file=out): + file.write(line) + file.flush() +*************** +*** 48,54 **** + else: + self.clean_tex = 0 + env.convert.add_rule("(.*)\\.tex$", "\\1.lhs", "lhs2TeX") +! self.style = "-math" + + def make (self): + """ +--- 48,54 ---- + else: + self.clean_tex = 0 + env.convert.add_rule("(.*)\\.tex$", "\\1.lhs", "lhs2TeX") +! self.style = "-poly" + + def make (self): + """ diff --git a/dev-tex/rubber/metadata.xml b/dev-tex/rubber/metadata.xml new file mode 100644 index 000000000000..06689a1a9114 --- /dev/null +++ b/dev-tex/rubber/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>text-markup</herd> +</pkgmetadata> diff --git a/dev-tex/rubber/rubber-0.99.8.ebuild b/dev-tex/rubber/rubber-0.99.8.ebuild new file mode 100644 index 000000000000..46c7e4608a5c --- /dev/null +++ b/dev-tex/rubber/rubber-0.99.8.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/rubber/rubber-0.99.8.ebuild,v 1.1 2004/11/07 14:31:01 usata Exp $ + +inherit distutils eutils + +IUSE="" + +DESCRIPTION="A LaTeX wrapper for automatically building documents" +HOMEPAGE="http://rubber.sourceforge.net/" +SRC_URI="http://ebeffara.free.fr/pub/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="dev-lang/python" + +#src_unpack() { +# unpack ${A} +# cd ${S} +# epatch ${FILESDIR}/rubber-module-command.patch +#} + +src_compile() { + # configure script is not created by GNU autoconf + ./configure --prefix=/usr \ + --bindir=/usr/bin \ + --datadir=/usr/share \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info || die + emake || die +} |