diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-09-30 00:22:50 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-09-30 00:22:50 +0000 |
commit | 66a17207a6c559f901d83045a3521b4b74c751fe (patch) | |
tree | 0b889cda5bae4d8d91e2a77c971218ed24211e7d | |
parent | Version bump (diff) | |
download | historical-66a17207a6c559f901d83045a3521b4b74c751fe.tar.gz historical-66a17207a6c559f901d83045a3521b4b74c751fe.tar.bz2 historical-66a17207a6c559f901d83045a3521b4b74c751fe.zip |
Improvements: fix man pages installation, all of them, and symlinks; fix man pages themselves, by changing the paths; install the datafiles in /usr/share rather than /usr/libexec, and try to use a more organised tree; rename ta and otfdump commands to avoid collisions (found by tinderbox); add ~x86 keyword. The sed lines shold probably become a patchset to send upstream, but I'm leaving this for another day.
Package-Manager: portage-2.2_rc42/cvs/Linux x86_64
-rw-r--r-- | app-doc/heirloom-doctools/ChangeLog | 13 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/Manifest | 12 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/files/080407.config | 6 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/heirloom-doctools-080407-r1.ebuild | 150 | ||||
-rw-r--r-- | app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild | 98 |
5 files changed, 171 insertions, 108 deletions
diff --git a/app-doc/heirloom-doctools/ChangeLog b/app-doc/heirloom-doctools/ChangeLog index 7c13b5ad36ea..b57f3b33daa2 100644 --- a/app-doc/heirloom-doctools/ChangeLog +++ b/app-doc/heirloom-doctools/ChangeLog @@ -1,6 +1,17 @@ # 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 $ +# $Header: /var/cvsroot/gentoo-x86/app-doc/heirloom-doctools/ChangeLog,v 1.2 2009/09/30 00:22:49 flameeyes Exp $ + +*heirloom-doctools-080407-r1 (30 Sep 2009) + + 30 Sep 2009; Diego E. Pettenò <flameeyes@gentoo.org> files/080407.config, + -heirloom-doctools-080407.ebuild, +heirloom-doctools-080407-r1.ebuild: + Improvements: fix man pages installation, all of them, and symlinks; fix + man pages themselves, by changing the paths; install the datafiles in + /usr/share rather than /usr/libexec, and try to use a more organised tree; + rename ta and otfdump commands to avoid collisions (found by tinderbox); + add ~x86 keyword. The sed lines shold probably become a patchset to send + upstream, but I'm leaving this for another day. *heirloom-doctools-080407 (29 Sep 2009) diff --git a/app-doc/heirloom-doctools/Manifest b/app-doc/heirloom-doctools/Manifest index 449e42f2b9e5..e6badbe58515 100644 --- a/app-doc/heirloom-doctools/Manifest +++ b/app-doc/heirloom-doctools/Manifest @@ -1,15 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX 080407.config 538 RMD160 661051fb875205afe144426725a437229a93631f SHA1 15b8bf2d4829f42623b8c4c0eb9b6074ad2adea9 SHA256 9d8c377dec905176a913a2e7a8ec3af9278404ef4e2c57ee2fbaf9c67567a4bd +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.ebuild 2841 RMD160 7b91fb690ab1e90b06683f56f43370e781326250 SHA1 604450992c2c18ba5de01498eeec694c5864b9d2 SHA256 6f8451e9ab695f443f02bec16a6ce468a62d89b500d58eef69984cd3be23fe33 -MISC ChangeLog 520 RMD160 316d54a34457be2aeed4e6840939ce83d8bd335d SHA1 4af57b3fe255361583d8486fa8140c42f70c2d22 SHA256 5d4d81a1f39b5ccdf37eab3edbf11e61a6a82edd7103975342781cb1d7dcc332 +EBUILD heirloom-doctools-080407-r1.ebuild 5008 RMD160 ebf0c1b4d4355e36c87bf4b9e7801f8e6a51b3a4 SHA1 db9097092edb74705f2733ee99e84426c66de42b SHA256 951a041781a556cbd204fe432ab3d5ef95cb40a1cf2d37f4643dd023e6c4b919 +MISC ChangeLog 1139 RMD160 f0ad59946418b803d83898dbce13deaadc2e581b SHA1 f0992955480ae334af1062508afe3ef5ecf12167 SHA256 9f1bbb69b1d9cde6ec6c7fd1d20c771ae1e2cf1194e6c441a70887a5733251eb 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 +iEYEARECAAYFAkrCpNYACgkQAiZjviIA2Xgv3QCdGxZBQ167Kmbl7ZDM7mOtbPuc +jsAAoN1pfpj2Kx43nAOa5z+vMDYAY/By +=phVu -----END PGP SIGNATURE----- diff --git a/app-doc/heirloom-doctools/files/080407.config b/app-doc/heirloom-doctools/files/080407.config index 90ad6f2f7383..120f6d32e2f1 100644 --- a/app-doc/heirloom-doctools/files/080407.config +++ b/app-doc/heirloom-doctools/files/080407.config @@ -1,8 +1,8 @@ INSTALL=/usr/bin/install PREFIX=/usr BINDIR=$(PREFIX)/bin -LIBDIR=$(PREFIX)/libexec/heirloom-doctools -PKGDATADIR=$(PREFIX)/share/heirloom-doctools +LIBDIR=$(PREFIX)/libexec/heirloom/doctools +PKGDATADIR=$(PREFIX)/share/heirloom PUBDIR=$(PKGDATADIR)/pub MANDIR=$(PREFIX)/share/man MACDIR=$(PKGDATADIR)/tmac @@ -10,7 +10,7 @@ FNTDIR=$(PKGDATADIR)/doctools/font PSTDIR=$(FNTDIR)/devpost/postscript TABDIR=$(PKGDATADIR)/nterm HYPDIR=$(PKGDATADIR)/hyphen -REFDIR=$(PREFIX)/libexec/reftools +REFDIR=$(PREFIX)/libexec/heirloom/reftools EUC=-DEUC diff --git a/app-doc/heirloom-doctools/heirloom-doctools-080407-r1.ebuild b/app-doc/heirloom-doctools/heirloom-doctools-080407-r1.ebuild new file mode 100644 index 000000000000..4bfa90a715bb --- /dev/null +++ b/app-doc/heirloom-doctools/heirloom-doctools-080407-r1.ebuild @@ -0,0 +1,150 @@ +# 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-r1.ebuild,v 1.1 2009/09/30 00:22:49 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 +} + +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/heirloom-doctools-080407.ebuild b/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild deleted file mode 100644 index 02a0bfc9c68d..000000000000 --- a/app-doc/heirloom-doctools/heirloom-doctools-080407.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# 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" -} |