1 |
commit: 08c2e45c549c9bbb31bfbb321818b5b27ba7b980 |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Thu May 10 17:27:50 2012 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 10 17:58:39 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=08c2e45c |
7 |
|
8 |
app-text/docbook-to-man: 0_p19960617, 2.0.0 |
9 |
|
10 |
--- |
11 |
.../docbook-to-man-0_p19960617.ebuild | 37 ++++++++++ |
12 |
.../docbook-to-man/docbook-to-man-2.0.0.ebuild | 37 ++++++++++ |
13 |
.../files/docbook-to-man-0_p19960617-compile.patch | 73 ++++++++++++++++++++ |
14 |
app-text/docbook-to-man/metadata.xml | 8 ++ |
15 |
4 files changed, 155 insertions(+), 0 deletions(-) |
16 |
|
17 |
diff --git a/app-text/docbook-to-man/docbook-to-man-0_p19960617.ebuild b/app-text/docbook-to-man/docbook-to-man-0_p19960617.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..2aed902 |
20 |
--- /dev/null |
21 |
+++ b/app-text/docbook-to-man/docbook-to-man-0_p19960617.ebuild |
22 |
@@ -0,0 +1,37 @@ |
23 |
+# Copyright 1999-2012 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Header: $ |
26 |
+ |
27 |
+EAPI="3" |
28 |
+ |
29 |
+inherit eutils |
30 |
+ |
31 |
+DESCRIPTION="Transform DocBook SGML into nroff/troff man pages" |
32 |
+HOMEPAGE="http://www.oasis-open.org/docbook/tools/dtm/" |
33 |
+SRC_URI="http://www.oasis-open.org/docbook/tools/dtm/${PN}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="" # masked for now, does not yet work as expected |
38 |
+IUSE="" |
39 |
+ |
40 |
+DEPEND="" |
41 |
+RDEPEND="" |
42 |
+ |
43 |
+S=${WORKDIR}/${PN} |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ epatch "${FILESDIR}"/${P}-compile.patch |
47 |
+} |
48 |
+ |
49 |
+src_compile() { |
50 |
+ emake -C Instant dotptregexp || die |
51 |
+ emake all || die |
52 |
+} |
53 |
+ |
54 |
+src_install() { |
55 |
+ dodir /usr/{bin,lib} || die |
56 |
+ emake ROOT="${D}"/usr install || die |
57 |
+ emake ROOT="${D}"/usr -C Instant/tptregexp install || die |
58 |
+ doman Doc/*.1 || die |
59 |
+} |
60 |
|
61 |
diff --git a/app-text/docbook-to-man/docbook-to-man-2.0.0.ebuild b/app-text/docbook-to-man/docbook-to-man-2.0.0.ebuild |
62 |
new file mode 100644 |
63 |
index 0000000..6c924c4 |
64 |
--- /dev/null |
65 |
+++ b/app-text/docbook-to-man/docbook-to-man-2.0.0.ebuild |
66 |
@@ -0,0 +1,37 @@ |
67 |
+# Copyright 1999-2012 Gentoo Foundation |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+# $Header: $ |
70 |
+ |
71 |
+EAPI="3" |
72 |
+ |
73 |
+inherit eutils |
74 |
+ |
75 |
+DESCRIPTION="Transform DocBook SGML into nroff/troff man pages" |
76 |
+HOMEPAGE="http://www.oasis-open.org/docbook/tools/dtm/" |
77 |
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz" |
78 |
+ |
79 |
+LICENSE="MIT" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="" # masked for now, does not yet work as expected |
82 |
+IUSE="" |
83 |
+ |
84 |
+DEPEND="" |
85 |
+RDEPEND="" |
86 |
+ |
87 |
+S=${WORKDIR}/${PN}-${PV}.orig |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ epatch "${FILESDIR}"/${PN}-0_p19960617-compile.patch |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ emake -C Instant dotptregexp || die |
95 |
+ emake all || die |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ dodir /usr/{bin,lib,share/sgml} || die |
100 |
+ emake ROOT="${D}"/usr install || die |
101 |
+ emake ROOT="${D}"/usr -C Instant/tptregexp install || die |
102 |
+ doman Doc/*.1 || die |
103 |
+} |
104 |
|
105 |
diff --git a/app-text/docbook-to-man/files/docbook-to-man-0_p19960617-compile.patch b/app-text/docbook-to-man/files/docbook-to-man-0_p19960617-compile.patch |
106 |
new file mode 100644 |
107 |
index 0000000..0b029d1 |
108 |
--- /dev/null |
109 |
+++ b/app-text/docbook-to-man/files/docbook-to-man-0_p19960617-compile.patch |
110 |
@@ -0,0 +1,73 @@ |
111 |
+From a166c7b91b852b368d33f956f4174c7b5cf29e3a Mon Sep 17 00:00:00 2001 |
112 |
+From: Sebastian Pipping <sebastian@×××××××.org> |
113 |
+Date: Thu, 10 May 2012 19:14:02 +0200 |
114 |
+Subject: [PATCH] Fix compilation |
115 |
+ |
116 |
+--- |
117 |
+ Instant/tables.c | 2 +- |
118 |
+ Instant/tptregexp/regerror.c | 1 + |
119 |
+ Instant/tptregexp/regexp.c | 4 ---- |
120 |
+ 3 files changed, 2 insertions(+), 5 deletions(-) |
121 |
+ |
122 |
+diff --git a/Instant/tables.c b/Instant/tables.c |
123 |
+index 146e3e5..4f687e9 100644 |
124 |
+--- a/Instant/tables.c |
125 |
++++ b/Instant/tables.c |
126 |
+@@ -380,7 +380,7 @@ CALStable( |
127 |
+ av[1], av[2]); |
128 |
+ } |
129 |
+ else { |
130 |
+- fprintf(stderr, "Incomplete %s table instruction\n"); |
131 |
++ fprintf(stderr, "Incomplete table instruction\n"); |
132 |
+ } |
133 |
+ } |
134 |
+ |
135 |
+diff --git a/Instant/tptregexp/regerror.c b/Instant/tptregexp/regerror.c |
136 |
+index 7bd554e..c5b65e0 100644 |
137 |
+--- a/Instant/tptregexp/regerror.c |
138 |
++++ b/Instant/tptregexp/regerror.c |
139 |
+@@ -1,4 +1,5 @@ |
140 |
+ #include <stdio.h> |
141 |
++#include <stdlib.h> |
142 |
+ |
143 |
+ void |
144 |
+ tpt_regerror(s) |
145 |
+diff --git a/Instant/tptregexp/regexp.c b/Instant/tptregexp/regexp.c |
146 |
+index 66ddd87..f98fe53 100644 |
147 |
+--- a/Instant/tptregexp/regexp.c |
148 |
++++ b/Instant/tptregexp/regexp.c |
149 |
+@@ -196,7 +196,6 @@ char *exp; |
150 |
+ register char *longest; |
151 |
+ register int len; |
152 |
+ int flags; |
153 |
+- extern char *malloc(); |
154 |
+ |
155 |
+ if (exp == NULL) |
156 |
+ FAIL("NULL argument"); |
157 |
+@@ -705,7 +704,6 @@ register regexp *prog; |
158 |
+ register char *string; |
159 |
+ { |
160 |
+ register char *s; |
161 |
+- extern char *strchr(); |
162 |
+ |
163 |
+ /* Be paranoid... */ |
164 |
+ if (prog == NULL || string == NULL) { |
165 |
+@@ -804,7 +802,6 @@ char *prog; |
166 |
+ { |
167 |
+ register char *scan; /* Current node. */ |
168 |
+ char *next; /* Next node. */ |
169 |
+- extern char *strchr(); |
170 |
+ |
171 |
+ scan = prog; |
172 |
+ #ifdef DEBUG |
173 |
+@@ -1065,7 +1062,6 @@ regexp *r; |
174 |
+ register char *s; |
175 |
+ register char op = EXACTLY; /* Arbitrary non-END op. */ |
176 |
+ register char *next; |
177 |
+- extern char *strchr(); |
178 |
+ |
179 |
+ |
180 |
+ s = r->program + 1; |
181 |
+-- |
182 |
+1.7.8.5 |
183 |
+ |
184 |
|
185 |
diff --git a/app-text/docbook-to-man/metadata.xml b/app-text/docbook-to-man/metadata.xml |
186 |
new file mode 100644 |
187 |
index 0000000..16bcc9f |
188 |
--- /dev/null |
189 |
+++ b/app-text/docbook-to-man/metadata.xml |
190 |
@@ -0,0 +1,8 @@ |
191 |
+<?xml version="1.0" encoding="UTF-8"?> |
192 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
193 |
+<pkgmetadata> |
194 |
+ <maintainer> |
195 |
+ <email>sping@g.o</email> |
196 |
+ <name>Sebastian Pipping</name> |
197 |
+ </maintainer> |
198 |
+</pkgmetadata> |