1 |
flameeyes 09/10/02 21:34:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: heirloom-doctools-080407-r2.ebuild |
5 |
Log: |
6 |
Revision bump with instructions for man-db and two compatibility symlinks. |
7 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 app-doc/heirloom-doctools/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/ChangeLog?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/ChangeLog?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/ChangeLog?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/ChangeLog,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- ChangeLog 30 Sep 2009 00:22:49 -0000 1.2 |
23 |
+++ ChangeLog 2 Oct 2009 21:34:47 -0000 1.3 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-doc/heirloom-doctools |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/ChangeLog,v 1.2 2009/09/30 00:22:49 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/ChangeLog,v 1.3 2009/10/02 21:34:47 flameeyes Exp $ |
29 |
+ |
30 |
+*heirloom-doctools-080407-r2 (02 Oct 2009) |
31 |
+ |
32 |
+ 02 Oct 2009; Diego E. Pettenò <flameeyes@g.o> |
33 |
+ +heirloom-doctools-080407-r2.ebuild: |
34 |
+ Revision bump with instructions for man-db and two compatibility symlinks. |
35 |
|
36 |
*heirloom-doctools-080407-r1 (30 Sep 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: heirloom-doctools-080407-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild,v 1.1 2009/10/02 21:34:47 flameeyes Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
|
54 |
inherit flag-o-matic toolchain-funcs multilib |
55 |
|
56 |
DESCRIPTION="Classic Unix documentation tools ported from OpenSolaris" |
57 |
HOMEPAGE="http://heirloom.sourceforge.net/doctools.html" |
58 |
SRC_URI="mirror://sourceforge/heirloom/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="CDDL" |
61 |
|
62 |
SLOT="0" |
63 |
|
64 |
KEYWORDS="~amd64 ~x86" |
65 |
|
66 |
IUSE="cxx" |
67 |
|
68 |
RDEPEND="!sys-apps/groff" |
69 |
DEPEND="sys-devel/flex |
70 |
sys-devel/bison" |
71 |
|
72 |
src_prepare() { |
73 |
# Make sure that C++ code is built with CXXFLAGS and not CFLAGS. |
74 |
find . -name Makefile.mk -exec \ |
75 |
sed -i \ |
76 |
-e '/(CCC)/s:CFLAGS:CXXFLAGS:' \ |
77 |
{} + |
78 |
|
79 |
# mpm uses C++, we'll build it explicitly if we really want to |
80 |
sed -i -e 's:mpm:$(MPM):' makefile |
81 |
|
82 |
# Monkeypatching dependencies to avoid parallel make failure |
83 |
echo "picl.o: picl.c y.tab.h" >> pic/Makefile.mk |
84 |
|
85 |
# Move some stuff around to better suit our filesystem layout |
86 |
sed -i -e '/INSTALL.*grap\.defines/s:$(LIBDIR):/usr/share/heirloom/doctools:' \ |
87 |
grap/Makefile.mk || die |
88 |
sed -i -e '/GRAPDEFINES/s:LIBDIR:"/usr/share/heirloom/doctools":' \ |
89 |
grap/main.c || die |
90 |
|
91 |
sed -i -e '/INSTALL.*eign/s:$(LIBDIR):/usr/share/heirloom/doctools:' \ |
92 |
ptx/Makefile.mk || die |
93 |
sed -i -e '/\/eign/s:\(LIB\|REF\)DIR:"/usr/share/heirloom/doctools":' \ |
94 |
ptx/ptx.c refer/mkey3.c || die |
95 |
|
96 |
sed -i -e 's:$(LIBDIR)/vgrindefs:/usr/share/heirloom/doctools/vgrindefs:' \ |
97 |
vgrind/Makefile.mk || die |
98 |
sed -i -e '/\/vgrindefs/s:LIBDIR:"/usr/share/heirloom/doctools":' \ |
99 |
vgrind/vfontedpr.c || die |
100 |
|
101 |
sed -i -e 's:$(REFDIR)/papers:/usr/share/heirloom/reftools/papers:g' \ |
102 |
refer/Makefile.mk || die |
103 |
sed -i -e '/\/papers\/Ind/s:REFDIR:"/usr/share/heirloom/reftools":' \ |
104 |
refer/refer1.c || die |
105 |
|
106 |
# Correct paths for the installed man pages, just to be clean |
107 |
find . \( -name '*.1' -or -name '*.1b' -or -name '*.7' -or -name '*.7b' \) -exec \ |
108 |
sed -i \ |
109 |
-e "s:/usr/ucblib/grap.defines:/usr/share/heirloom/doctools/grap.defines:" \ |
110 |
-e "s:/usr/ucblib/vgrindefs:/usr/share/heirloom/doctools/vgrindefs:" \ |
111 |
-e "s:/usr/ucblib/vfontedpr:/usr/libexec/heirloom/doctools/vfontedpr:" \ |
112 |
-e "s:/usr/ucblib/tmac/vgrind:/usr/share/heirloom/tmac/vgrind:" \ |
113 |
-e "s:/usr/ucblib/eign:/usr/share/heirloom/doctools/eign:" \ |
114 |
-e "s:/usr/ucb/:/usr/bin/:g" \ |
115 |
-e "s:/usr/ucblib/doctools:/usr/share/heirloom/doctools:g" \ |
116 |
-e "s:/usr/ucblib/reftools/papers:/usr/share/heirloom/reftools/papers:" \ |
117 |
-e "s:/usr/ucblib/reftools:/usr/libexec/heirloom/reftools:g" \ |
118 |
{} + |
119 |
} |
120 |
|
121 |
src_configure() { |
122 |
append-cppflags -D_GNU_SOURCE |
123 |
|
124 |
sed \ |
125 |
-e "s:@CFLAGS@:${CFLAGS}:" \ |
126 |
-e "s:@CXXFLAGS@:${CXXFLAGS}:" \ |
127 |
-e "s:@CPPFLAGS@:${CPPFLAGS}:" \ |
128 |
-e "s:@LDFLAGS@:${LDFLAGS}:" \ |
129 |
-e "s:@CC@:$(tc-getCC):" \ |
130 |
-e "s:@CXX@:$(tc-getCXX):" \ |
131 |
-e "s:@RANLIB@:$(tc-getRANLIB):" \ |
132 |
-e "s:@libdir@:$(get_libdir):" \ |
133 |
"${FILESDIR}"/${PV}.config \ |
134 |
> "${S}"/mk.config |
135 |
} |
136 |
|
137 |
src_compile() { |
138 |
emake $(use cxx && echo MPM=mpm) || die |
139 |
} |
140 |
|
141 |
src_install() { |
142 |
dodir /usr/share/heirloom/{doc,ref}tools |
143 |
|
144 |
# The build system uses the ROOT variable in place of DESTIDR. |
145 |
emake $(use cxx && echo MPM=mpm) ROOT="${D}" install || die |
146 |
|
147 |
dodoc README CHANGES || die |
148 |
|
149 |
# Rename ptx to avoid a collision with coreutils… maybe this |
150 |
# should be made conditional to userland_GNU (somebody got to |
151 |
# check on FreeBSD). |
152 |
mv "${D}"/usr/bin/{,hl-}ptx || die |
153 |
mv "${D}"/usr/share/man/man1/{,hl-}ptx.1 || die |
154 |
|
155 |
# Rename otfdump to avoid a collision with dev-libs/libotf |
156 |
mv "${D}"/usr/bin/{,hl-}otfdump || die |
157 |
mv "${D}"/usr/share/man/man1/{,hl-}otfdump.1 || die |
158 |
|
159 |
# Rename ta to avoid a collision with app-cdr/pxlinux |
160 |
mv "${D}"/usr/bin/{,hl-}ta || die |
161 |
|
162 |
# Not sure why they install in man{1,7}b, but we don't list that |
163 |
# in by default, so move all of them to man1. We don't do that in |
164 |
# the Makefiles, because it's definitely more complex (even though |
165 |
# faster). |
166 |
pushd "${D}"/usr/share/man |
167 |
for section in 1 7; do |
168 |
for man in man${section}b/*.${section}b*; do |
169 |
if [ -L $man ]; then |
170 |
local oldlink=$(readlink $man) |
171 |
rm $man |
172 |
ln -s ${oldlink//${section}b/${section}} ${man//${section}b/${section}} |
173 |
else |
174 |
mv $man ${man//${section}b/${section}} || die "failed moving $man" |
175 |
fi |
176 |
done |
177 |
done |
178 |
rmdir man{1,7}b |
179 |
popd |
180 |
|
181 |
# Add some compatibility encodings for being able to use heirloom-doctools with |
182 |
# sys-apps/man-db |
183 |
for encoding in utf8 ascii; do |
184 |
ln -s tab.37 "${D}"/usr/share/heirloom/nterm/tab.${encoding} |
185 |
done |
186 |
} |
187 |
|
188 |
pkg_postinst() { |
189 |
if has_version sys-apps/man; then |
190 |
elog "To make proper use of heirloom-doctools with sys-apps/man you" |
191 |
elog "need to make sure that /etc/man.conf is configured properly with" |
192 |
elog "the following settings:" |
193 |
elog "" |
194 |
elog "TROFF /usr/bin/troff -Tlocale -mg -msafe -mpadj -mandoc" |
195 |
elog "NROFF /usr/bin/nroff -mg -msafe -mpadj -mandoc" |
196 |
elog "EQN /usr/bin/eqn -Tps" |
197 |
elog "NEQN /usr/bin/neqn -Tlatin1" |
198 |
elog "TBL /usr/bin/tbl" |
199 |
elog "COL /usr/bin/col" |
200 |
elog "REFER /usr/bin/refer" |
201 |
elog "PIC /usr/bin/pic" |
202 |
elog "VGRIND /usr/bin/vgrind" |
203 |
elog "GRAP /usr/bin/grap" |
204 |
elif has_version sys-apps/man-db; then |
205 |
elog "To make proper use of heirloom-doctools with sys-apps/man you" |
206 |
elog "need to make sure that /etc/man_db.conf is configured properly with" |
207 |
elog "the following settings:" |
208 |
elog "" |
209 |
elog "DEFINE troff troff -Tlocale -mg -msafe -mpadj -mandoc" |
210 |
elog "DEFINE nroff nroff -mg -msafe -mpadj -mandoc" |
211 |
elog "DEFINE eqn eqn -Tps" |
212 |
elog "DEFINE neqn neqn -Tlatin1" |
213 |
elog "DEFINE tbl tbl" |
214 |
elog "DEFINE col col" |
215 |
elog "DEFINE vgrind vgrind" |
216 |
elog "DEFINE refer refer" |
217 |
elog "DEFINE grap grap" |
218 |
elog "DEFINE pic pic" |
219 |
fi |
220 |
} |