diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2005-02-14 11:30:52 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2005-02-14 11:30:52 +0000 |
commit | c3b0bdc4fb52caece0aa9fcde2fe7df638268d96 (patch) | |
tree | 68df33ec38efd7a61c4ed93304a2e6350149f265 /x11-libs/lesstif | |
parent | Bug #69550, make sure openssl is built correctly to work with unstripped /lib... (diff) | |
download | gentoo-2-c3b0bdc4fb52caece0aa9fcde2fe7df638268d96.tar.gz gentoo-2-c3b0bdc4fb52caece0aa9fcde2fe7df638268d96.tar.bz2 gentoo-2-c3b0bdc4fb52caece0aa9fcde2fe7df638268d96.zip |
update virtual build
(Portage version: 2.0.51-r15)
Diffstat (limited to 'x11-libs/lesstif')
-rw-r--r-- | x11-libs/lesstif/lesstif-0.94.0-r1.ebuild | 75 |
1 files changed, 57 insertions, 18 deletions
diff --git a/x11-libs/lesstif/lesstif-0.94.0-r1.ebuild b/x11-libs/lesstif/lesstif-0.94.0-r1.ebuild index 66defa42614e..7f9fdc23a38b 100644 --- a/x11-libs/lesstif/lesstif-0.94.0-r1.ebuild +++ b/x11-libs/lesstif/lesstif-0.94.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.94.0-r1.ebuild,v 1.2 2005/02/13 05:48:30 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.94.0-r1.ebuild,v 1.3 2005/02/14 11:30:52 lanius Exp $ inherit libtool flag-o-matic multilib @@ -10,19 +10,20 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="LGPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~ppc-macos ~sparc ~x86" +KEYWORDS="alpha amd64 hppa ppc ppc64 ~ppc-macos sparc x86" IUSE="" DEPEND="virtual/libc - virtual/x11 - !virtual/motif" + virtual/x11" +#x11-libs/motif-config + PROVIDE="virtual/motif" src_compile() { use ppc-macos || elibtoolize - if use ppc-macos; then - append-ldflags -L/usr/X11R6/lib -lX11 -lXt + if use ppc-macos || macos ; then + append-ldflags -L/usr/lib -lX11 -lXt fi econf \ @@ -34,19 +35,57 @@ src_compile() { } src_install() { - make DESTDIR="${D}" install || die "make install" + make DESTDIR=${D} install || die "make install" + + + einfo "Fixing binaries" + dodir /usr/bin/lesstif + for file in `ls ${D}/usr/bin` + do + mv ${D}/usr/bin/${file} ${D}/usr/bin/${file}-lesstif + done + rm -f ${D}/usr/bin/lesstif/mxmkmf + rm -fR ${D}/usr/bin + + + einfo "Fixing docs" + dodir /usr/share/doc/ + mv ${D}/usr/LessTif ${D}/usr/share/doc/${P} + rm -fR ${D}/usr/$(get_libdir)/LessTif - # cleanup - rm -fR ${D}/usr/lib64/LessTif/ - rm -fR ${D}/usr/share/aclocal - # move docs - dodir /usr/share/doc/${P} - mv ${D}/usr/LessTif/* ${D}/usr/share/doc/${P}/ - rm -fR ${D}/usr/LessTif/ + einfo "Fixing libraries" + dodir /usr/$(get_libdir)/lesstif + mv ${D}/usr/$(get_libdir)/$(get_libdir)* ${D}/usr/$(get_libdir)/lesstif + + + einfo "Fixing includes" + dodir /usr/include/lesstif/ + mv ${D}/usr/include/* ${D}/usr/include/lesstif + rm -fR ${D}/usr/include + + + einfo "Fixing man pages" + dodir /usr/share/man/{man1,man3,man5} + for file in `ls ${D}/usr/share/man/man1` + do + file=${file/.1/} + mv ${D}/usr/share/man/man1/${file}.1 ${D}/usr/share/man/man1/${file}-lesstif.1 + done + for file in `ls ${D}/usr/share/man/man3` + do + file=${file/.3/} + mv ${D}/usr/share/man/man3/${file}.3 ${D}/usr/share/man/man3/${file}-lesstif.3 + done + for file in `ls ${D}/usr/share/man/man6` + do + file=${file/.5/} + mv ${D}/usr/share/man/man5/${file}.5 ${D}/usr/share/man/man5/${file}-lesstif.5 + done + rm -fR ${D}/usr/share/man + + rm -fR ${D}/usr/share/aclocal - # move config files - dodir /etc/X11 - mv ${D}/usr/$(get_libdir)/X11/* ${D}/etc/X11 - dosym /etc/X11/mwm /usr/$(get_libdir)/X11/mwm + # insinto /et/env.d/motif lesstif + # motif-config lesstif } |