public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Diego Petteno (flameeyes)" <flameeyes@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-doc/heirloom-doctools: metadata.xml ChangeLog heirloom-doctools-080407.ebuild
Date: Tue, 29 Sep 2009 10:45:24 +0000	[thread overview]
Message-ID: <E1MsaCy-0002hZ-7g@stork.gentoo.org> (raw)

flameeyes    09/09/29 10:45:24

  Added:                metadata.xml ChangeLog
                        heirloom-doctools-080407.ebuild
  Log:
  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)

Revision  Changes    Path
1.1                  app-doc/heirloom-doctools/metadata.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?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>



1.1                  app-doc/heirloom-doctools/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# 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).




1.1                  app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild?rev=1.1&content-type=text/plain

Index: heirloom-doctools-080407.ebuild
===================================================================
# 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"
}






                 reply	other threads:[~2009-09-29 10:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1MsaCy-0002hZ-7g@stork.gentoo.org \
    --to=flameeyes@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox