1 |
commit: 794e1549113644726c709d7102c349c251077d66 |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Thu May 10 19:23:31 2012 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 10 19:31:48 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=794e1549 |
7 |
|
8 |
app-text/docbook-to-man: 2.0.0-r31 |
9 |
|
10 |
--- |
11 |
....0.0.ebuild => docbook-to-man-2.0.0-r31.ebuild} | 17 +++++++--- |
12 |
.../files/docbook-to-man-2.0.0-compile.patch | 35 ++++++++++++++++++++ |
13 |
.../files/docbook-to-man-2.0.0-docbook-4.5.patch | 22 ++++++++++++ |
14 |
.../files/docbook-to-man-2.0.0-paths.patch | 15 ++++++++ |
15 |
4 files changed, 84 insertions(+), 5 deletions(-) |
16 |
|
17 |
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-r31.ebuild |
18 |
similarity index 60% |
19 |
rename from app-text/docbook-to-man/docbook-to-man-2.0.0.ebuild |
20 |
rename to app-text/docbook-to-man/docbook-to-man-2.0.0-r31.ebuild |
21 |
index 6c924c4..ca7c4f9 100644 |
22 |
--- a/app-text/docbook-to-man/docbook-to-man-2.0.0.ebuild |
23 |
+++ b/app-text/docbook-to-man/docbook-to-man-2.0.0-r31.ebuild |
24 |
@@ -4,24 +4,31 @@ |
25 |
|
26 |
EAPI="3" |
27 |
|
28 |
-inherit eutils |
29 |
+inherit versionator eutils |
30 |
|
31 |
+DEBIAN_LEVEL=${PF##*-r} |
32 |
DESCRIPTION="Transform DocBook SGML into nroff/troff man pages" |
33 |
HOMEPAGE="http://www.oasis-open.org/docbook/tools/dtm/" |
34 |
-SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz" |
35 |
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz |
36 |
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${DEBIAN_LEVEL}.debian.tar.gz" |
37 |
|
38 |
LICENSE="MIT" |
39 |
SLOT="0" |
40 |
-KEYWORDS="" # masked for now, does not yet work as expected |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
IUSE="" |
43 |
|
44 |
DEPEND="" |
45 |
-RDEPEND="" |
46 |
+RDEPEND="app-text/openjade |
47 |
+ app-text/docbook-xml-dtd:4.5 |
48 |
+ app-text/docbook-sgml-dtd:4.5" |
49 |
|
50 |
S=${WORKDIR}/${PN}-${PV}.orig |
51 |
|
52 |
src_prepare() { |
53 |
- epatch "${FILESDIR}"/${PN}-0_p19960617-compile.patch |
54 |
+ epatch "${WORKDIR}"/debian/patches/*.patch |
55 |
+ epatch "${FILESDIR}"/${P}-compile.patch |
56 |
+ epatch "${FILESDIR}"/${P}-paths.patch |
57 |
+ epatch "${FILESDIR}"/${P}-docbook-4.5.patch |
58 |
} |
59 |
|
60 |
src_compile() { |
61 |
|
62 |
diff --git a/app-text/docbook-to-man/files/docbook-to-man-2.0.0-compile.patch b/app-text/docbook-to-man/files/docbook-to-man-2.0.0-compile.patch |
63 |
new file mode 100644 |
64 |
index 0000000..1e0ba3b |
65 |
--- /dev/null |
66 |
+++ b/app-text/docbook-to-man/files/docbook-to-man-2.0.0-compile.patch |
67 |
@@ -0,0 +1,35 @@ |
68 |
+From a166c7b91b852b368d33f956f4174c7b5cf29e3a Mon Sep 17 00:00:00 2001 |
69 |
+From: Sebastian Pipping <sebastian@×××××××.org> |
70 |
+Date: Thu, 10 May 2012 19:14:02 +0200 |
71 |
+Subject: [PATCH] Fix compilation |
72 |
+ |
73 |
+--- |
74 |
+ Instant/tables.c | 2 +- |
75 |
+ Instant/tptregexp/regerror.c | 1 + |
76 |
+ 2 files changed, 2 insertions(+), 1 deletions(-) |
77 |
+ |
78 |
+diff --git a/Instant/tables.c b/Instant/tables.c |
79 |
+index 146e3e5..4f687e9 100644 |
80 |
+--- a/Instant/tables.c |
81 |
++++ b/Instant/tables.c |
82 |
+@@ -380,7 +380,7 @@ CALStable( |
83 |
+ av[1], av[2]); |
84 |
+ } |
85 |
+ else { |
86 |
+- fprintf(stderr, "Incomplete %s table instruction\n"); |
87 |
++ fprintf(stderr, "Incomplete table instruction\n"); |
88 |
+ } |
89 |
+ } |
90 |
+ |
91 |
+diff --git a/Instant/tptregexp/regerror.c b/Instant/tptregexp/regerror.c |
92 |
+index 7bd554e..c5b65e0 100644 |
93 |
+--- a/Instant/tptregexp/regerror.c |
94 |
++++ b/Instant/tptregexp/regerror.c |
95 |
+@@ -1,4 +1,5 @@ |
96 |
+ #include <stdio.h> |
97 |
++#include <stdlib.h> |
98 |
+ |
99 |
+ void |
100 |
+ tpt_regerror(s) |
101 |
+-- |
102 |
+1.7.8.5 |
103 |
|
104 |
diff --git a/app-text/docbook-to-man/files/docbook-to-man-2.0.0-docbook-4.5.patch b/app-text/docbook-to-man/files/docbook-to-man-2.0.0-docbook-4.5.patch |
105 |
new file mode 100644 |
106 |
index 0000000..313e366 |
107 |
--- /dev/null |
108 |
+++ b/app-text/docbook-to-man/files/docbook-to-man-2.0.0-docbook-4.5.patch |
109 |
@@ -0,0 +1,22 @@ |
110 |
+--- cmd/docbook-to-man.sh 2012-05-10 21:09:53.895990682 +0200 |
111 |
++++ cmd/docbook-to-man.sh 2012-05-10 21:11:35.830716322 +0200 |
112 |
+@@ -39,7 +39,7 @@ |
113 |
+ |
114 |
+ ROOT=/usr |
115 |
+ SGMLS=$ROOT/share/sgml |
116 |
+-DOCBOOK=$SGMLS/docbook/dtd/4.1 |
117 |
++DOCBOOK=$SGMLS/docbook |
118 |
+ |
119 |
+ if test -x /usr/bin/nsgmls; then |
120 |
+ PARSER=/usr/bin/nsgmls |
121 |
+@@ -51,8 +51,8 @@ |
122 |
+ INSTANT=/usr/bin/instant |
123 |
+ INSTANT_OPT=${INSTANT_OPT:-"-d"} |
124 |
+ |
125 |
+-CATALOG=$DOCBOOK/docbook.cat |
126 |
+-DECL=$DOCBOOK/docbook.dcl |
127 |
++CATALOG=$DOCBOOK/xml-dtd-4.5/docbook.cat |
128 |
++DECL=$DOCBOOK/sgml-dtd-4.5/docbook.dcl |
129 |
+ |
130 |
+ error=false |
131 |
+ |
132 |
|
133 |
diff --git a/app-text/docbook-to-man/files/docbook-to-man-2.0.0-paths.patch b/app-text/docbook-to-man/files/docbook-to-man-2.0.0-paths.patch |
134 |
new file mode 100644 |
135 |
index 0000000..6197f78 |
136 |
--- /dev/null |
137 |
+++ b/app-text/docbook-to-man/files/docbook-to-man-2.0.0-paths.patch |
138 |
@@ -0,0 +1,15 @@ |
139 |
+--- cmd/docbook-to-man.sh 2012-05-10 21:14:57.431195968 +0200 |
140 |
++++ cmd/docbook-to-man.sh 2012-05-10 21:16:40.793903756 +0200 |
141 |
+@@ -63,9 +63,11 @@ |
142 |
+ |
143 |
+ $error && echo "usage: docbook-to-man docbook-instance" 1>&2 && exit 1 |
144 |
+ |
145 |
++TRANSPEC=/usr/share/sgml/transpec |
146 |
++ |
147 |
+ (#cat /tmp/dtm.$$.psinc; |
148 |
+ $PARSER -gl -m$CATALOG $DECL $INSTANCE | |
149 |
+- $INSTANT -croff.cmap -sroff.sdata -tdocbook-to-man.ts $INSTANT_OPT | |
150 |
++ $INSTANT -c$TRANSPEC/roff.cmap -s$TRANSPEC/roff.sdata -t$TRANSPEC/docbook-to-man.ts $INSTANT_OPT | |
151 |
+ sed 's/^[ ]*// |
152 |
+ s/$/ / |
153 |
+ s/--/\\-\\-/g |