1 |
flameeyes 09/09/29 10:45:24 |
2 |
|
3 |
Added: metadata.xml ChangeLog |
4 |
heirloom-doctools-080407.ebuild |
5 |
Log: |
6 |
Initial import of the heirloom-doctools package (alternative to sys-apps/groff derived from OpenSolaris, mostly in C). |
7 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-doc/heirloom-doctools/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/metadata.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/metadata.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 |
<pkgmetadata> |
20 |
<herd>no-herd</herd> |
21 |
<maintainer> |
22 |
<email>flameeyes@g.o</email> |
23 |
</maintainer> |
24 |
<use> |
25 |
<flag name='cxx'> |
26 |
Build the mpm utility; this is disabled by default because it's |
27 |
rarely used and the only C++ tool in the suite. |
28 |
</flag> |
29 |
</use> |
30 |
</pkgmetadata> |
31 |
|
32 |
|
33 |
|
34 |
1.1 app-doc/heirloom-doctools/ChangeLog |
35 |
|
36 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/ChangeLog?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/ChangeLog?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: ChangeLog |
40 |
=================================================================== |
41 |
# ChangeLog for app-doc/heirloom-doctools |
42 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
43 |
# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/ChangeLog,v 1.1 2009/09/29 10:45:23 flameeyes Exp $ |
44 |
|
45 |
*heirloom-doctools-080407 (29 Sep 2009) |
46 |
|
47 |
29 Sep 2009; Diego E. Pettenò <flameeyes@g.o> |
48 |
+files/080407.config, +heirloom-doctools-080407.ebuild, +metadata.xml: |
49 |
Initial import of the heirloom-doctools package (alternative to |
50 |
sys-apps/groff derived from OpenSolaris, mostly in C). |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
1.1 app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild |
56 |
|
57 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild?rev=1.1&view=markup |
58 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild?rev=1.1&content-type=text/plain |
59 |
|
60 |
Index: heirloom-doctools-080407.ebuild |
61 |
=================================================================== |
62 |
# Copyright 1999-2009 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild,v 1.1 2009/09/29 10:45:23 flameeyes Exp $ |
65 |
|
66 |
EAPI=2 |
67 |
|
68 |
inherit flag-o-matic toolchain-funcs multilib |
69 |
|
70 |
DESCRIPTION="Classic Unix documentation tools ported from OpenSolaris" |
71 |
HOMEPAGE="http://heirloom.sourceforge.net/doctools.html" |
72 |
SRC_URI="mirror://sourceforge/heirloom/${P}.tar.bz2" |
73 |
|
74 |
LICENSE="CDDL" |
75 |
|
76 |
SLOT="0" |
77 |
|
78 |
KEYWORDS="~amd64" |
79 |
|
80 |
IUSE="cxx" |
81 |
|
82 |
RDEPEND="!sys-apps/groff" |
83 |
DEPEND="sys-devel/flex |
84 |
sys-devel/bison" |
85 |
|
86 |
src_prepare() { |
87 |
# Make sure that C++ code is built with CXXFLAGS and not CFLAGS. |
88 |
find . -name Makefile.mk -exec \ |
89 |
sed -i \ |
90 |
-e '/(CCC)/s:CFLAGS:CXXFLAGS:' \ |
91 |
{} + |
92 |
|
93 |
# mpm uses C++, we'll build it explicitly if we really want to |
94 |
sed -i -e 's:mpm:$(MPM):' makefile |
95 |
|
96 |
# Monkeypatching dependencies to avoid parallel make failure |
97 |
echo "picl.o: picl.c y.tab.h" >> pic/Makefile.mk |
98 |
} |
99 |
|
100 |
src_configure() { |
101 |
append-cppflags -D_GNU_SOURCE |
102 |
|
103 |
sed \ |
104 |
-e "s:@CFLAGS@:${CFLAGS}:" \ |
105 |
-e "s:@CXXFLAGS@:${CXXFLAGS}:" \ |
106 |
-e "s:@CPPFLAGS@:${CPPFLAGS}:" \ |
107 |
-e "s:@LDFLAGS@:${LDFLAGS}:" \ |
108 |
-e "s:@CC@:$(tc-getCC):" \ |
109 |
-e "s:@CXX@:$(tc-getCXX):" \ |
110 |
-e "s:@RANLIB@:$(tc-getRANLIB):" \ |
111 |
-e "s:@libdir@:$(get_libdir):" \ |
112 |
"${FILESDIR}"/${PV}.config \ |
113 |
> "${S}"/mk.config |
114 |
} |
115 |
|
116 |
src_compile() { |
117 |
emake $(use cxx && echo MPM=mpm) || die |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
# The build system uses the ROOT variable in place of DESTIDR. |
122 |
emake $(use cxx && echo MPM=mpm) ROOT="${D}" install || die |
123 |
|
124 |
dodoc README CHANGES || die |
125 |
|
126 |
# Rename ptx to avoid a collision with coreutils… maybe this |
127 |
# should be made conditional to userland_GNU (somebody got to |
128 |
# check on FreeBSD). |
129 |
mv "${D}"/usr/bin/{,hl-}ptx || die |
130 |
mv "${D}"/usr/share/man/man1/{,hl-}ptx.1* || die |
131 |
|
132 |
# Not sure why they install in man1b, but we don't list that in by |
133 |
# default, so move all of them to man1. We don't do that in the |
134 |
# Makefiles, because it's definitely more complex (even though |
135 |
# faster). |
136 |
pushd "${D}"/usr/share/man |
137 |
for man in man1b/*.1b*; do |
138 |
mv $man ${man//1b/1} || die "failed moving $man" |
139 |
done |
140 |
rmdir man1b |
141 |
popd |
142 |
} |
143 |
|
144 |
pkg_postinst() { |
145 |
elog "To make proper use of heirloom-doctools with sys-apps/man you" |
146 |
elog "need to make sure that /etc/man.conf is configured properly with" |
147 |
elog "the following settings:" |
148 |
elog "" |
149 |
elog "TROFF /usr/bin/troff -Tlocale -mg -msafe -mpadj -mandoc" |
150 |
elog "NROFF /usr/bin/nroff -mg -msafe -mpadj -mandoc" |
151 |
elog "EQN /usr/bin/eqn -Tps" |
152 |
elog "NEQN /usr/bin/neqn -Tlatin1" |
153 |
elog "TBL /usr/bin/tbl" |
154 |
elog "COL /usr/bin/col" |
155 |
elog "REFER /usr/bin/refer" |
156 |
elog "PIC /usr/bin/pic" |
157 |
elog "VGRIND /usr/bin/vgrind" |
158 |
elog "GRAP /usr/bin/grap" |
159 |
} |