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 | 9d2c3a89a4e1854c200d9274a1f13feeecbeaa58 (patch) | |
tree | bfaef9ec637b3d1615f5e8cccd61d62ffbf8c481 /app-doc | |
parent | testsuite needs media-libs/vips[lcms] (diff) | |
download | gentoo-2-9d2c3a89a4e1854c200d9274a1f13feeecbeaa58.tar.gz gentoo-2-9d2c3a89a4e1854c200d9274a1f13feeecbeaa58.tar.bz2 gentoo-2-9d2c3a89a4e1854c200d9274a1f13feeecbeaa58.zip |
Initial import of the heirloom-doctools package (alternative to sys-apps/groff derived from OpenSolaris, mostly in C).
(Portage version: 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/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 |
4 files changed, 152 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/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> |