diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-01-16 20:20:47 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-01-16 20:20:47 +0000 |
commit | c31e59c62c0d2acc21dad4187e79a6cea800b894 (patch) | |
tree | c727dc71261258073b33ae3670db098acb3c1cd8 /app-editors/nedit | |
parent | upstream rerolled 4.8.0's tarball to correct version string... (diff) | |
download | historical-c31e59c62c0d2acc21dad4187e79a6cea800b894.tar.gz historical-c31e59c62c0d2acc21dad4187e79a6cea800b894.tar.bz2 historical-c31e59c62c0d2acc21dad4187e79a6cea800b894.zip |
Version Bump, including debian fix for pointer to int
Package-Manager: portage-2.2.0_alpha15/cvs/Linux x86_64
Diffstat (limited to 'app-editors/nedit')
-rw-r--r-- | app-editors/nedit/ChangeLog | 10 | ||||
-rw-r--r-- | app-editors/nedit/Manifest | 15 | ||||
-rw-r--r-- | app-editors/nedit/files/nedit-5.5_p20110116-40_Pointer_to_Integer.patch | 261 | ||||
-rw-r--r-- | app-editors/nedit/nedit-5.5_p20110116.ebuild | 60 |
4 files changed, 343 insertions, 3 deletions
diff --git a/app-editors/nedit/ChangeLog b/app-editors/nedit/ChangeLog index 82d39d0929a3..f359a720d9ce 100644 --- a/app-editors/nedit/ChangeLog +++ b/app-editors/nedit/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-editors/nedit -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/nedit/ChangeLog,v 1.62 2010/12/16 15:09:45 phajdan.jr Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nedit/ChangeLog,v 1.63 2011/01/16 20:20:46 jlec Exp $ + +*nedit-5.5_p20110116 (16 Jan 2011) + + 16 Jan 2011; Justin Lecher <jlec@gentoo.org> +nedit-5.5_p20110116.ebuild, + +files/nedit-5.5_p20110116-40_Pointer_to_Integer.patch: + Version Bump, including debian fix for pointer to int 16 Dec 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> nedit-5.5_p20090914.ebuild: diff --git a/app-editors/nedit/Manifest b/app-editors/nedit/Manifest index 9e533a2749ec..d96ca8c94813 100644 --- a/app-editors/nedit/Manifest +++ b/app-editors/nedit/Manifest @@ -1,10 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX nedit-5.5-argbvisuals.patch 1462 RMD160 3d87969386ca8ca83b4e87d823d6298129d62dd8 SHA1 4ec157bc4e98a00f5152f67ed5f5e384822497c1 SHA256 ddf22535a85293e3be1453160305f926a1d9233a76febcb1380a2228ec82e1fe AUX nedit-5.5-motif23.patch 526 RMD160 462ef04c1bd14b9164eecf6646250b2e353ffc66 SHA1 1603079b4ed4eaac08fc58fa8abf54627e5ec9fa SHA256 29e7bbbc4828422344790eb8663d9b872bc9deb6bb5966c8ee54e81f29c018eb AUX nedit-5.5-off-by-one.patch 568 RMD160 d7d4b60e2957803544d8673f6d364e4291343d95 SHA1 bcf18944a788eb50c0c90e47250cee6097e23917 SHA256 d79c41129d549dde88cd35dd37c1f17e95d0f9c4fab515babe6883a8c24a4687 AUX nedit-5.5_p20090914-ldflags.patch 800 RMD160 94601651dc7bc8589530a1260f7703ad52e574fd SHA1 5b11e3ecf93837bb7e475b56521289e01ecceb81 SHA256 9b796c337d5f98adb2ca0216f675ac06006022e6402bf065dbbf4d76660c6843 +AUX nedit-5.5_p20110116-40_Pointer_to_Integer.patch 10379 RMD160 58d3a1684e15ed881cb7b308ff7e3690006d035b SHA1 c8b24c669a735c3eaffd4eaa92c4981c2b944700 SHA256 3e78b6a2cff1b04e9b25a8ee3a328b37cdb342ee65169941f1c5c4c9ebe0326b DIST nedit-5.5-src.tar.bz2 1124825 RMD160 93fce64bdc5d8a9eff86ab76cec67d44d676d0eb SHA1 7d3c87a793a5047cf857af1ac82e39f3b33e8a87 SHA256 0f6ae7205753080e8b047fb45759a7d6036b19396045c0b5c4a979441231966b DIST nedit-5.5_p20090914.tar.bz2 1029707 RMD160 817d18c5c115d1cd654513f40f8ef36abbf95efe SHA1 589930434cc7a1cd204e3d98cbf318b539dd7055 SHA256 ce5b411f1d8c3e6f87acbdefe21f54163ad697688ff7b0c674d4b60e6de04083 +DIST nedit-5.5_p20110116.tar.bz2 1030011 RMD160 dd17b08671a7b5cd4f04051add5369674200c7c5 SHA1 acd60b64df4f4d8fccff8a54eb8172ef44dcdab6 SHA256 a69d765d933829b6d0447516aef6a1157b52c1b7dc99cd5713b10632b6294bd8 EBUILD nedit-5.5-r1.ebuild 1340 RMD160 8f38fb5a1bf1ef88087768523e9f6a2d42039918 SHA1 a08b5b2f9cc4dea4767afcdca5acf1a9b0573f2a SHA256 dff351539b3d4384b736183488247df304e80710b0479de3ba201c98d2fa8914 EBUILD nedit-5.5_p20090914.ebuild 1447 RMD160 c7483422ddbad4e95f7164c26fb043c2acafd3d5 SHA1 cb1d8180cd16b1603bfc0fdb017bdbfb1c5593a2 SHA256 67cedf7bc1689fd98463639d6acb921371d28daab40a5e7ad52d3cb09cbe8828 -MISC ChangeLog 8601 RMD160 0f9f28783217ebd776bda4f0dd00b9e05f739cee SHA1 2a6db774e7048facce5174af1054a5c68e597784 SHA256 14ba3e2993e3b6e7a8e34cfa679fe23e2bded52032839ea2a07d75bc5df22b3d +EBUILD nedit-5.5_p20110116.ebuild 1560 RMD160 ede270c5a81725701da761ce4e92d4a03a66b2ba SHA1 ae88e60f5d228940497ebe207e3367d3a6f0f9ee SHA256 bbc12da626440e84768ab819c06d7183fb4f1256aa59b1c10f78f7b35463a6d5 +MISC ChangeLog 8822 RMD160 aa5cc4f6ccbded05fce75b1acad5a05404abf514 SHA1 736ca67ed5a3d33d4c297fda9052780c60b48d7d SHA256 3a766f7edd7eaca2c2f47acd5f7ff46a95be6edde0db7a4472b5236e78dbedd7 MISC metadata.xml 231 RMD160 c13056229989c3d4f448a7c7abcff3f4ee7ce13c SHA1 2d63dfb700b223f8f37c078692a81b2237896bce SHA256 4595c2615fd7c9095517949b1a920d4457f92801eb9d46307b18aafe58ec2a8a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAk0zUyMACgkQgAnW8HDreRZkvgCfa1n2fayIu0VL6PfNdFcb7gpA +3C4AnR+8vcq7lMRPltsOFSBQ7giEYN1g +=W3yx +-----END PGP SIGNATURE----- diff --git a/app-editors/nedit/files/nedit-5.5_p20110116-40_Pointer_to_Integer.patch b/app-editors/nedit/files/nedit-5.5_p20110116-40_Pointer_to_Integer.patch new file mode 100644 index 000000000000..9081ea340619 --- /dev/null +++ b/app-editors/nedit/files/nedit-5.5_p20110116-40_Pointer_to_Integer.patch @@ -0,0 +1,261 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +# Description: fix warning: cast from pointer to integer of different size +# Origin: https://sourceforge.net/tracker/download.php?group_id=11005&atid=311005&file_id=340993&aid=2846694 +# Bug: https://sourceforge.net/tracker/?func=detail&atid=311005&aid=2846694&group_id=11005 +# Author: Jack Howarth <jwhowarth@users.sourceforge.net> + +@DPATCH@ +diff -urNad nedit-5.6~cvs20081118~/Xlt/SlideC.c nedit-5.6~cvs20081118/Xlt/SlideC.c +--- nedit-5.6~cvs20081118~/Xlt/SlideC.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/Xlt/SlideC.c 2009-09-15 22:05:42.000000000 +0200 +@@ -28,6 +28,7 @@ + #endif + + #include <Xm/XmP.h> ++#include <stdint.h> + + #include "SlideCP.h" + +@@ -116,14 +117,14 @@ + /* notify that initialize called XtArgsProc */ NULL, + /* NULL XtProc */ NULL, + /* NULL XtPointer */ NULL, +-/* NULL Cardinal */ (Cardinal)NULL, ++/* NULL Cardinal */ (Cardinal)(uintptr_t)NULL, + /* resources for subclass fields XtResourceList */ resources, + /* number of entries in resources Cardinal */ XtNumber(resources), + /* resource class quarkified XrmClass */ NULLQUARK, +-/* NULL Boolean */ (Boolean)NULL, +-/* NULL XtEnum */ (XtEnum)NULL, +-/* NULL Boolean */ (Boolean)NULL, +-/* NULL Boolean */ (Boolean)NULL, ++/* NULL Boolean */ (Boolean)(uintptr_t)NULL, ++/* NULL XtEnum */ (XtEnum)(uintptr_t)NULL, ++/* NULL Boolean */ (Boolean)(uintptr_t)NULL, ++/* NULL Boolean */ (Boolean)(uintptr_t)NULL, + /* free data for subclass pointers XtWidgetProc */ destroy, + /* NULL XtProc */ NULL, + /* NULL XtProc */ NULL, +diff -urNad nedit-5.6~cvs20081118~/source/file.c nedit-5.6~cvs20081118/source/file.c +--- nedit-5.6~cvs20081118~/source/file.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/source/file.c 2009-09-15 22:06:42.000000000 +0200 +@@ -52,6 +52,7 @@ + #include <limits.h> + #include <stdio.h> + #include <stdlib.h> ++#include <stdint.h> + #include <string.h> + #include <unistd.h> + +@@ -1914,7 +1915,7 @@ + if (XmToggleButtonGetState(w)) { + XtPointer userData; + XtVaGetValues(w, XmNuserData, &userData, NULL); +- *(int*) clientData = (int) userData; ++ *(int*) clientData = (int) (uintptr_t) userData; + } + } + +diff -urNad nedit-5.6~cvs20081118~/source/highlight.c nedit-5.6~cvs20081118/source/highlight.c +--- nedit-5.6~cvs20081118~/source/highlight.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/source/highlight.c 2009-09-15 22:07:06.000000000 +0200 +@@ -49,6 +49,7 @@ + #include <limits.h> + #include <math.h> + #include <stdlib.h> ++#include <stdint.h> + #include <string.h> + #ifdef VMS + #include "../util/VMSparam.h" +@@ -512,7 +513,7 @@ + if (!pattern) { + return NULL; + } +- return (void*)pattern->userStyleIndex; ++ return (void*)(uintptr_t)pattern->userStyleIndex; + } + + /* +diff -urNad nedit-5.6~cvs20081118~/source/macro.c nedit-5.6~cvs20081118/source/macro.c +--- nedit-5.6~cvs20081118~/source/macro.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/source/macro.c 2009-09-15 22:07:27.000000000 +0200 +@@ -60,6 +60,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <stdint.h> + #include <string.h> + #include <ctype.h> + #include <errno.h> +@@ -2924,7 +2925,7 @@ + readStringArg(argList[i], &btnLabel, btnStorage, errMsg); + btn = XtVaCreateManagedWidget("mdBtn", xmPushButtonWidgetClass, dialog, + XmNlabelString, s1=XmStringCreateSimple(btnLabel), +- XmNuserData, (XtPointer)(i+1), NULL); ++ XmNuserData, (XtPointer)(uintptr_t)(i+1), NULL); + XtAddCallback(btn, XmNactivateCallback, dialogBtnCB, window); + XmStringFree(s1); + } +@@ -2965,7 +2966,7 @@ + return; /* shouldn't happen */ + if (XtClass(w) == xmPushButtonWidgetClass) { + XtVaGetValues(w, XmNuserData, &userData, NULL); +- retVal.val.n = (int)userData; ++ retVal.val.n = (int)(uintptr_t)userData; + } else + retVal.val.n = 1; + retVal.tag = INT_TAG; +@@ -3101,7 +3102,7 @@ + readStringArg(argList[i], &btnLabel, btnStorage, errMsg); + btn = XtVaCreateManagedWidget("mdBtn", xmPushButtonWidgetClass, dialog, + XmNlabelString, s1=XmStringCreateSimple(btnLabel), +- XmNuserData, (XtPointer)(i+1), NULL); ++ XmNuserData, (XtPointer)(uintptr_t)(i+1), NULL); + XtAddCallback(btn, XmNactivateCallback, stringDialogBtnCB, window); + XmStringFree(s1); + } +@@ -3155,7 +3156,7 @@ + returned in w. */ + if (XtClass(w) == xmPushButtonWidgetClass) { + XtVaGetValues(w, XmNuserData, &userData, NULL); +- btnNum = (int)userData; ++ btnNum = (int)(uintptr_t)userData; + } else + btnNum = 1; + +@@ -3680,7 +3681,7 @@ + readStringArg(argList[i], &btnLabel, btnStorage, errMsg); + btn = XtVaCreateManagedWidget("mdBtn", xmPushButtonWidgetClass, dialog, + XmNlabelString, s1=XmStringCreateSimple(btnLabel), +- XmNuserData, (XtPointer)(i+1), NULL); ++ XmNuserData, (XtPointer)(uintptr_t)(i+1), NULL); + XtAddCallback(btn, XmNactivateCallback, listDialogBtnCB, window); + XmStringFree(s1); + } +@@ -3760,7 +3761,7 @@ + returned in w. */ + if (XtClass(w) == xmPushButtonWidgetClass) { + XtVaGetValues(w, XmNuserData, &userData, NULL); +- btnNum = (int)userData; ++ btnNum = (int)(uintptr_t)userData; + } else + btnNum = 1; + +diff -urNad nedit-5.6~cvs20081118~/source/preferences.c nedit-5.6~cvs20081118/source/preferences.c +--- nedit-5.6~cvs20081118~/source/preferences.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/source/preferences.c 2009-09-15 22:07:47.000000000 +0200 +@@ -58,6 +58,7 @@ + #include <ctype.h> + #include <pwd.h> + #include <stdlib.h> ++#include <stdint.h> + #include <string.h> + #include <stdio.h> + #include <unistd.h> +@@ -2296,7 +2297,7 @@ + XtVaGetValues(menu, XmNchildren, &items, XmNnumChildren, &nItems, NULL); + for (n=0; n<(int)nItems; n++) { + XtVaGetValues(items[n], XmNuserData, &userData, NULL); +- XmToggleButtonSetState(items[n], (int)userData == mode, False); ++ XmToggleButtonSetState(items[n], (int)(uintptr_t)userData == mode, False); + } + } + } +@@ -5148,7 +5149,7 @@ + xmToggleButtonGadgetClass, menu, + XmNlabelString, s1=XmStringCreateSimple(LanguageModes[i]->name), + XmNmarginHeight, 0, +- XmNuserData, (void *)i, ++ XmNuserData, (void *)(uintptr_t)i, + XmNset, window->languageMode==i, NULL); + XmStringFree(s1); + XtAddCallback(btn, XmNvalueChangedCallback, setLangModeCB, window); +@@ -5169,14 +5170,14 @@ + XtVaGetValues(w, XmNuserData, &mode, NULL); + + /* If the mode didn't change, do nothing */ +- if (window->languageMode == (int)mode) ++ if (window->languageMode == (int)(uintptr_t)mode) + return; + + /* redo syntax highlighting word delimiters, etc. */ + /* + reapplyLanguageMode(window, (int)mode, False); + */ +- params[0] = (((int)mode) == PLAIN_LANGUAGE_MODE) ? "" : LanguageModes[(int)mode]->name; ++ params[0] = (((int)(uintptr_t)mode) == PLAIN_LANGUAGE_MODE) ? "" : LanguageModes[(int)(uintptr_t)mode]->name; + XtCallActionProc(window->textArea, "set_language_mode", NULL, params, 1); + } + +diff -urNad nedit-5.6~cvs20081118~/source/regularExp.c nedit-5.6~cvs20081118/source/regularExp.c +--- nedit-5.6~cvs20081118~/source/regularExp.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/source/regularExp.c 2009-09-15 22:08:16.000000000 +0200 +@@ -88,6 +88,7 @@ + #include <limits.h> + #include <stdio.h> + #include <stdlib.h> ++#include <stdint.h> + #include <string.h> + + #ifdef HAVE_DEBUG_H +@@ -4157,7 +4158,7 @@ + table [*c] = 1; + } + +- table [(int) NULL] = 1; /* These */ ++ table [(int)(uintptr_t) NULL] = 1; /* These */ + table [(int) '\t'] = 1; /* characters */ + table [(int) '\n'] = 1; /* are always */ + table [(int) ' ' ] = 1; /* delimiters. */ +diff -urNad nedit-5.6~cvs20081118~/source/userCmds.c nedit-5.6~cvs20081118/source/userCmds.c +--- nedit-5.6~cvs20081118~/source/userCmds.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/source/userCmds.c 2009-09-15 22:08:47.000000000 +0200 +@@ -49,6 +49,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <stdint.h> + #include <string.h> + #include <ctype.h> + #ifdef VMS +@@ -1116,7 +1117,7 @@ + XtVaGetValues(items[n], XmNsubMenuId, &subMenu, NULL); + dimSelDepItemsInMenu(subMenu, menuList, nMenuItems, sensitive); + } else { +- index = (int)userData - 10; ++ index = (int)(uintptr_t)userData - 10; + if (index <0 || index >= nMenuItems) + return; + if (menuList[index]->input == FROM_SELECTION) +@@ -1928,7 +1929,7 @@ + XmNlabelString, st1, + XmNacceleratorText, st2, + XmNmnemonic, f->mnemonic, +- XmNuserData, (XtPointer)(index+10), NULL); ++ XmNuserData, (XtPointer)(uintptr_t)(index+10), NULL); + XtAddCallback(btn, XmNactivateCallback, cbRtn, cbArg); + XmStringFree(st1); + XmStringFree(st2); +diff -urNad nedit-5.6~cvs20081118~/util/prefFile.c nedit-5.6~cvs20081118/util/prefFile.c +--- nedit-5.6~cvs20081118~/util/prefFile.c 2009-09-15 21:27:12.000000000 +0200 ++++ nedit-5.6~cvs20081118/util/prefFile.c 2009-09-15 22:04:14.000000000 +0200 +@@ -38,6 +38,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <string.h> ++#include <stdint.h> + #ifdef VMS + #include "VMSparam.h" + #else +@@ -353,9 +354,9 @@ + *(int *)rsrcDescrip->valueAddr = 0; + return False; + case PREF_STRING: +- if ((int)strlen(string) >= (int)rsrcDescrip->arg) ++ if ((int)strlen(string) >= (int)(uintptr_t)rsrcDescrip->arg) + return False; +- strncpy(rsrcDescrip->valueAddr, string, (int)rsrcDescrip->arg); ++ strncpy(rsrcDescrip->valueAddr, string, (int)(uintptr_t)rsrcDescrip->arg); + return True; + case PREF_ALLOC_STRING: + *(char **)rsrcDescrip->valueAddr = XtMalloc(strlen(string) + 1); diff --git a/app-editors/nedit/nedit-5.5_p20110116.ebuild b/app-editors/nedit/nedit-5.5_p20110116.ebuild new file mode 100644 index 000000000000..4e939cecf412 --- /dev/null +++ b/app-editors/nedit/nedit-5.5_p20110116.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nedit/nedit-5.5_p20110116.ebuild,v 1.1 2011/01/16 20:20:47 jlec Exp $ + +EAPI=2 + +inherit toolchain-funcs eutils + +DESCRIPTION="Multi-purpose text editor for the X Window System" +HOMEPAGE="http://nedit.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="spell" + +RDEPEND="spell? ( virtual/aspell-dict ) + >=x11-libs/openmotif-2.3:0 + x11-libs/libXp + x11-libs/libXpm" +DEPEND="${RDEPEND} + || ( dev-util/yacc sys-devel/bison ) + dev-lang/perl" + +S="${WORKDIR}/${PN}" + +src_prepare() { + #respecting LDFLAGS, bug #208189 + epatch \ + "${FILESDIR}"/nedit-5.5_p20090914-ldflags.patch \ + "${FILESDIR}"/${P}-40_Pointer_to_Integer.patch + sed \ + -e "s:bin/:${EPREFIX}/bin/:g" \ + -i Makefile source/preferences.c source/help_data.h source/nedit.c Xlt/Makefile || die + sed \ + -e "s:nc:neditc:g" -i doc/nc.pod || die +} + +src_configure() { + sed -i -e "s:CFLAGS=-O:CFLAGS=${CFLAGS}:" -e "s:check_tif_rule::" \ + makefiles/Makefile.linux || die +} + +src_compile() { + emake CC="$(tc-getCC)" linux || die + emake VERSION="NEdit ${PV}" -j1 -C doc all || die +} + +src_install() { + dobin source/nedit || die + newbin source/nc neditc || die + newman doc/nedit.man nedit.1 || die + newman doc/nc.man neditc.1 || die + + dodoc README ReleaseNotes ChangeLog || die + cd doc + dodoc nedit.doc NEdit.ad faq.txt || die + dohtml nedit.html || die +} |