summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-10-02 21:34:47 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-10-02 21:34:47 +0000
commit4bde15f58000e09defeb42d413616272e7625d85 (patch)
tree574ca77034f77b78fd99df02dee675e1c5ba9a2e /app-doc
parentunmask xorg-server 1.6.4 (diff)
downloadhistorical-4bde15f58000e09defeb42d413616272e7625d85.tar.gz
historical-4bde15f58000e09defeb42d413616272e7625d85.tar.bz2
historical-4bde15f58000e09defeb42d413616272e7625d85.zip
Revision bump with instructions for man-db and two compatibility symlinks.
Package-Manager: portage-2.2_rc42/cvs/Linux x86_64
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/heirloom-doctools/ChangeLog8
-rw-r--r--app-doc/heirloom-doctools/Manifest9
-rw-r--r--app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild173
3 files changed, 185 insertions, 5 deletions
diff --git a/app-doc/heirloom-doctools/ChangeLog b/app-doc/heirloom-doctools/ChangeLog
index b57f3b33daa2..6f7393a15d57 100644
--- a/app-doc/heirloom-doctools/ChangeLog
+++ b/app-doc/heirloom-doctools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-doc/heirloom-doctools
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/ChangeLog,v 1.2 2009/09/30 00:22:49 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/ChangeLog,v 1.3 2009/10/02 21:34:47 flameeyes Exp $
+
+*heirloom-doctools-080407-r2 (02 Oct 2009)
+
+ 02 Oct 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +heirloom-doctools-080407-r2.ebuild:
+ Revision bump with instructions for man-db and two compatibility symlinks.
*heirloom-doctools-080407-r1 (30 Sep 2009)
diff --git a/app-doc/heirloom-doctools/Manifest b/app-doc/heirloom-doctools/Manifest
index e6badbe58515..390f18e81ded 100644
--- a/app-doc/heirloom-doctools/Manifest
+++ b/app-doc/heirloom-doctools/Manifest
@@ -4,12 +4,13 @@ Hash: SHA1
AUX 080407.config 538 RMD160 1d01b990da1ef148535171432e55a66137bb1084 SHA1 10c57cd072f7daa7d1687a01f433505e1cf3728d SHA256 4d4aa496f638eb1778b9f7b097b793d2c60b1fabe1e5fb4b0794347052b94b50
DIST heirloom-doctools-080407.tar.bz2 837016 RMD160 662083312232ce15b5d3a43ed3d21e2cdff49845 SHA1 2e997da8fad0700ae2183b04ad7a286f34b94e8b SHA256 43c0f31908aa476bb16f7159a6337008674afe81754d02b577812d734d559c38
EBUILD heirloom-doctools-080407-r1.ebuild 5008 RMD160 ebf0c1b4d4355e36c87bf4b9e7801f8e6a51b3a4 SHA1 db9097092edb74705f2733ee99e84426c66de42b SHA256 951a041781a556cbd204fe432ab3d5ef95cb40a1cf2d37f4643dd023e6c4b919
-MISC ChangeLog 1139 RMD160 f0ad59946418b803d83898dbce13deaadc2e581b SHA1 f0992955480ae334af1062508afe3ef5ecf12167 SHA256 9f1bbb69b1d9cde6ec6c7fd1d20c771ae1e2cf1194e6c441a70887a5733251eb
+EBUILD heirloom-doctools-080407-r2.ebuild 5870 RMD160 963268658be0b82a9482a44e0687569a0e81dc55 SHA1 290c073f91e562c6a729854ff550b0736d6332a1 SHA256 7f95fd5879290f0e2eee1dd97a6ff004ae4b0b9c305f4c178c50d56d913678d7
+MISC ChangeLog 1356 RMD160 8d4b35ed66b88d927893c0ec9b8d9ecec865c7eb SHA1 393a17bc87b5d0cc47e174339780c2599609bba5 SHA256 3a8cec3b4fe0cebd2fdf2bf61267654dd0792e68300b7d11597698fa09c9b92a
MISC metadata.xml 408 RMD160 c9fcc55b0e2e058d59b97f826c0e85e75b7ee1d9 SHA1 20f49281157e44cf6525c842f0eafeedfd454a8f SHA256 8b38822af3fabff5f68899e7522cc162821f221aed419a2cd8a769102cf45908
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
-iEYEARECAAYFAkrCpNYACgkQAiZjviIA2Xgv3QCdGxZBQ167Kmbl7ZDM7mOtbPuc
-jsAAoN1pfpj2Kx43nAOa5z+vMDYAY/By
-=phVu
+iEYEARECAAYFAkrGcegACgkQAiZjviIA2XjbpwCggYh0TQLz4FdXUnTYhPHdeWQF
+jr0AnRGlSd+rKdi+tLBafjwRjjGHAQHA
+=ifAa
-----END PGP SIGNATURE-----
diff --git a/app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild b/app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild
new file mode 100644
index 000000000000..3671f5680010
--- /dev/null
+++ b/app-doc/heirloom-doctools/heirloom-doctools-080407-r2.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI=2
+
+inherit flag-o-matic toolchain-funcs multilib
+
+DESCRIPTION="Classic Unix documentation tools ported from OpenSolaris"
+HOMEPAGE="http://heirloom.sourceforge.net/doctools.html"
+SRC_URI="mirror://sourceforge/heirloom/${P}.tar.bz2"
+
+LICENSE="CDDL"
+
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="cxx"
+
+RDEPEND="!sys-apps/groff"
+DEPEND="sys-devel/flex
+ sys-devel/bison"
+
+src_prepare() {
+ # Make sure that C++ code is built with CXXFLAGS and not CFLAGS.
+ find . -name Makefile.mk -exec \
+ sed -i \
+ -e '/(CCC)/s:CFLAGS:CXXFLAGS:' \
+ {} +
+
+ # mpm uses C++, we'll build it explicitly if we really want to
+ sed -i -e 's:mpm:$(MPM):' makefile
+
+ # Monkeypatching dependencies to avoid parallel make failure
+ echo "picl.o: picl.c y.tab.h" >> pic/Makefile.mk
+
+ # Move some stuff around to better suit our filesystem layout
+ sed -i -e '/INSTALL.*grap\.defines/s:$(LIBDIR):/usr/share/heirloom/doctools:' \
+ grap/Makefile.mk || die
+ sed -i -e '/GRAPDEFINES/s:LIBDIR:"/usr/share/heirloom/doctools":' \
+ grap/main.c || die
+
+ sed -i -e '/INSTALL.*eign/s:$(LIBDIR):/usr/share/heirloom/doctools:' \
+ ptx/Makefile.mk || die
+ sed -i -e '/\/eign/s:\(LIB\|REF\)DIR:"/usr/share/heirloom/doctools":' \
+ ptx/ptx.c refer/mkey3.c || die
+
+ sed -i -e 's:$(LIBDIR)/vgrindefs:/usr/share/heirloom/doctools/vgrindefs:' \
+ vgrind/Makefile.mk || die
+ sed -i -e '/\/vgrindefs/s:LIBDIR:"/usr/share/heirloom/doctools":' \
+ vgrind/vfontedpr.c || die
+
+ sed -i -e 's:$(REFDIR)/papers:/usr/share/heirloom/reftools/papers:g' \
+ refer/Makefile.mk || die
+ sed -i -e '/\/papers\/Ind/s:REFDIR:"/usr/share/heirloom/reftools":' \
+ refer/refer1.c || die
+
+ # Correct paths for the installed man pages, just to be clean
+ find . \( -name '*.1' -or -name '*.1b' -or -name '*.7' -or -name '*.7b' \) -exec \
+ sed -i \
+ -e "s:/usr/ucblib/grap.defines:/usr/share/heirloom/doctools/grap.defines:" \
+ -e "s:/usr/ucblib/vgrindefs:/usr/share/heirloom/doctools/vgrindefs:" \
+ -e "s:/usr/ucblib/vfontedpr:/usr/libexec/heirloom/doctools/vfontedpr:" \
+ -e "s:/usr/ucblib/tmac/vgrind:/usr/share/heirloom/tmac/vgrind:" \
+ -e "s:/usr/ucblib/eign:/usr/share/heirloom/doctools/eign:" \
+ -e "s:/usr/ucb/:/usr/bin/:g" \
+ -e "s:/usr/ucblib/doctools:/usr/share/heirloom/doctools:g" \
+ -e "s:/usr/ucblib/reftools/papers:/usr/share/heirloom/reftools/papers:" \
+ -e "s:/usr/ucblib/reftools:/usr/libexec/heirloom/reftools:g" \
+ {} +
+}
+
+src_configure() {
+ append-cppflags -D_GNU_SOURCE
+
+ sed \
+ -e "s:@CFLAGS@:${CFLAGS}:" \
+ -e "s:@CXXFLAGS@:${CXXFLAGS}:" \
+ -e "s:@CPPFLAGS@:${CPPFLAGS}:" \
+ -e "s:@LDFLAGS@:${LDFLAGS}:" \
+ -e "s:@CC@:$(tc-getCC):" \
+ -e "s:@CXX@:$(tc-getCXX):" \
+ -e "s:@RANLIB@:$(tc-getRANLIB):" \
+ -e "s:@libdir@:$(get_libdir):" \
+ "${FILESDIR}"/${PV}.config \
+ > "${S}"/mk.config
+}
+
+src_compile() {
+ emake $(use cxx && echo MPM=mpm) || die
+}
+
+src_install() {
+ dodir /usr/share/heirloom/{doc,ref}tools
+
+ # The build system uses the ROOT variable in place of DESTIDR.
+ emake $(use cxx && echo MPM=mpm) ROOT="${D}" install || die
+
+ dodoc README CHANGES || die
+
+ # Rename ptx to avoid a collision with coreutils… maybe this
+ # should be made conditional to userland_GNU (somebody got to
+ # check on FreeBSD).
+ mv "${D}"/usr/bin/{,hl-}ptx || die
+ mv "${D}"/usr/share/man/man1/{,hl-}ptx.1 || die
+
+ # Rename otfdump to avoid a collision with dev-libs/libotf
+ mv "${D}"/usr/bin/{,hl-}otfdump || die
+ mv "${D}"/usr/share/man/man1/{,hl-}otfdump.1 || die
+
+ # Rename ta to avoid a collision with app-cdr/pxlinux
+ mv "${D}"/usr/bin/{,hl-}ta || die
+
+ # Not sure why they install in man{1,7}b, but we don't list that
+ # in by default, so move all of them to man1. We don't do that in
+ # the Makefiles, because it's definitely more complex (even though
+ # faster).
+ pushd "${D}"/usr/share/man
+ for section in 1 7; do
+ for man in man${section}b/*.${section}b*; do
+ if [ -L $man ]; then
+ local oldlink=$(readlink $man)
+ rm $man
+ ln -s ${oldlink//${section}b/${section}} ${man//${section}b/${section}}
+ else
+ mv $man ${man//${section}b/${section}} || die "failed moving $man"
+ fi
+ done
+ done
+ rmdir man{1,7}b
+ popd
+
+ # Add some compatibility encodings for being able to use heirloom-doctools with
+ # sys-apps/man-db
+ for encoding in utf8 ascii; do
+ ln -s tab.37 "${D}"/usr/share/heirloom/nterm/tab.${encoding}
+ done
+}
+
+pkg_postinst() {
+ if has_version sys-apps/man; then
+ elog "To make proper use of heirloom-doctools with sys-apps/man you"
+ elog "need to make sure that /etc/man.conf is configured properly with"
+ elog "the following settings:"
+ elog ""
+ elog "TROFF /usr/bin/troff -Tlocale -mg -msafe -mpadj -mandoc"
+ elog "NROFF /usr/bin/nroff -mg -msafe -mpadj -mandoc"
+ elog "EQN /usr/bin/eqn -Tps"
+ elog "NEQN /usr/bin/neqn -Tlatin1"
+ elog "TBL /usr/bin/tbl"
+ elog "COL /usr/bin/col"
+ elog "REFER /usr/bin/refer"
+ elog "PIC /usr/bin/pic"
+ elog "VGRIND /usr/bin/vgrind"
+ elog "GRAP /usr/bin/grap"
+ elif has_version sys-apps/man-db; then
+ elog "To make proper use of heirloom-doctools with sys-apps/man you"
+ elog "need to make sure that /etc/man_db.conf is configured properly with"
+ elog "the following settings:"
+ elog ""
+ elog "DEFINE troff troff -Tlocale -mg -msafe -mpadj -mandoc"
+ elog "DEFINE nroff nroff -mg -msafe -mpadj -mandoc"
+ elog "DEFINE eqn eqn -Tps"
+ elog "DEFINE neqn neqn -Tlatin1"
+ elog "DEFINE tbl tbl"
+ elog "DEFINE col col"
+ elog "DEFINE vgrind vgrind"
+ elog "DEFINE refer refer"
+ elog "DEFINE grap grap"
+ elog "DEFINE pic pic"
+ fi
+}