diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2005-04-26 13:56:50 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2005-04-26 13:56:50 +0000 |
commit | c482068f57cf381d1cd1f9ca6e8864106600e212 (patch) | |
tree | 632effbe075dace85ff49b53ed23d04350521687 /x11-libs/openmotif/openmotif-2.2.3-r7.ebuild | |
parent | Fix building with gcc4. (diff) | |
download | historical-c482068f57cf381d1cd1f9ca6e8864106600e212.tar.gz historical-c482068f57cf381d1cd1f9ca6e8864106600e212.tar.bz2 historical-c482068f57cf381d1cd1f9ca6e8864106600e212.zip |
motif-config-0.9
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'x11-libs/openmotif/openmotif-2.2.3-r7.ebuild')
-rw-r--r-- | x11-libs/openmotif/openmotif-2.2.3-r7.ebuild | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/x11-libs/openmotif/openmotif-2.2.3-r7.ebuild b/x11-libs/openmotif/openmotif-2.2.3-r7.ebuild new file mode 100644 index 000000000000..7d818fbd98a8 --- /dev/null +++ b/x11-libs/openmotif/openmotif-2.2.3-r7.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.2.3-r7.ebuild,v 1.1 2005/04/26 13:56:43 lanius Exp $ + +inherit eutils libtool flag-o-matic multilib + +MY_P=${P/m/M} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Open Motif" +HOMEPAGE="http://www.motifzone.org/" +SRC_URI="ftp://ftp.motifzone.net/om${PV}/src/${MY_P}.tar.gz" + +LICENSE="MOTIF" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~sparc ~x86" +IUSE="" + +DEPEND="virtual/libc + virtual/x11 + >=sys-apps/sed-4 + !ppc-macos? ( =sys-devel/automake-1.4* ) + =sys-devel/autoconf-2.5* + >=x11-libs/motif-config-0.9" +RDEPEND="virtual/libc + virtual/x11 + >=x11-libs/motif-config-0.9" + +PROVIDE="virtual/motif" +SLOT="2.2" + +pkg_setup() { + # multilib includes don't work right in this package... + [ -n "${ABI}" ] && append-flags "-I/usr/include/gentoo-multilib/${ABI}" +} + +src_unpack() { + unpack ${A} + cd ${S} + + # various patches + epatch ${FILESDIR}/${P}-mwm-configdir.patch + epatch ${FILESDIR}/${P}-CAN-2004-0687-0688.patch.bz2 + epatch ${FILESDIR}/${P}-CAN-2004-0914-newer.patch.bz2 + epatch ${FILESDIR}/${P}-CAN-2004-0914_sec8.patch + epatch ${FILESDIR}/${P}-char_not_supported.patch + epatch ${FILESDIR}/${P}-pixel_length.patch + epatch ${FILESDIR}/${P}-popup_timeout.patch + epatch ${FILESDIR}/${P}-XmResizeHashTable.patch + epatch ${FILESDIR}/${P}-utf8.patch + epatch ${FILESDIR}/${P}-no_demos.patch + use ppc-macos && epatch ${FILESDIR}/${P}-automake.patch + epatch ${FILESDIR}/CAN-2005-0605.patch + + # autotool stuff + export WANT_AUTOCONF=2.5 + + # Patched Makefile.am to work with version 1.6 on ppc-macos. + # Untested elsewhere + use ppc-macos || export WANT_AUTOMAKE=1.4 + + libtoolize --force --copy + aclocal || die + AUTOMAKE_OPTS="--foreign" + # For some reason ppc-macos complains about missing depcomp and compile + # files + use ppc-macos && AUTOMAKE_OPTS="-a -c -f ${AUTOMAKE_OPTS}" + automake ${AUTOMAKE_OPTS} || die + autoconf || die +} + + +src_compile() { + # get around some LANG problems in make (#15119) + unset LANG + + # bug #80421 + filter-flags -ftracer + + econf --with-x || die "configuration failed" + + emake -j1 || die "make failed, if you have lesstif installed removed it, compile openmotif and recompile lesstif" +} + + +src_install() { + make DESTDIR=${D} install || die "make install failed" + + # cleanups + rm -fR ${D}/usr/$(get_libdir)/X11 + rm -fR ${D}/usr/$(get_libdir)/X11/bindings + rm -fR ${D}/usr/include/X11/ + + list="/usr/share/man/man1/mwm.1 /usr/share/man/man4/mwmrc.4" + for f in $list; do + dosed 's:/usr/lib/X11/\(.*system\\&\.mwmrc\):/etc/X11/mwm/\1:g' "$f" + dosed 's:/usr/lib/X11/app-defaults:/etc/X11/app-defaults:g' "$f" + done + + + einfo "Fixing binaries" + dodir /usr/$(get_libdir)/openmotif-2.2 + for file in `ls ${D}/usr/bin` + do + mv ${D}/usr/bin/${file} ${D}/usr/$(get_libdir)/openmotif-2.2/${file} + done + + einfo "Fixing libraries" + mv ${D}/usr/$(get_libdir)/* ${D}/usr/$(get_libdir)/openmotif-2.2/ + + einfo "Fixing includes" + dodir /usr/include/openmotif-2.2/ + mv ${D}/usr/include/* ${D}/usr/include/openmotif-2.2 + + einfo "Fixing man pages" + mans="1 3 4 5" + for man in $mans; do + dodir /usr/share/man/man${man} + for file in `ls ${D}/usr/share/man/man${man}` + do + file=${file/.${man}/} + mv ${D}/usr/share/man/man$man/${file}.${man} ${D}/usr/share/man/man${man}/${file}-openmotif-2.2.${man} + done + done + + + # install docs + dodoc COPYRIGHT.MOTIF LICENSE + dodoc README RELEASE RELNOTES + dodoc BUGREPORT TODO + + # profile stuff + dodir /etc/env.d + echo "LDPATH=/usr/lib/openmotif-2.2" > ${D}/etc/env.d/15openmotif-2.2 + dodir /usr/$(get_libdir)/motif + echo "PROFILE=openmotif-2.2" > ${D}/usr/$(get_libdir)/motif/openmotif-2.2 +} + +pkg_postinst() { + /usr/bin/motif-config -s +} + +pkg_postrm() { + /usr/bin/motif-config -s +} |