diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2006-02-20 10:24:02 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2006-02-20 10:24:02 +0000 |
commit | 51400605c6bb5dbf47d48e8b88f1e8399bb741e1 (patch) | |
tree | 94d9005b4cc4e16ab4ddf533a87c8d2464121049 /x11-libs/motif-config/motif-config-0.10.ebuild | |
parent | Version bump. Also install documentation and hxascdmp utility. (diff) | |
download | historical-51400605c6bb5dbf47d48e8b88f1e8399bb741e1.tar.gz historical-51400605c6bb5dbf47d48e8b88f1e8399bb741e1.tar.bz2 historical-51400605c6bb5dbf47d48e8b88f1e8399bb741e1.zip |
bug #123226; add proper return codes; fix previsouly broken motif installations
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'x11-libs/motif-config/motif-config-0.10.ebuild')
-rw-r--r-- | x11-libs/motif-config/motif-config-0.10.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/x11-libs/motif-config/motif-config-0.10.ebuild b/x11-libs/motif-config/motif-config-0.10.ebuild new file mode 100644 index 000000000000..b261773caec3 --- /dev/null +++ b/x11-libs/motif-config/motif-config-0.10.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif-config/motif-config-0.10.ebuild,v 1.1 2006/02/20 10:24:02 lanius Exp $ + +inherit multilib + +DESCRIPTION="Utility to change the default Motif library" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="!<x11-libs/openmotif-2.1.30-r13 +!=x11-libs/openmotif-2.2.2* +!=x11-libs/openmotif-2.2.3 +!=x11-libs/openmotif-2.2.3-r1 +!=x11-libs/openmotif-2.2.3-r2 +!=x11-libs/openmotif-2.2.3-r3 +!=x11-libs/openmotif-2.2.3-r4 +!=x11-libs/openmotif-2.2.3-r5 +!=x11-libs/openmotif-2.2.3-r6 + +!<x11-libs/lesstif-0.93.94-r4 +!=x11-libs/lesstif-0.93.97 +!=x11-libs/lesstif-0.94.0*" + +RDEPEND="${DEPEND} + app-shells/bash" + +src_unpack(){ + einfo "nothing to unpack" +} + +src_compile() { + einfo "nothing to compile" +} + +src_install () { + exeinto /usr/bin + newexe ${FILESDIR}/${P} motif-config + dosed "s:@@LIBDIR@@:$(get_libdir):g" /usr/bin/motif-config + + # for profile + dodir /usr/$(get_libdir)/motif + keepdir /usr/$(get_libdir)/motif + + # bitmaps + #dodir /usr/include/X11/bitmaps + #tar -xjf ${FILESDIR}/bitmaps.tbz2 -C ${D}/usr/include/X11/bitmaps + # bindings + #dodir /usr/$(get_libdir)/X11/bindings + #tar -xjf ${FILESDIR}/bindings.tbz2 -C ${D}/usr/$(get_libdir)/X11/bindings + + # mwm default config + insinto /etc/X11/app-defaults + doins ${FILESDIR}/Mwm.defaults + + insinto /etc/X11/mwm + doins ${FILESDIR}/system.mwmrc + + dodir /usr/$(get_libdir)/X11 + dosym /etc/X11/mwm /usr/$(get_libdir)/X11/mwm +} + +pkg_setup() { + # clean up cruft left over by old versions + removed=no + has_version =x11-libs/openmotif-2.1.30* \ + || ( rm -f /usr/$(get_libdir)/motif/openmotif-2.1; \ + rm -fR /usr/include/openmotif-2.1; \ + rm -fR /usr/$(get_libdir)/openmotif-2.1; + removed=yes ) + has_version =x11-libs/openmotif-2.2.3* \ + || ( rm -f /usr/$(get_libdir)/motif/openmotif-2.2; \ + rm -fR /usr/include/openmotif-2.2; \ + rm -fR /usr/$(get_libdir)/openmotif-2.2; + removed=yes ) + has_version =x11-libs/lesstif-0.93.94* \ + || ( rm -f /usr/$(get_libdir)/motif/lesstif-1.2; \ + rm -fR /usr/include/lesstif-1.2; \ + rm -fR /usr/$(get_libdir)/lesstif-1.2; + removed=yes ) + has_version =x11-libs/lesstif-0.94* \ + || ( rm -f /usr/$(get_libdir)/motif/lesstif-2.1; \ + rm -fR /usr/include/lesstif-2.1; \ + rm -fR /usr/$(get_libdir)/openmotif-2.1; + removed=yes ) + + if [ "$removed" = "yes" ]; then + rm -fR /usr/include/Xm; + rm -fR /usr/include/uil; + rm -fR /usr/include/Mrm; + fi +} |