summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-09-25 10:25:48 +0000
committerUlrich Müller <ulm@gentoo.org>2009-09-25 10:25:48 +0000
commit4f2c161912f03a69ca366dee4a1955f9c1ba36db (patch)
tree3dc6f7bed9fc095fb182b75fa6b2dc7fe25af5e8 /x11-libs/openmotif
parentRemove unused, duplicate patch. (diff)
downloadhistorical-4f2c161912f03a69ca366dee4a1955f9c1ba36db.tar.gz
historical-4f2c161912f03a69ca366dee4a1955f9c1ba36db.tar.bz2
historical-4f2c161912f03a69ca366dee4a1955f9c1ba36db.zip
Remove old.
Package-Manager: portage-2.2_rc40/cvs/Linux i686
Diffstat (limited to 'x11-libs/openmotif')
-rw-r--r--x11-libs/openmotif/ChangeLog8
-rw-r--r--x11-libs/openmotif/files/openmotif-2.3.0-fix-nedit-segfaults.patch20
-rw-r--r--x11-libs/openmotif/files/openmotif-2.3.0-freebsd-libiconv.patch24
-rw-r--r--x11-libs/openmotif/files/openmotif-2.3.0-sensitivity-invisible.patch175
-rw-r--r--x11-libs/openmotif/openmotif-2.3.0-r3.ebuild140
5 files changed, 7 insertions, 360 deletions
diff --git a/x11-libs/openmotif/ChangeLog b/x11-libs/openmotif/ChangeLog
index c6b52c16e617..6224870d9ce5 100644
--- a/x11-libs/openmotif/ChangeLog
+++ b/x11-libs/openmotif/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for x11-libs/openmotif
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.222 2009/07/13 18:23:17 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.223 2009/09/25 10:25:47 ulm Exp $
+
+ 25 Sep 2009; Ulrich Mueller <ulm@gentoo.org> -openmotif-2.3.0-r3.ebuild,
+ -files/openmotif-2.3.0-fix-nedit-segfaults.patch,
+ -files/openmotif-2.3.0-freebsd-libiconv.patch,
+ -files/openmotif-2.3.0-sensitivity-invisible.patch:
+ Remove old.
13 Jul 2009; Joseph Jezak <josejx@gentoo.org> openmotif-2.3.2.ebuild:
Marked ppc stable for bug #273064.
diff --git a/x11-libs/openmotif/files/openmotif-2.3.0-fix-nedit-segfaults.patch b/x11-libs/openmotif/files/openmotif-2.3.0-fix-nedit-segfaults.patch
deleted file mode 100644
index 0d3f1b97c373..000000000000
--- a/x11-libs/openmotif/files/openmotif-2.3.0-fix-nedit-segfaults.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- openmotif-2.3.0-orig/lib/Xm/List.c 2008-04-07 18:27:43.000000000 +0200
-+++ openmotif-2.3.0/lib/Xm/List.c 2008-04-07 18:45:47.000000000 +0200
-@@ -3647,6 +3647,7 @@
- XmStringFree(lw->list.items[pos]);
- lw->list.items[pos] = XmStringCopy(item);
- /*Selected items should be replaced also*/
-+ UpdateSelectedPositions(lw, lw->list.selectedItemCount);
- for(i=0; i<lw->list.selectedItemCount; i++)
- if(lw->list.selectedPositions[i]==pos+1) {
- XmStringFree(lw->list.selectedItems[i]);
---- openmotif-2.3.0-orig/lib/Xm/ResEncod.c 2006-11-21 20:50:31.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/ResEncod.c 2008-04-07 18:45:47.000000000 +0200
-@@ -2524,6 +2524,7 @@
- /* Now copy in the text */
- if (ctlen > 0) {
- char *text = Convert(ctext, ctlen, "UTF-8", tag);
-+ if (text == NULL) return(False);
- *outc = ctextConcat(*outc, *outlen, text, strlen(text));
- *outlen += ctlen;
- XtFree(text);
diff --git a/x11-libs/openmotif/files/openmotif-2.3.0-freebsd-libiconv.patch b/x11-libs/openmotif/files/openmotif-2.3.0-freebsd-libiconv.patch
deleted file mode 100644
index 1ed3ddc54d51..000000000000
--- a/x11-libs/openmotif/files/openmotif-2.3.0-freebsd-libiconv.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- openmotif-2.3.0-orig/configure.ac 2006-12-05 12:53:29.000000000 +0100
-+++ openmotif-2.3.0/configure.ac 2008-04-24 18:39:42.000000000 +0200
-@@ -221,7 +221,8 @@
- if test "$enable_utf8" = "yes"
- then
- AC_DEFINE([UTF8_SUPPORTED], [1], [UTF8 is supported])
-- AC_CHECK_LIB([iconv], [iconv_open])
-+ AC_SEARCH_LIBS([iconv_open], [iconv], ,
-+ AC_SEARCH_LIBS([libiconv_open], [iconv]))
- fi
-
- AC_FIND_XFT
---- openmotif-2.3.0-orig/lib/Xm/ResEncod.c 2006-11-21 20:50:31.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/ResEncod.c 2008-07-01 20:29:19.000000000 +0200
-@@ -50,7 +50,9 @@
- #endif
- #include <string.h>
- #include <ctype.h>
-+#ifdef UTF8_SUPPORTED
- #include <iconv.h>
-+#endif
- #include <errno.h>
- #include <Xm/XmosP.h>
- #include "MessagesI.h"
diff --git a/x11-libs/openmotif/files/openmotif-2.3.0-sensitivity-invisible.patch b/x11-libs/openmotif/files/openmotif-2.3.0-sensitivity-invisible.patch
deleted file mode 100644
index fbbd624df0af..000000000000
--- a/x11-libs/openmotif/files/openmotif-2.3.0-sensitivity-invisible.patch
+++ /dev/null
@@ -1,175 +0,0 @@
---- openmotif-2.3.0-orig/lib/Xm/IconButton.c 2005-10-17 15:15:51.000000000 +0200
-+++ openmotif-2.3.0/lib/Xm/IconButton.c 2008-02-16 00:48:53.000000000 +0100
-@@ -1836,7 +1836,7 @@
- values.fill_style = FillStippled;
-
- mask = GCForeground | GCBackground | GCGraphicsExposures;
-- smask = mask | GCStipple | GCFillStyle;
-+ smask = mask | GCFillStyle;
-
- if (fs) {
- values.font = fs->fid;
-@@ -1844,6 +1844,7 @@
- }
-
- XmIconButton_gc(iw) = XtGetGC(w, mask, &values);
-+ values.foreground = _XmAssignInsensitiveColor(w);
- XmIconButton_stippled_text_gc(iw) = XtGetGC(w, smask, &values);
-
- /*
---- openmotif-2.3.0-orig/lib/Xm/IconG.c 2003-10-06 12:10:24.000000000 +0200
-+++ openmotif-2.3.0/lib/Xm/IconG.c 2008-02-16 00:48:53.000000000 +0100
-@@ -3134,9 +3134,9 @@
-
-
- /** insensitive gc **/
-- values.foreground = IG_Foreground(wid) ;
-+ values.foreground = _XmAssignInsensitiveColor(XtParent(wid));
- values.background = IG_Background(wid) ;
-- valueMask |= GCFillStyle | GCStipple;
-+ valueMask |= GCFillStyle;
- values.fill_style = FillOpaqueStippled;
- values.stipple = _XmGetInsensitiveStippleBitmap(wid);
-
---- openmotif-2.3.0-orig/lib/Xm/Label.c 2006-12-21 20:21:27.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/Label.c 2008-02-16 00:48:53.000000000 +0100
-@@ -688,8 +688,8 @@
- lw->label.normal_GC = XtAllocateGC((Widget) lw, 0, valueMask, &values,
- dynamicMask, 0);
-
-- valueMask |= GCFillStyle | GCStipple;
-- values.foreground = lw->core.background_pixel;
-+ valueMask |= GCFillStyle;
-+ values.foreground = _XmAssignInsensitiveColor((Widget)lw);
- values.background = lw->primitive.foreground;
- values.fill_style = FillOpaqueStippled;
- values.stipple = _XmGetInsensitiveStippleBitmap((Widget) lw);
-@@ -1557,7 +1557,7 @@
- lp->StringRect.width,
- lp->alignment,
- XmPrim_layout_direction(lw), NULL);
--#ifdef USE_XFT
-+#if 0
- if (!XtIsSensitive(wid))
- {
- XSetFillStyle(XtDisplay(lw), lp->insensitive_GC, FillStippled);
---- openmotif-2.3.0-orig/lib/Xm/LabelG.c 2006-12-26 18:37:09.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/LabelG.c 2008-02-16 00:48:53.000000000 +0100
-@@ -1247,8 +1247,8 @@
- LabG_NormalGC(lw) = XtAllocateGC((Widget) mw, 0, valueMask, &values,
- dynamicMask, 0);
-
-- valueMask |= GCFillStyle | GCStipple;
-- values.foreground = LabG_Background(lw);
-+ valueMask |= GCFillStyle;
-+ values.foreground = _XmAssignInsensitiveColor((Widget)mw);
- values.background = LabG_Foreground(lw);
- values.fill_style = FillOpaqueStippled;
-
-@@ -2435,7 +2435,7 @@
- lw->rectangle.y + LabG_TextRect(lw).y + LabG_StringRect(lw).y,
- LabG_StringRect(lw).width,
- LabG_Alignment(lw), LayoutG(lw), NULL);
--#ifdef USE_XFT
-+#if 0
- if (!XtIsSensitive(wid)) {
- XSetFillStyle(XtDisplay(lw), LabG_InsensitiveGC(lw), FillStippled);
- XFillRectangle(XtDisplay(lw), XtWindow(lw), LabG_InsensitiveGC(lw),
---- openmotif-2.3.0-orig/lib/Xm/List.c 2007-01-24 18:07:35.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/List.c 2008-02-16 00:48:53.000000000 +0100
-@@ -2758,9 +2758,9 @@
- lw->list.InverseGC = XtAllocateGC((Widget) lw, lw->core.depth,
- valueMask, &values, modifyMask, 0);
-
-- values.foreground = lw->primitive.foreground;
-+ values.foreground = _XmAssignInsensitiveColor(lw);
- values.background = lw->core.background_pixel;
-- valueMask |= GCStipple | GCFillStyle;
-+ valueMask |= GCFillStyle;
- values.fill_style = FillOpaqueStippled;
- values.stipple = _XmGetInsensitiveStippleBitmap((Widget) lw);
-
---- openmotif-2.3.0-orig/lib/Xm/TextF.c 2006-08-28 15:53:30.000000000 +0200
-+++ openmotif-2.3.0/lib/Xm/TextF.c 2008-02-16 00:48:53.000000000 +0100
-@@ -1960,8 +1960,7 @@
- valueMask |= GCFillStyle;
- if (stipple) {
- values.fill_style = FillStippled;
-- valueMask |= GCStipple;
-- values.stipple = tf->text.stipple_tile;
-+ values.foreground = _XmAssignInsensitiveColor((Widget)tf);
- } else
- values.fill_style = FillSolid;
- }
---- openmotif-2.3.0-orig/lib/Xm/TextOut.c 2006-12-12 12:54:14.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/TextOut.c 2008-02-16 00:48:53.000000000 +0100
-@@ -625,8 +625,7 @@
- valueMask |= GCFillStyle;
- if (stipple) {
- values.fill_style = FillStippled;
-- valueMask |= GCStipple;
-- values.stipple = data->stipple_tile;
-+ values.foreground = _XmAssignInsensitiveColor((Widget)tw);
- } else
- values.fill_style = FillSolid;
- }
---- openmotif-2.3.0-orig/lib/Xm/Xm.c 2005-12-19 11:32:36.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/Xm.c 2008-02-16 00:48:53.000000000 +0100
-@@ -426,3 +426,45 @@
- _XmAppUnlock(app);
- return return_wid;
- }
-+
-+/************************************************************************
-+ *
-+ * _XmAssignInsensitiveColor
-+ * Allocate the Gray color for display widget like insensitive.
-+ *
-+ *
-+ ************************************************************************/
-+
-+Pixel
-+_XmAssignInsensitiveColor(Widget w)
-+{
-+ static XColor screen_in_out;
-+ int status;
-+ Pixel p;
-+
-+ p = w->core.background_pixel;
-+ XQueryColor(XtDisplay(w), w->core.colormap, &screen_in_out);
-+ if ((abs(screen_in_out.red-RGB_GREY_VALUE)<RGB_GREY_PRESISE)
-+ && (abs(screen_in_out.green-RGB_GREY_VALUE)<RGB_GREY_PRESISE)
-+ && (abs(screen_in_out.blue-RGB_GREY_VALUE)<RGB_GREY_PRESISE)) {
-+ /*text color have to be more light for wosn't be invisible*/
-+ screen_in_out.red=(RGB_GREY_VALUE+RGB_GREY_VALUE/2)<<8;
-+ screen_in_out.green=(RGB_GREY_VALUE+RGB_GREY_VALUE/2)<<8;
-+ screen_in_out.blue=(RGB_GREY_VALUE+RGB_GREY_VALUE/2)<<8;
-+
-+ status = XAllocColor(XtDisplay(w), w->core.colormap, &screen_in_out);
-+ if (status)
-+ p = screen_in_out.pixel;
-+ } else {
-+ /*gray color*/
-+ screen_in_out.red=RGB_GREY_VALUE<<8;
-+ screen_in_out.green=RGB_GREY_VALUE<<8;
-+ screen_in_out.blue=RGB_GREY_VALUE<<8;
-+
-+ status = XAllocColor(XtDisplay(w), w->core.colormap, &screen_in_out);
-+ if (status)
-+ p = screen_in_out.pixel;
-+ }
-+
-+ return p;
-+}
---- openmotif-2.3.0-orig/lib/Xm/XmI.h 2005-12-19 11:32:36.000000000 +0100
-+++ openmotif-2.3.0/lib/Xm/XmI.h 2008-02-16 00:48:53.000000000 +0100
-@@ -276,5 +276,9 @@
- } /* Close scope of 'extern "C"' declaration which encloses file. */
- #endif
-
-+#define RGB_GREY_VALUE 128
-+#define RGB_GREY_PRESISE 50
-+extern Pixel _XmAssignInsensitiveColor(Widget w);
-+
- #endif /* _XmI_h */
- /* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/x11-libs/openmotif/openmotif-2.3.0-r3.ebuild b/x11-libs/openmotif/openmotif-2.3.0-r3.ebuild
deleted file mode 100644
index b8b846538d5b..000000000000
--- a/x11-libs/openmotif/openmotif-2.3.0-r3.ebuild
+++ /dev/null
@@ -1,140 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0-r3.ebuild,v 1.11 2009/02/04 21:04:38 ulm Exp $
-
-inherit eutils flag-o-matic multilib autotools
-
-DESCRIPTION="Open Motif"
-HOMEPAGE="http://www.motifzone.org/"
-SRC_URI="ftp://ftp.ics.com/openmotif/${PV%.*}/${PV}/${P}.tar.gz
- doc? ( http://www.motifzone.net/files/documents/${P}-manual.pdf.tgz )"
-
-LICENSE="MOTIF libXpm doc? ( OPL )"
-SLOT="0"
-KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd"
-IUSE="doc examples jpeg png xft"
-
-# make people unmerge motif-config and all previous slots
-# since the slotting is finally gone now
-RDEPEND="!x11-libs/motif-config
- !x11-libs/lesstif
- !<=x11-libs/openmotif-2.3.0
- x11-libs/libXmu
- x11-libs/libXp
- virtual/libiconv
- xft? ( x11-libs/libXft )
- jpeg? ( media-libs/jpeg )
- png? ( media-libs/libpng )"
-
-DEPEND="${RDEPEND}
- sys-devel/flex
- x11-misc/xbitmaps"
-
-pkg_setup() {
- # clean up orphaned cruft left over by motif-config
- local i l count=0
- for i in "${ROOT}"usr/bin/{mwm,uil,xmbind} \
- "${ROOT}"usr/include/{Xm,uil,Mrm} \
- "${ROOT}"usr/$(get_libdir)/lib{Xm,Uil,Mrm}.*; do
- [[ -L "${i}" ]] || continue
- l=$(readlink "${i}")
- if [[ ${l} == *openmotif-* || ${l} == *lesstif-* ]]; then
- einfo "Cleaning up orphaned ${i} symlink ..."
- rm -f "${i}"
- fi
- done
-
- cd "${ROOT}"usr/share/man
- for i in $(find . -type l); do
- l=$(readlink "${i}")
- if [[ ${l} == *-openmotif-* || ${l} == *-lesstif-* ]]; then
- (( count++ ))
- rm -f "${i}"
- fi
- done
- [[ ${count} -ne 0 ]] && \
- einfo "Cleaned up ${count} orphaned symlinks in ${ROOT}usr/share/man"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}-sensitivity-invisible.patch"
- epatch "${FILESDIR}/${P}-fix-nedit-segfaults.patch"
- epatch "${FILESDIR}/${P}-freebsd-libiconv.patch"
- epatch "${FILESDIR}/${PN}-2.3.1-ac-editres.patch" #82081
-
- # disable compilation of demo binaries
- sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am
-
- # fix libtool-2.2 breakage, bug 220599
- sed -i -e 's/LT_HAVE/FINDXFT_HAVE/g' ac_find_xft.m4
-
- # add X.Org vendor string to aliases for virtual bindings
- echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias
-
- AT_M4DIR=. eautoreconf
-}
-
-src_compile() {
- # get around some LANG problems in make (#15119)
- unset LANG
-
- # bug #80421
- filter-flags -ftracer
-
- # multilib includes don't work right in this package...
- has_multilib_profile && append-flags "-I$(get_ml_incdir)"
-
- # feel free to fix properly if you care
- append-flags -fno-strict-aliasing
-
- econf --with-x \
- $(use_enable xft) \
- $(use_enable jpeg) \
- $(use_enable png)
-
- emake -j1 || die "emake failed"
-}
-
-src_install() {
- emake -j1 DESTDIR="${D}" install || die "emake install failed"
-
- # mwm default configs
- insinto /usr/share/X11/app-defaults
- newins "${FILESDIR}"/Mwm.defaults Mwm
-
- dodir /etc/X11/mwm
- mv -f "${D}"/usr/$(get_libdir)/X11/system.mwmrc "${D}"/etc/X11/mwm
- dosym /etc/X11/mwm/system.mwmrc /usr/$(get_libdir)/X11/
-
- if use examples ; then
- emake -j1 -C demos DESTDIR="${D}" install-data \
- || die "installation of demos failed"
- dodir /usr/share/doc/${PF}/demos
- mv "${D}"/usr/share/Xm/* "${D}"/usr/share/doc/${PF}/demos
- fi
- rm -rf "${D}"/usr/share/Xm
-
- dodoc README RELEASE RELNOTES BUGREPORT TODO
- use doc && cp "${WORKDIR}"/*.pdf "${D}"/usr/share/doc/${PF}
-}
-
-pkg_postinst() {
- local line
- while read line; do elog "${line}"; done <<-EOF
- Gentoo is no longer providing slotted Open Motif libraries.
- See bug 204249 and its dependencies for the reasons.
-
- From the Open Motif 2.3.0 (upstream) release notes:
- "Open Motif 2.3 is an updated version of 2.2. Any applications
- built against a previous 2.x release of Open Motif will be binary
- compatible with this release."
-
- If you have binary-only applications requiring libXm.so.3, you may
- therefore create a symlink from libXm.so.3 to libXm.so.4.
- Please note, however, that there will be no Gentoo support for this.
- Alternatively, you may install x11-libs/openmotif-compat-2.2* for
- the Open Motif 2.2 libraries.
- EOF
-}