diff options
author | Bryan Østergaard <kloeri@gentoo.org> | 2006-06-11 18:00:18 +0000 |
---|---|---|
committer | Bryan Østergaard <kloeri@gentoo.org> | 2006-06-11 18:00:18 +0000 |
commit | 0c32f9fb80f5e5f072163f6a4ae28719e7461e02 (patch) | |
tree | cb58bb587b70439256fda620558693f05f2689f0 /x11-libs/openmotif | |
parent | Marked ppc-macos stable (bug #136093) (diff) | |
download | gentoo-2-0c32f9fb80f5e5f072163f6a4ae28719e7461e02.tar.gz gentoo-2-0c32f9fb80f5e5f072163f6a4ae28719e7461e02.tar.bz2 gentoo-2-0c32f9fb80f5e5f072163f6a4ae28719e7461e02.zip |
Bump openmotif-2.1 fixing bug 114234.
(Portage version: 2.1)
Diffstat (limited to 'x11-libs/openmotif')
-rw-r--r-- | x11-libs/openmotif/ChangeLog | 8 | ||||
-rw-r--r-- | x11-libs/openmotif/files/digest-openmotif-2.1.30-r14 | 6 | ||||
-rw-r--r-- | x11-libs/openmotif/openmotif-2.1.30-r14.ebuild | 185 |
3 files changed, 198 insertions, 1 deletions
diff --git a/x11-libs/openmotif/ChangeLog b/x11-libs/openmotif/ChangeLog index a0f23d606b94..90639d341e6c 100644 --- a/x11-libs/openmotif/ChangeLog +++ b/x11-libs/openmotif/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-libs/openmotif # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.121 2006/04/28 23:21:29 marienz Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.122 2006/06/11 18:00:18 kloeri Exp $ + +*openmotif-2.1.30-r14 (11 Jun 2006) + + 11 Jun 2006; Bryan Østergaard <kloeri@gentoo.org> + +openmotif-2.1.30-r14.ebuild: + Bump openmotif-2.1 fixing bug 114234. 28 Apr 2006; Marien Zwart <marienz@gentoo.org> files/digest-openmotif-2.1.30-r9, files/digest-openmotif-2.1.30-r13, diff --git a/x11-libs/openmotif/files/digest-openmotif-2.1.30-r14 b/x11-libs/openmotif/files/digest-openmotif-2.1.30-r14 new file mode 100644 index 000000000000..18fb18ef5f01 --- /dev/null +++ b/x11-libs/openmotif/files/digest-openmotif-2.1.30-r14 @@ -0,0 +1,6 @@ +MD5 950f0d409e0ce508fa3995790c1106c7 openmotif-2.1.30-4_MLI.src.tar.gz 8645792 +RMD160 082e1eeaf7bb1c27aceef7c5a310b2121d3001e8 openmotif-2.1.30-4_MLI.src.tar.gz 8645792 +SHA256 a25d6f7a420ea74c504cc6fe832e6af80812e77e749d099c91e75454e96d8a0b openmotif-2.1.30-4_MLI.src.tar.gz 8645792 +MD5 5c49a886f108baeda96fc41f32647cf6 openmotif-2.1.30-CAN-2004-0914-newer.patch.bz2 12300 +RMD160 308c3f96f6fcc82ce503fd1bb6f3291bd1641d6f openmotif-2.1.30-CAN-2004-0914-newer.patch.bz2 12300 +SHA256 a693d7c10bf6648b2af5fb260645526e5651b1c4a9cf9a60405a67df8aa349f5 openmotif-2.1.30-CAN-2004-0914-newer.patch.bz2 12300 diff --git a/x11-libs/openmotif/openmotif-2.1.30-r14.ebuild b/x11-libs/openmotif/openmotif-2.1.30-r14.ebuild new file mode 100644 index 000000000000..7492d0f4f08b --- /dev/null +++ b/x11-libs/openmotif/openmotif-2.1.30-r14.ebuild @@ -0,0 +1,185 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.1.30-r14.ebuild,v 1.1 2006/06/11 18:00:18 kloeri Exp $ + +inherit eutils flag-o-matic multilib + +MY_P=${P}-4_MLI.src +S=${WORKDIR}/motif +DESCRIPTION="Open Motif (Metrolink Bug Fix Release)" +HOMEPAGE="http://www.openmotif.org/" +SRC_URI="ftp://ftp.metrolink.com/pub/openmotif/2.1.30-4/${MY_P}.tar.gz + mirror://gentoo//${P}-CAN-2004-0914-newer.patch.bz2" + +LICENSE="MOTIF" +KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~mips ppc ppc-macos ppc64 sparc x86" +IUSE="" + +PROVIDE="virtual/motif" + +RDEPEND="virtual/libc + || ( ( x11-libs/libXmu + x11-libs/libXaw + x11-libs/libXp + ) + virtual/x11 + ) + >=x11-libs/motif-config-0.9" +DEPEND="${RDEPEND} + >=sys-apps/sed-4 + || ( ( x11-proto/printproto + x11-proto/xextproto + x11-misc/xbitmaps + ) + virtual/x11 + )" + +SLOT="2.1" + +src_unpack() { + local cfg="${S}/config/cf/site.def" + + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${P}-CAN-2004-0687-0688.patch + epatch ${WORKDIR}/${P}-CAN-2004-0914-newer.patch + epatch ${FILESDIR}/${P}-CAN-2004-0914_sec8.patch + epatch ${FILESDIR}/CAN-2005-0605.patch + epatch ${FILESDIR}/openmotif-2.2.3-uil.patch + + ebegin "adjusting file permissions" + chmod -R ug+w . + eend $? || die + + ebegin "setting up site.def" + cp ${FILESDIR}/site.def ${S}/config/cf/site.def && \ + echo >>$cfg && \ + echo >>$cfg "#undef OptimizedCDebugFlags" && \ + echo >>$cfg "#define OptimizedCDebugFlags ${CFLAGS}" && \ + echo >>$cfg "#undef OptimizedCplusplusDebugFlags" && \ + echo >>$cfg "#define OptimizedCplusplusDebugFlags ${CXXFLAGS}" &&\ + echo >>$cfg "#undef LinuxCLibMajorVersion" && \ + echo >>$cfg "#define LinuxCLibMajorVersion 6" + eend $? || die + + + # move `system.mwmrc' from `lib/X11' to `lib/X11/mwm' + ebegin "patching 'clients/mwm/Imakefile' (mwm confdir)" + LC_ALL="C" sed -i \ + -e 's:\(SpecialObjectRule.*WmResParse\.o.*/lib/X11\)\(.*\):\1/mwm\2:'\ + -e 's:\(InstallNonExecFile.system\.mwmrc,\).*/lib/X11\(.*\):\1/etc/X11/mwm\2:'\ + "${S}/clients/mwm/Imakefile" + eend $? || die + + epatch ${FILESDIR}/${PN}-2.1.30-imake-tmpdir.patch + # compile on gcc 2.9x + epatch ${FILESDIR}/${PN}-2.1.30-imake-ansi.patch + epatch ${FILESDIR}/${PN}-2.1.30-uil-bad_grammar_fix.diff + use ppc-macos && epatch ${FILESDIR}/${PN}-2.1.30-darwin-netbsd.diff + + if use amd64 && has_multilib_profile && [[ ${ABI} == "amd64" ]] ; then + sed -i 's:__i386__:__x86_64__:g' ${S}/config/cf/*.cf ${S}/config/imake/* ${S}/config/makedepend/* + fi +} + +src_compile() { + # multilib includes don't work right in this package... + has_multilib_profile && append-flags "-I/usr/include/gentoo-multilib/${ABI}" + + # glibc-2.3.2-r1/gcc-3.2.3 /w `-mcpu=athlon-xp -O2', right-clicking + # in nedit triggers DPMS monitor standby instead of popping up the + # context menu. this doesn't happen on my `stable' test partition + # where everything is compiled i686, nor with most non-essential + # packages athlon-xp and only motif i686. needs investigation. + replace-flags "-mcpu=athlon-xp" "-mcpu=i686" + + # fails to copmile with -jx + export MAKEOPTS="${MAKEOPTS} -j1" + + mkdir -p imports/x11 + cd imports/x11 + ln -s /usr/X11R6/bin bin + ln -s /usr/X11R6/include include + ln -s /usr/X11R6/lib lib + cd ${S} + make World || make World || die +} + +src_install() { + make DESTDIR=${D} VARDIR=${D}/var install || die "make install" + make DESTDIR=${D} install.man || die "make install.man" + + # cleanups + local NOINSTBIN="imake lndir makedepend makeg mergelib mkdirhier xmkmf" + local NOINSTMAN1="imake lndir makedepend makeg mkdirhier xmkmf" + + rm -fR ${D}/etc + for nib in ${NOINSTBIN}; do + f="${D}/usr/X11R6/bin/${nib}"; rm "$f" || die "rm $f" + done + for nim in ${NOINSTMAN1}; do + if useq ppc-macos ; then + f="${D}/usr/X11R6/man/man1/${nim}.1" + else + f="${D}/usr/X11R6/man/man1/${nim}.1x" + fi + rm "$f" || die "rm $f" + done + rm -rf "${D}/usr/X11R6/lib/X11" || die "rm config" + rm -rf "${D}/usr/X11R6/include/X11" || die "rm config" + rm -rf "${D}/usr/X11R6/lib/bindings" || die "rm bindings" + + dodir /usr/share/man + mv ${D}/usr/X11R6/man/* ${D}/usr/share/man/ + dodir /usr/bin + mv ${D}/usr/X11R6/bin/* ${D}/usr/bin/ + dodir /usr/include + mv ${D}/usr/X11R6/include/* ${D}/usr/include/ + dodir /usr/$(get_libdir) + mv ${D}/usr/X11R6/lib/* ${D}/usr/$(get_libdir)/ + rm -fR ${D}/usr/X11R6 + + + einfo "Fixing binaries" + dodir /usr/$(get_libdir)/openmotif-2.1 + for file in `ls ${D}/usr/bin` + do + mv ${D}/usr/bin/${file} ${D}/usr/$(get_libdir)/openmotif-2.1/ + done + + einfo "Fixing libraries" + mv ${D}/usr/$(get_libdir)/* ${D}/usr/$(get_libdir)/openmotif-2.1/ + + einfo "Fixing includes" + dodir /usr/include/openmotif-2.1/ + mv ${D}/usr/include/* ${D}/usr/include/openmotif-2.1 + + einfo "Fixing man pages" + mans="1 3 5 7" + 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}x/} + mv ${D}/usr/share/man/man$man/${file}.${man}x ${D}/usr/share/man/man${man}/${file}-openmotif-2.1.${man} + done + done + + dodoc README COPYRIGHT.MOTIF RELEASE RELNOTES + dodoc BUGREPORT OPENBUGS CLOSEDBUGS + + # profile stuff + dodir /etc/env.d + echo "LDPATH=/usr/lib/openmotif-2.1" > ${D}/etc/env.d/15openmotif-2.1 + dodir /usr/$(get_libdir)/motif + echo "PROFILE=openmotif-2.1" > ${D}/usr/$(get_libdir)/motif/openmotif-2.1 +} + +pkg_postinst() { + /usr/bin/motif-config -s +} + +pkg_postrm() { + /usr/bin/motif-config -s +} |