diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-09-29 10:45:24 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-09-29 10:45:24 +0000 |
commit | a8aa3513bdf292c7a471cc8ecb1419e1e6405682 (patch) | |
tree | 544d5feb79f9a51acfcedefc80e815d6a2845183 /app-doc | |
parent | testsuite needs media-libs/vips[lcms] (diff) | |
download | historical-a8aa3513bdf292c7a471cc8ecb1419e1e6405682.tar.gz historical-a8aa3513bdf292c7a471cc8ecb1419e1e6405682.tar.bz2 historical-a8aa3513bdf292c7a471cc8ecb1419e1e6405682.zip |
Initial import of the heirloom-doctools package (alternative to sys-apps/groff derived from OpenSolaris, mostly in C).
Package-Manager: portage-2.2_rc42/cvs/Linux x86_64
Diffstat (limited to 'app-doc')
-rw-r--r-- | app-doc/heirloom-doctools/ChangeLog | 11 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/Manifest | 15 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/files/080407.config | 29 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild | 98 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/metadata.xml | 14 |
5 files changed, 167 insertions, 0 deletions
diff --git a/app-doc/heirloom-doctools/ChangeLog b/app-doc/heirloom-doctools/ChangeLog new file mode 100644 index 000000000000..7c13b5ad36ea --- /dev/null +++ b/app-doc/heirloom-doctools/ChangeLog @@ -0,0 +1,11 @@ +# 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.1 2009/09/29 10:45:23 flameeyes Exp $ + +*heirloom-doctools-080407 (29 Sep 2009) + + 29 Sep 2009; Diego E. Pettenò <flameeyes@gentoo.org> + +files/080407.config, +heirloom-doctools-080407.ebuild, +metadata.xml: + Initial import of the heirloom-doctools package (alternative to + sys-apps/groff derived from OpenSolaris, mostly in C). + diff --git a/app-doc/heirloom-doctools/Manifest b/app-doc/heirloom-doctools/Manifest new file mode 100644 index 000000000000..449e42f2b9e5 --- /dev/null +++ b/app-doc/heirloom-doctools/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 080407.config 538 RMD160 661051fb875205afe144426725a437229a93631f SHA1 15b8bf2d4829f42623b8c4c0eb9b6074ad2adea9 SHA256 9d8c377dec905176a913a2e7a8ec3af9278404ef4e2c57ee2fbaf9c67567a4bd +DIST heirloom-doctools-080407.tar.bz2 837016 RMD160 662083312232ce15b5d3a43ed3d21e2cdff49845 SHA1 2e997da8fad0700ae2183b04ad7a286f34b94e8b SHA256 43c0f31908aa476bb16f7159a6337008674afe81754d02b577812d734d559c38 +EBUILD heirloom-doctools-080407.ebuild 2841 RMD160 7b91fb690ab1e90b06683f56f43370e781326250 SHA1 604450992c2c18ba5de01498eeec694c5864b9d2 SHA256 6f8451e9ab695f443f02bec16a6ce468a62d89b500d58eef69984cd3be23fe33 +MISC ChangeLog 520 RMD160 316d54a34457be2aeed4e6840939ce83d8bd335d SHA1 4af57b3fe255361583d8486fa8140c42f70c2d22 SHA256 5d4d81a1f39b5ccdf37eab3edbf11e61a6a82edd7103975342781cb1d7dcc332 +MISC metadata.xml 408 RMD160 c9fcc55b0e2e058d59b97f826c0e85e75b7ee1d9 SHA1 20f49281157e44cf6525c842f0eafeedfd454a8f SHA256 8b38822af3fabff5f68899e7522cc162821f221aed419a2cd8a769102cf45908 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkrB5UIACgkQAiZjviIA2XiyUACglzc0OAJsVZbND/WfIE3lQuYG +L1oAoKx2VICHcQicVIpt/LmBtb61bdcp +=0nrH +-----END PGP SIGNATURE----- diff --git a/app-doc/heirloom-doctools/files/080407.config b/app-doc/heirloom-doctools/files/080407.config new file mode 100644 index 000000000000..90ad6f2f7383 --- /dev/null +++ b/app-doc/heirloom-doctools/files/080407.config @@ -0,0 +1,29 @@ +INSTALL=/usr/bin/install +PREFIX=/usr +BINDIR=$(PREFIX)/bin +LIBDIR=$(PREFIX)/libexec/heirloom-doctools +PKGDATADIR=$(PREFIX)/share/heirloom-doctools +PUBDIR=$(PKGDATADIR)/pub +MANDIR=$(PREFIX)/share/man +MACDIR=$(PKGDATADIR)/tmac +FNTDIR=$(PKGDATADIR)/doctools/font +PSTDIR=$(FNTDIR)/devpost/postscript +TABDIR=$(PKGDATADIR)/nterm +HYPDIR=$(PKGDATADIR)/hyphen +REFDIR=$(PREFIX)/libexec/reftools + +EUC=-DEUC + +STRIP=true +CC=@CC@ +CCC=@CXX@ +CFLAGS=@CFLAGS@ +CXXFLAGS=@CXXFLAGS@ +CPPFLAGS=@CPPFLAGS@ +LDFLAGS=@LDFLAGS@ + +LIBS= + +SHELL=/bin/sh + +RANLIB=@RANLIB@ diff --git a/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild b/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild new file mode 100644 index 000000000000..02a0bfc9c68d --- /dev/null +++ b/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild @@ -0,0 +1,98 @@ +# 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.ebuild,v 1.1 2009/09/29 10:45:23 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" + +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 +} + +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() { + # 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 + + # Not sure why they install in man1b, 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 man in man1b/*.1b*; do + mv $man ${man//1b/1} || die "failed moving $man" + done + rmdir man1b + popd +} + +pkg_postinst() { + 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" +} diff --git a/app-doc/heirloom-doctools/metadata.xml b/app-doc/heirloom-doctools/metadata.xml new file mode 100644 index 000000000000..5f654e69b4a7 --- /dev/null +++ b/app-doc/heirloom-doctools/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> + <use> + <flag name='cxx'> + Build the mpm utility; this is disabled by default because it's + rarely used and the only C++ tool in the suite. + </flag> + </use> +</pkgmetadata> |