summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-02 20:26:51 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-02 20:26:51 +0000
commit97e4fc97d7ff2d5e08acd6ce1f7ce0675462210d (patch)
tree2c78b77aa68a2f43cc41208cc741e4e7da3ade20 /dev-libs/newt
parentVersion bump. (diff)
downloadgentoo-2-97e4fc97d7ff2d5e08acd6ce1f7ce0675462210d.tar.gz
gentoo-2-97e4fc97d7ff2d5e08acd6ce1f7ce0675462210d.tar.bz2
gentoo-2-97e4fc97d7ff2d5e08acd6ce1f7ce0675462210d.zip
Delete older ebuilds.
Diffstat (limited to 'dev-libs/newt')
-rw-r--r--dev-libs/newt/files/newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch11
-rw-r--r--dev-libs/newt/files/newt-0.51.6-assorted-fixes.patch93
-rw-r--r--dev-libs/newt/files/newt-0.51.6-do-not-ignore-EARLY-events-in-listbox--and-allow-textbox-to-take-focus.patch22
-rw-r--r--dev-libs/newt/files/newt-0.51.6-newttextbox-memoryleak.patch11
-rw-r--r--dev-libs/newt/files/newt-0.52.2-cbtpos.patch11
-rw-r--r--dev-libs/newt/files/newt-0.52.2-colors.patch31
-rw-r--r--dev-libs/newt/files/newt-0.52.2-cursor.patch10
-rw-r--r--dev-libs/newt/files/newt-0.52.2-dwchar.patch128
-rw-r--r--dev-libs/newt/files/newt-0.52.2-focus.patch236
-rw-r--r--dev-libs/newt/files/newt-0.52.2-notcl.patch45
-rw-r--r--dev-libs/newt/files/newt-0.52.2-pgupdown-crash.patch37
-rw-r--r--dev-libs/newt/files/newt-0.52.2-pyexample.patch10
-rw-r--r--dev-libs/newt/files/newt-0.52.2-screensize.patch49
-rw-r--r--dev-libs/newt/files/newt-0.52.2-scrollbars.patch21
-rw-r--r--dev-libs/newt/files/newt-0.52.7-notcl.patch35
-rw-r--r--dev-libs/newt/files/newt-gpm-fix.diff10
-rw-r--r--dev-libs/newt/newt-0.52.10.ebuild72
-rw-r--r--dev-libs/newt/newt-0.52.2-r1.ebuild87
-rw-r--r--dev-libs/newt/newt-0.52.2.ebuild84
19 files changed, 0 insertions, 1003 deletions
diff --git a/dev-libs/newt/files/newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch b/dev-libs/newt/files/newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch
deleted file mode 100644
index 63a26154feea..000000000000
--- a/dev-libs/newt/files/newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- newt-0.51.4/newt.c.pix 2003-08-30 03:09:25.000000000 +0200
-+++ newt-0.51.4/newt.c 2003-08-30 03:09:44.000000000 +0200
-@@ -164,7 +164,7 @@
- y = wcwidth(tmp);
- if (y>0)
- nchars+=y;
-- } else break;
-+ } else return nchars + len;
- }
- return nchars;
- }
diff --git a/dev-libs/newt/files/newt-0.51.6-assorted-fixes.patch b/dev-libs/newt/files/newt-0.51.6-assorted-fixes.patch
deleted file mode 100644
index 8f1cd2d4711f..000000000000
--- a/dev-libs/newt/files/newt-0.51.6-assorted-fixes.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-2005-12-12 Gwenole Beauchesne <gbeauchesne@mandriva.com>
-
- * checkboxtree.c (newtCheckboxTreeAddItem): Remove va_start()
- duplicates.
-
- * grid.c (newtGridHCloseStacked): Use va_end() when we have
- processed the varargs.
- (newtGridVCloseStacked): Likewise.
- (newtGridVStacked): Likewise.
- (newtGridHStacked): Likewise.
-
- * form.c (formOps): Make it local to the DSO.
- * grid.c (formOps): Fix declaration.
-
---- newt-0.51.6/grid.c.assorted-fixes 2002-08-15 16:13:40.000000000 -0400
-+++ newt-0.51.6/grid.c 2005-12-12 09:18:23.000000000 -0500
-@@ -26,8 +26,8 @@ struct grid_s {
- struct gridField ** fields;
- };
-
--/* this is a bit of a hack */
--extern struct componentOps formOps[];
-+/* make it local to the dso */
-+extern struct componentOps formOps __attribute__ ((visibility ("hidden")));
-
- newtGrid newtCreateGrid(int cols, int rows) {
- newtGrid grid;
-@@ -108,7 +108,7 @@ static void shuffleGrid(newtGrid grid, i
- shuffleGrid(field->u.grid, left, top, 0);
- j = field->u.grid->width;
- } else if (field->type == NEWT_GRID_COMPONENT) {
-- if (field->u.co->ops == formOps)
-+ if (field->u.co->ops == &formOps)
- newtFormSetSize(field->u.co);
- j = field->u.co->width;
- } else
-@@ -319,7 +319,7 @@ newtGrid newtGridHCloseStacked(enum newt
-
- grid = stackem(0, type1, what1, args, 1);
-
-- va_start(args, what1);
-+ va_end(args);
-
- return grid;
- }
-@@ -332,7 +332,7 @@ newtGrid newtGridVCloseStacked(enum newt
-
- grid = stackem(1, type1, what1, args, 1);
-
-- va_start(args, what1);
-+ va_end(args);
-
- return grid;
- }
-@@ -345,7 +345,7 @@ newtGrid newtGridVStacked(enum newtGridE
-
- grid = stackem(1, type1, what1, args, 0);
-
-- va_start(args, what1);
-+ va_end(args);
-
- return grid;
- }
-@@ -358,7 +358,7 @@ newtGrid newtGridHStacked(enum newtGridE
-
- grid = stackem(0, type1, what1, args, 0);
-
-- va_start(args, what1);
-+ va_end(args);
-
- return grid;
- }
---- newt-0.51.6/checkboxtree.c.assorted-fixes 2003-01-03 15:54:45.000000000 -0500
-+++ newt-0.51.6/checkboxtree.c 2005-12-12 09:15:56.000000000 -0500
-@@ -115,7 +115,6 @@ int newtCheckboxTreeAddItem(newtComponen
- va_start(argList, index);
- numIndexes = 0;
- i = index;
-- va_start(argList, index);
- while (i != NEWT_ARG_LAST) {
- indexes[numIndexes++] = i;
- i = va_arg(argList, int);
---- newt-0.51.6/form.c.assorted-fixes 2005-12-12 09:13:21.000000000 -0500
-+++ newt-0.51.6/form.c 2005-12-12 09:19:26.000000000 -0500
-@@ -415,7 +415,7 @@ static void formPlace(newtComponent co,
- static newtCallback helpCallback;
-
- /* this isn't static as grid.c tests against it to find forms */
--struct componentOps formOps = {
-+struct componentOps formOps __attribute__ ((visibility ("hidden"))) = {
- newtDrawForm,
- formEvent,
- newtFormDestroy,
diff --git a/dev-libs/newt/files/newt-0.51.6-do-not-ignore-EARLY-events-in-listbox--and-allow-textbox-to-take-focus.patch b/dev-libs/newt/files/newt-0.51.6-do-not-ignore-EARLY-events-in-listbox--and-allow-textbox-to-take-focus.patch
deleted file mode 100644
index da65cb65d86c..000000000000
--- a/dev-libs/newt/files/newt-0.51.6-do-not-ignore-EARLY-events-in-listbox--and-allow-textbox-to-take-focus.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- newt-0.51.6/textbox.c.pix 2003-01-03 21:54:45.000000000 +0100
-+++ newt-0.51.6/textbox.c 2005-04-26 16:33:18.336138737 +0200
-@@ -96,7 +96,7 @@
- co->height = height;
- co->top = top;
- co->left = left;
-- co->takesFocus = 0;
-+ co->takesFocus = flags & NEWT_FLAG_SCROLL;
- co->width = width;
-
- tb->doWrap = flags & NEWT_FLAG_WRAP;
---- newt-0.51.6/listbox.c.pix 2003-08-19 22:12:22.000000000 +0200
-+++ newt-0.51.6/listbox.c 2005-04-26 16:34:20.817788173 +0200
-@@ -542,7 +542,7 @@
-
- er.result = ER_IGNORED;
-
-- if(ev.when == EV_EARLY || ev.when == EV_LATE) {
-+ if(ev.when == EV_LATE) {
- return er;
- }
-
diff --git a/dev-libs/newt/files/newt-0.51.6-newttextbox-memoryleak.patch b/dev-libs/newt/files/newt-0.51.6-newttextbox-memoryleak.patch
deleted file mode 100644
index 1e4e074a14e6..000000000000
--- a/dev-libs/newt/files/newt-0.51.6-newttextbox-memoryleak.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -urN newt-0.51.6.orig/textbox.c newt-0.51.6/textbox.c
---- newt-0.51.6.orig/textbox.c 2003-01-03 12:54:45.000000000 -0800
-+++ newt-0.51.6/textbox.c 2005-08-12 19:31:03.000000000 -0700
-@@ -418,6 +418,7 @@
- int i;
- struct textbox * tb = co->data;
-
-+ if (tb->sb) tb->sb->ops->destroy(tb->sb);
- for (i = 0; i < tb->numLines; i++)
- free(tb->lines[i]);
- free(tb->lines);
diff --git a/dev-libs/newt/files/newt-0.52.2-cbtpos.patch b/dev-libs/newt/files/newt-0.52.2-cbtpos.patch
deleted file mode 100644
index e35b597dc9b4..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-cbtpos.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- newt-0.52.2/checkboxtree.c.cbtpos 2006-06-07 16:04:35.000000000 +0200
-+++ newt-0.52.2/checkboxtree.c 2006-06-08 13:28:31.000000000 +0200
-@@ -334,6 +334,8 @@
- ct = malloc(sizeof(struct CheckboxTree));
- co->callback = NULL;
- co->data = ct;
-+ co->left = left;
-+ co->top = top;
- co->ops = &ctOps;
- co->takesFocus = 1;
- co->height = height;
diff --git a/dev-libs/newt/files/newt-0.52.2-colors.patch b/dev-libs/newt/files/newt-0.52.2-colors.patch
deleted file mode 100644
index 052b4ed178ff..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-colors.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- newt-0.52.2/newt.c.colors 2006-06-08 17:05:42.000000000 +0200
-+++ newt-0.52.2/newt.c 2006-06-08 17:27:51.000000000 +0200
-@@ -53,21 +53,21 @@
- "red", "lightgray", /* title fg, bg */
- "lightgray", "red", /* button fg, bg */
- "red", "lightgray", /* active button fg, bg */
-- "yellow", "blue", /* checkbox fg, bg */
-- "blue", "brown", /* active checkbox fg, bg */
-- "yellow", "blue", /* entry box fg, bg */
-+ "lightgray", "blue", /* checkbox fg, bg */
-+ "lightgray", "red", /* active checkbox fg, bg */
-+ "lightgray", "blue", /* entry box fg, bg */
- "blue", "lightgray", /* label fg, bg */
- "black", "lightgray", /* listbox fg, bg */
-- "yellow", "blue", /* active listbox fg, bg */
-+ "lightgray", "blue", /* active listbox fg, bg */
- "black", "lightgray", /* textbox fg, bg */
-- "lightgray", "black", /* active textbox fg, bg */
-+ "lightgray", "red", /* active textbox fg, bg */
- "white", "blue", /* help line */
-- "yellow", "blue", /* root text */
-+ "lightgray", "blue", /* root text */
- "blue", /* scale full */
- "red", /* scale empty */
- "blue", "lightgray", /* disabled entry fg, bg */
- "black", "lightgray", /* compact button fg, bg */
-- "yellow", "red", /* active & sel listbox */
-+ "lightgray", "red", /* active & sel listbox */
- "black", "brown" /* selected listbox */
- };
-
diff --git a/dev-libs/newt/files/newt-0.52.2-cursor.patch b/dev-libs/newt/files/newt-0.52.2-cursor.patch
deleted file mode 100644
index ec6641df20f0..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-cursor.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- newt-0.52.2/entry.c.cursor 2005-09-30 16:05:55.000000000 +0200
-+++ newt-0.52.2/entry.c 2006-06-07 13:39:47.000000000 +0200
-@@ -322,6 +322,7 @@
- switch (key) {
- case '\r': /* Return */
- if (en->flags & NEWT_FLAG_RETURNEXIT) {
-+ newtCursorOff();
- er.result = ER_EXITFORM;
- } else {
- er.result = ER_NEXTCOMP;
diff --git a/dev-libs/newt/files/newt-0.52.2-dwchar.patch b/dev-libs/newt/files/newt-0.52.2-dwchar.patch
deleted file mode 100644
index 48c4625f5461..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-dwchar.patch
+++ /dev/null
@@ -1,128 +0,0 @@
---- newt-0.52.2/checkboxtree.c.dwchar 2006-08-04 13:41:28.000000000 +0200
-+++ newt-0.52.2/checkboxtree.c 2006-08-04 13:41:28.000000000 +0200
-@@ -490,8 +490,17 @@
- currRow = co->top + i;
- }
-
-- SLsmg_write_nstring((*item)->text, co->width - 4 -
-- (3 * (*item)->depth));
-+ j = 4 + (3 * (*item)->depth);
-+ SLsmg_write_nstring(NULL, co->width - j);
-+ newtGotorc(co->top + i, co->left + j);
-+ if (wstrlen((*item)->text, -1) > co->width - j) {
-+ char *tmp;
-+ tmp = strdup((*item)->text);
-+ trim_string(tmp, co->width - j);
-+ SLsmg_write_string(tmp);
-+ free(tmp);
-+ } else
-+ SLsmg_write_string((*item)->text);
-
- item++;
- i++;
---- newt-0.52.2/newt_pr.h.dwchar 2005-09-30 16:05:55.000000000 +0200
-+++ newt-0.52.2/newt_pr.h 2006-08-04 13:41:28.000000000 +0200
-@@ -82,5 +82,6 @@
-
- int _newt_wstrlen(const char *str, int len);
- #define wstrlen(str,len) _newt_wstrlen((str),(len))
-+void trim_string(char *title, int chrs);
-
- #endif /* H_NEWT_PR */
---- newt-0.52.2/listbox.c.dwchar 2006-08-04 13:41:28.000000000 +0200
-+++ newt-0.52.2/listbox.c 2006-08-04 13:41:28.000000000 +0200
-@@ -527,7 +527,16 @@
- else
- SLsmg_set_color(NEWT_COLORSET_LISTBOX);
-
-- SLsmg_write_nstring(item->text, li->curWidth);
-+ SLsmg_write_nstring(NULL, li->curWidth);
-+ newtGotorc(co->top + i + li->bdyAdjust, co->left + li->bdxAdjust);
-+ if (wstrlen(item->text, -1) > li->curWidth) {
-+ char *tmp;
-+ tmp = strdup(item->text);
-+ trim_string(tmp, li->curWidth);
-+ SLsmg_write_string(tmp);
-+ free(tmp);
-+ } else
-+ SLsmg_write_string(item->text);
-
- if (li->flags & NEWT_FLAG_MULTIPLE) {
- newtGotorc(co->top + i + li->bdyAdjust, co->left + li->bdxAdjust);
---- newt-0.52.2/newt.c.dwchar 2006-08-04 13:41:28.000000000 +0200
-+++ newt-0.52.2/newt.c 2006-08-04 13:41:28.000000000 +0200
-@@ -184,12 +184,13 @@
- void trim_string(char *title, int chrs)
- {
- char *p = title;
-- int ln = chrs;
-+ int ln;
- int x = 0,y = 0;
- wchar_t tmp;
- mbstate_t ps;
-
- memset(&ps, 0, sizeof(ps));
-+ ln = strlen(title);
-
- while (*p) {
- x = mbrtowc(&tmp, p, ln, &ps);
-@@ -198,12 +199,13 @@
- return;
- }
- y = wcwidth(tmp);
-- if (y > ln) {
-+ if (y > chrs) {
- *p = '\0';
- return;
- } else {
- p += x;
-- ln -= y;
-+ ln -= x;
-+ chrs -= y;
- }
- }
- }
-@@ -638,10 +640,10 @@
- currentWindow->height = height;
- currentWindow->title = title ? strdup(title) : NULL;
-
-- currentWindow->buffer = malloc(sizeof(SLsmg_Char_Type) * (width + 3) * (height + 3));
-+ currentWindow->buffer = malloc(sizeof(SLsmg_Char_Type) * (width + 5) * (height + 3));
-
- row = top - 1;
-- col = left - 1;
-+ col = left - 2;
- /* clip to the current screen bounds - msw */
- if (row < 0)
- row = 0;
-@@ -655,8 +657,8 @@
- for (j = 0; j < height + 3; j++, row++) {
- SLsmg_gotorc(row, col);
- SLsmg_read_raw(currentWindow->buffer + n,
-- currentWindow->width + 3);
-- n += currentWindow->width + 3;
-+ currentWindow->width + 5);
-+ n += currentWindow->width + 5;
- }
-
- newtTrashScreen();
-@@ -732,7 +734,7 @@
- row = col = 0;
-
- row = currentWindow->top - 1;
-- col = currentWindow->left - 1;
-+ col = currentWindow->left - 2;
- if (row < 0)
- row = 0;
- if (col < 0)
-@@ -740,8 +742,8 @@
- for (j = 0; j < currentWindow->height + 3; j++, row++) {
- SLsmg_gotorc(row, col);
- SLsmg_write_raw(currentWindow->buffer + n,
-- currentWindow->width + 3);
-- n += currentWindow->width + 3;
-+ currentWindow->width + 5);
-+ n += currentWindow->width + 5;
- }
-
- free(currentWindow->buffer);
diff --git a/dev-libs/newt/files/newt-0.52.2-focus.patch b/dev-libs/newt/files/newt-0.52.2-focus.patch
deleted file mode 100644
index 01af66c192b0..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-focus.patch
+++ /dev/null
@@ -1,236 +0,0 @@
---- newt-0.52.2/checkboxtree.c.focus 2006-06-08 17:05:42.000000000 +0200
-+++ newt-0.52.2/checkboxtree.c 2006-06-08 17:05:42.000000000 +0200
-@@ -25,6 +25,7 @@
- int sbAdjust;
- int curWidth;
- int userHasSetWidth;
-+ int isActive;
- char * seq;
- char * result;
- };
-@@ -341,6 +342,7 @@
- co->width = 0;
- co->isMapped = 0;
- ct->curWidth = 0;
-+ ct->isActive = 0;
- ct->userHasSetWidth = 0;
- ct->itemlist = NULL;
- ct->firstItem = NULL;
-@@ -462,12 +464,7 @@
-
- while (*item && i < co->height) {
- newtGotorc(co->top + i, co->left);
-- if (*item == *ct->currItem) {
-- SLsmg_set_color(NEWT_COLORSET_ACTLISTBOX);
-- currRow = co->top + i;
-- } else
-- SLsmg_set_color(NEWT_COLORSET_LISTBOX);
--
-+ SLsmg_set_color(NEWT_COLORSET_LISTBOX);
- for (j = 0; j < (*item)->depth; j++)
- SLsmg_write_string(" ");
-
-@@ -479,7 +476,7 @@
- } else {
- if (ct->flags & NEWT_CHECKBOXTREE_HIDE_BOX) {
- if ((*item)->selected)
-- SLsmg_set_color(NEWT_COLORSET_ACTLISTBOX);
-+ SLsmg_set_color(NEWT_COLORSET_SELLISTBOX);
- SLsmg_write_string(" ");
- } else {
- char tmp[5];
-@@ -487,12 +484,15 @@
- SLsmg_write_string(tmp);
- }
- }
-+ if (*item == *ct->currItem) {
-+ SLsmg_set_color(ct->isActive ?
-+ NEWT_COLORSET_ACTSELLISTBOX : NEWT_COLORSET_ACTLISTBOX);
-+ currRow = co->top + i;
-+ }
-
- SLsmg_write_nstring((*item)->text, co->width - 4 -
- (3 * (*item)->depth));
-
-- SLsmg_set_color(NEWT_COLORSET_LISTBOX);
--
- item++;
- i++;
- }
-@@ -688,11 +688,13 @@
- break;
-
- case EV_FOCUS:
-+ ct->isActive = 1;
- ctDraw(co);
- er.result = ER_SWALLOWED;
- break;
-
- case EV_UNFOCUS:
-+ ct->isActive = 0;
- ctDraw(co);
- er.result = ER_SWALLOWED;
- break;
---- newt-0.52.2/textbox.c.focus 2005-09-30 16:05:55.000000000 +0200
-+++ newt-0.52.2/textbox.c 2006-06-08 17:50:19.000000000 +0200
-@@ -15,9 +15,10 @@
- char *blankline;
- int linesAlloced;
- int doWrap;
-- newtComponent sb;
-+ newtComponent sb_act, sb;
- int topLine;
- int textWidth;
-+ int isActive;
- };
-
- static char * expandTabs(const char * text);
-@@ -43,8 +44,10 @@
- struct textbox * tb = co->data;
-
- co->isMapped = isMapped;
-- if (tb->sb)
-+ if (tb->sb) {
- tb->sb->ops->mapped(tb->sb, isMapped);
-+ tb->sb_act->ops->mapped(tb->sb_act, isMapped);
-+ }
- }
-
- static void textboxPlace(newtComponent co, int newLeft, int newTop) {
-@@ -53,8 +56,10 @@
- co->top = newTop;
- co->left = newLeft;
-
-- if (tb->sb)
-+ if (tb->sb) {
- tb->sb->ops->place(tb->sb, co->left + co->width - 1, co->top);
-+ tb->sb_act->ops->place(tb->sb_act, co->left + co->width - 1, co->top);
-+ }
- }
-
- void newtTextboxSetHeight(newtComponent co, int height) {
-@@ -107,16 +112,20 @@
- tb->lines = NULL;
- tb->topLine = 0;
- tb->textWidth = width;
-+ tb->isActive = 0;
- tb->blankline = malloc(width+1);
- memset(tb->blankline,' ',width);
- tb->blankline[width] = '\0';
-
- if (flags & NEWT_FLAG_SCROLL) {
- co->width += 2;
-+ tb->sb_act = newtVerticalScrollbar(co->left + co->width - 1, co->top,
-+ co->height, COLORSET_ACTTEXTBOX, COLORSET_TEXTBOX);
- tb->sb = newtVerticalScrollbar(co->left + co->width - 1, co->top,
- co->height, COLORSET_TEXTBOX, COLORSET_TEXTBOX);
-+ co->takesFocus = 1;
- } else {
-- tb->sb = NULL;
-+ tb->sb_act = tb->sb = NULL;
- }
-
- return co;
-@@ -342,8 +351,13 @@
-
- if (tb->sb) {
- size = tb->numLines - c->height;
-- newtScrollbarSet(tb->sb, tb->topLine, size ? size : 0);
-- tb->sb->ops->draw(tb->sb);
-+ if (tb->isActive) {
-+ newtScrollbarSet(tb->sb_act, tb->topLine, size ? size : 0);
-+ tb->sb_act->ops->draw(tb->sb_act);
-+ } else {
-+ newtScrollbarSet(tb->sb, tb->topLine, size ? size : 0);
-+ tb->sb->ops->draw(tb->sb);
-+ }
- }
-
- SLsmg_set_color(NEWT_COLORSET_TEXTBOX);
-@@ -363,7 +377,11 @@
-
- er.result = ER_IGNORED;
-
-- if (ev.when == EV_EARLY && ev.event == EV_KEYPRESS && tb->sb) {
-+ if (!tb->sb || ev.when == EV_EARLY || ev.when == EV_LATE)
-+ return er;
-+
-+ switch(ev.event) {
-+ case EV_KEYPRESS:
- newtTrashScreen();
- switch (ev.u.key) {
- case NEWT_KEY_UP:
-@@ -395,8 +413,8 @@
- er.result = ER_SWALLOWED;
- break;
- }
-- }
-- if (ev.when == EV_EARLY && ev.event == EV_MOUSE && tb->sb) {
-+ break;
-+ case EV_MOUSE:
- /* Top scroll arrow */
- if (ev.u.mouse.x == co->width && ev.u.mouse.y == co->top) {
- if (tb->topLine) tb->topLine--;
-@@ -412,6 +430,17 @@
-
- er.result = ER_SWALLOWED;
- }
-+ break;
-+ case EV_FOCUS:
-+ tb->isActive = 1;
-+ textboxDraw(co);
-+ er.result = ER_SWALLOWED;
-+ break;
-+ case EV_UNFOCUS:
-+ tb->isActive = 0;
-+ textboxDraw(co);
-+ er.result = ER_SWALLOWED;
-+ break;
- }
- return er;
- }
---- newt-0.52.2/listbox.c.focus 2005-09-30 16:05:55.000000000 +0200
-+++ newt-0.52.2/listbox.c 2006-06-08 17:05:42.000000000 +0200
-@@ -518,7 +518,7 @@
-
- newtGotorc(co->top + i + li->bdyAdjust, co->left + li->bdxAdjust);
- if(j + i == li->currItem) {
-- if(item->isSelected)
-+ if(li->isActive)
- SLsmg_set_color(NEWT_COLORSET_ACTSELLISTBOX);
- else
- SLsmg_set_color(NEWT_COLORSET_ACTLISTBOX);
-@@ -529,6 +529,12 @@
-
- SLsmg_write_nstring(item->text, li->curWidth);
-
-+ if (li->flags & NEWT_FLAG_MULTIPLE) {
-+ newtGotorc(co->top + i + li->bdyAdjust, co->left + li->bdxAdjust);
-+ SLsmg_set_color(item->isSelected ?
-+ NEWT_COLORSET_SELLISTBOX : NEWT_COLORSET_LISTBOX);
-+ SLsmg_write_nstring(item->text, 1);
-+ }
- }
- newtGotorc(co->top + (li->currItem - li->startShowItem) + li->bdyAdjust,
- co->left + li->bdxAdjust);
---- newt-0.52.2/form.c.focus 2005-09-21 11:32:01.000000000 +0200
-+++ newt-0.52.2/form.c 2006-06-27 14:40:19.000000000 +0200
-@@ -1027,8 +1027,17 @@
- }
- }
-
-- if (key == NEWT_KEY_F1 && form->helpTag && form->helpCb)
-+ if (key == NEWT_KEY_F1 && form->helpTag && form->helpCb) {
-+ if (form->currComp != -1) {
-+ ev.event = EV_UNFOCUS;
-+ sendEvent(form->elements[form->currComp].co, ev);
-+ }
- form->helpCb(co, form->helpTag);
-+ if (form->currComp != -1) {
-+ ev.event = EV_FOCUS;
-+ sendEvent(form->elements[form->currComp].co, ev);
-+ }
-+ }
-
- if (!done) {
- ev.event = EV_KEYPRESS;
diff --git a/dev-libs/newt/files/newt-0.52.2-notcl.patch b/dev-libs/newt/files/newt-0.52.2-notcl.patch
deleted file mode 100644
index 46f581b6c6f4..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-notcl.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- newt-0.52.2/Makefile.in.notcl 2005-11-22 09:39:14.000000000 +0100
-+++ newt-0.52.2/Makefile.in 2006-01-17 02:50:07.000000000 +0100
-@@ -14,7 +14,7 @@
-
- WHIPTCLSO=whiptcl.so
-
--PROGS = test whiptail $(WHIPTCLSO) testgrid testtree showchars showkey
-+PROGS = test whiptail testgrid testtree showchars showkey
- TESTOBJS = test.o
- NDIALOGOBJS = whiptail.o dialogboxes.o
- WHIPTCLOBJS = whiptcl.o dialogboxes.o
-@@ -78,15 +78,15 @@
- whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
- $(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt $(LIBS) -lpopt
-
--whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
-- $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lslang -lpopt -lm
-+#whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
-+# $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lslang -lpopt -lm
-
- # Ensure dialogboxes is compiled -fPIC
- dialogboxes.o: dialogboxes.c
- $(CC) $(CFLAGS) $(SHCFLAGS) -c dialogboxes.c
-
--whiptcl.o: whiptcl.c
-- $(CC) -I/usr/include/tcl8.4 $(SHCFLAGS) $(CFLAGS) -c whiptcl.c
-+#whiptcl.o: whiptcl.c
-+# $(CC) -I/usr/include/tcl8.4 $(SHCFLAGS) $(CFLAGS) -c whiptcl.c
-
-
- $(LIBNEWT): $(LIBOBJS)
-@@ -129,11 +129,11 @@
- install -m 644 $(LIBNEWT) $(instroot)/$(libdir)
- install -m 755 whiptail $(instroot)/$(bindir)
-
--install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
-+install-sh: sharedlib _snackmodule.so
- [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
- install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
- ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/libnewt.so
-- [ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
-+# [ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
- for ver in $(PYTHONVERS) ; do \
- [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
- install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\
diff --git a/dev-libs/newt/files/newt-0.52.2-pgupdown-crash.patch b/dev-libs/newt/files/newt-0.52.2-pgupdown-crash.patch
deleted file mode 100644
index f0fc646c8da3..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-pgupdown-crash.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- newt-0.52.2/checkboxtree.c.pgupdown-crash 2005-09-30 16:05:55.000000000 +0200
-+++ newt-0.52.2/checkboxtree.c 2006-01-17 23:40:19.000000000 +0100
-@@ -536,6 +536,18 @@
- free(co);
- }
-
-+static void ctEnsureLimits( struct CheckboxTree *ct ) {
-+ struct items **listEnd = ct->flatList + ct->flatCount - 1;
-+ if (ct->firstItem < ct->flatList)
-+ ct->firstItem = ct->flatList;
-+ if (ct->currItem < ct->flatList)
-+ ct->currItem = ct->flatList;
-+ if (ct->firstItem > listEnd) {
-+ ct->firstItem = listEnd;
-+ ct->currItem = listEnd;
-+ }
-+}
-+
- struct eventResult ctEvent(newtComponent co, struct event ev) {
- struct CheckboxTree * ct = co->data;
- struct eventResult er;
-@@ -647,6 +659,7 @@
- ct->currItem -= co->height;
- ct->firstItem -= co->height;
- }
-+ ctEnsureLimits( ct );
-
- ctDraw(co);
- if(co->callback) co->callback(co, co->callbackData);
-@@ -663,6 +676,7 @@
- ct->currItem += co->height;
- ct->firstItem += co->height;
- }
-+ ctEnsureLimits( ct );
-
- ctDraw(co);
- if(co->callback) co->callback(co, co->callbackData);
diff --git a/dev-libs/newt/files/newt-0.52.2-pyexample.patch b/dev-libs/newt/files/newt-0.52.2-pyexample.patch
deleted file mode 100644
index 65d115bd25cf..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-pyexample.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- newt-0.52.2/popcorn.py.pyexample 2000-05-16 18:54:02.000000000 +0200
-+++ newt-0.52.2/popcorn.py 2006-06-27 15:34:44.000000000 +0200
-@@ -4,7 +4,6 @@
- import sys
-
- def help(screen, text):
-- raise ValueError, "foo"
- ButtonChoiceWindow(screen, "Help", text, help = "Help on help")
-
- t = TextboxReflowed(25, "Some text which needs to be wrapped at a good place.")
diff --git a/dev-libs/newt/files/newt-0.52.2-screensize.patch b/dev-libs/newt/files/newt-0.52.2-screensize.patch
deleted file mode 100644
index 0e00a01e0cd4..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-screensize.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- newt-0.52.2/newt.h.screensize 2005-09-21 11:32:01.000000000 +0200
-+++ newt-0.52.2/newt.h 2006-05-31 15:09:39.000000000 +0200
-@@ -115,7 +115,7 @@
- void newtClearKeyBuffer(void);
- void newtDelay(unsigned int usecs);
- /* top, left are *not* counting the border */
--int newtOpenWindow(unsigned int left,unsigned int top,
-+int newtOpenWindow(int left,int top,
- unsigned int width,unsigned int height,
- const char * title);
- int newtCenteredWindow(unsigned int width,unsigned int height, const char * title);
---- newt-0.52.2/newt.c.screensize 2005-09-30 16:13:16.000000000 +0200
-+++ newt-0.52.2/newt.c 2006-05-31 15:12:48.000000000 +0200
-@@ -610,14 +610,14 @@
-
- /**
- * Open a new window.
-- * @param left. unsigned int Size; _not_ including border
-- * @param top: unsigned int size, _not_ including border
-+ * @param left. int Size; _not_ including border
-+ * @param top: int size, _not_ including border
- * @param width unsigned int
- * @param height unsigned int
- * @param title - title string
- * @return zero on success (currently no errors reported)
- */
--int newtOpenWindow(unsigned int left, unsigned int top,
-+int newtOpenWindow(int left, int top,
- unsigned int width, unsigned int height,
- const char * title) {
- int j, row, col;
-@@ -708,14 +708,14 @@
- */
- int newtCenteredWindow(unsigned int width,unsigned int height,
- const char * title) {
-- unsigned int top, left;
-+ int top, left;
-
-- top = (SLtt_Screen_Rows - height) / 2;
-+ top = (int)(SLtt_Screen_Rows - height) / 2;
-
- /* I don't know why, but this seems to look better */
- if ((SLtt_Screen_Rows % 2) && (top % 2)) top--;
-
-- left = (SLtt_Screen_Cols - width) / 2;
-+ left = (int)(SLtt_Screen_Cols - width) / 2;
-
- newtOpenWindow(left, top, width, height, title);
-
diff --git a/dev-libs/newt/files/newt-0.52.2-scrollbars.patch b/dev-libs/newt/files/newt-0.52.2-scrollbars.patch
deleted file mode 100644
index 9cf8542fbfb9..000000000000
--- a/dev-libs/newt/files/newt-0.52.2-scrollbars.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -ru newt-0.51.6/scrollbar.c newt-0.51.6-new/scrollbar.c
---- newt-0.51.6/scrollbar.c 2002-06-26 22:17:46.000000000 -0400
-+++ newt-0.51.6-new/scrollbar.c 2005-08-06 22:33:00.000000000 -0400
-@@ -47,7 +47,7 @@
- sb = malloc(sizeof(*sb));
- co->data = sb;
-
-- if (!strcmp(getenv("TERM"), "linux") && height >= 2) {
-+ if (height >= 2) {
- sb->arrows = 1;
- sb->curr = 1;
- } else {
-@@ -100,7 +100,7 @@
-
- static void sbDrawThumb(newtComponent co, int isOn) {
- struct scrollbar * sb = co->data;
-- SLtt_Char_Type ch = isOn ? '#' : SLSMG_CKBRD_CHAR;
-+ SLtt_Char_Type ch = isOn ? SLSMG_BLOCK_CHAR : SLSMG_CKBRD_CHAR;
-
- if (!co->isMapped) return;
-
diff --git a/dev-libs/newt/files/newt-0.52.7-notcl.patch b/dev-libs/newt/files/newt-0.52.7-notcl.patch
deleted file mode 100644
index b9f86e6b6054..000000000000
--- a/dev-libs/newt/files/newt-0.52.7-notcl.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- newt-0.52.7/Makefile.in.orig 2008-01-15 16:57:12.000000000 +0100
-+++ newt-0.52.7/Makefile.in 2008-01-15 16:58:38.000000000 +0100
-@@ -15,7 +15,7 @@
- PYTHONVERS = @PYTHONVERS@
- WHIPTCLSO = @WHIPTCLSO@
-
--PROGS = test whiptail $(WHIPTCLSO) testgrid testtree showchars showkey
-+PROGS = test whiptail testgrid testtree showchars showkey
- TESTOBJS = test.o testgrid.o testtree.o showchars.o showkey.o
- NDIALOGOBJS = whiptail.o dialogboxes.o
- WHIPTCLOBJS = shared/whiptcl.o shared/dialogboxes.o
-@@ -78,9 +78,6 @@
- whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
- $(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt $(LIBS) -lpopt
-
--whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
-- $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lslang -lpopt -lm
--
- $(LIBNEWT): $(LIBOBJS)
- ar rv $@ $^
-
-@@ -120,12 +117,11 @@
- install -m 644 whiptail.1 $(instroot)/$(man1dir)
- make -C po datadir=$(instroot)/$(datadir) install
-
--install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
-+install-sh: sharedlib _snackmodule.so
- [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
- install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
- ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
- ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
-- [ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
- for ver in $(PYTHONVERS) ; do \
- [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
- install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\
diff --git a/dev-libs/newt/files/newt-gpm-fix.diff b/dev-libs/newt/files/newt-gpm-fix.diff
deleted file mode 100644
index 7c43c69dbe96..000000000000
--- a/dev-libs/newt/files/newt-gpm-fix.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- form.c.orig Sat Mar 6 00:27:57 1999
-+++ form.c Tue Dec 14 12:18:16 1999
-@@ -304,6 +304,7 @@
- sock_name = 0;
- } /*if*/
- gpm_flag=0;
-+ gpm_fd=-1;
- return -1;
- }
-
diff --git a/dev-libs/newt/newt-0.52.10.ebuild b/dev-libs/newt/newt-0.52.10.ebuild
deleted file mode 100644
index 3fb19b7a9ea5..000000000000
--- a/dev-libs/newt/newt-0.52.10.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/newt-0.52.10.ebuild,v 1.11 2009/10/07 18:15:26 mescalinum Exp $
-
-inherit python toolchain-funcs eutils rpm
-
-DESCRIPTION="Redhat's Newt windowing toolkit development files"
-HOMEPAGE="https://fedorahosted.org/newt/"
-SRC_URI="https://fedorahosted.org/releases/n/e/newt/${P}.tar.gz"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 ~sparc x86"
-IUSE="gpm tcl nls"
-
-RDEPEND="=sys-libs/slang-2*
- >=dev-libs/popt-1.6
- dev-lang/python
- elibc_uclibc? ( sys-libs/ncurses )
- gpm? ( sys-libs/gpm )
- tcl? ( =dev-lang/tcl-8.5* )
- "
-
-DEPEND="${RDEPEND}"
-
-src_unpack() {
- unpack ${A}
- #rpm_src_unpack
- cd "${S}"
-
- # bug 73850
- if use elibc_uclibc; then
- sed -i -e 's:-lslang:-lslang -lncurses:g' "${S}"/Makefile.in
- fi
-
- # bug 212676
- sed -i -e 's:-ltcl8.4:-ltcl8.5:g' "${S}"/Makefile.in
-
- sed -i -e 's:instroot:DESTDIR:g' "${S}"/Makefile.in || die
-}
-
-src_compile() {
- python_version
-
- econf \
- $(use_with gpm gpm-support) \
- $(use_with tcl) \
- $(use_enable nls)
-
- # not parallel safe
- emake -j1 \
- CC="$(tc-getCC)" \
- PYTHONVERS="python${PYVER}" \
- RPM_OPT_FLAGS="${CFLAGS}" \
- || die "emake failed"
-}
-
-src_install () {
- python_version
- # the RPM_OPT_FLAGS="ERROR" is there to catch a build error
- # if it fails, that means something in src_compile() didn't build properly
- # not parallel safe
- emake \
- DESTDIR="${D}" \
- prefix="/usr" \
- libdir="/usr/$(get_libdir)" \
- PYTHONVERS="python${PYVER}" \
- RPM_OPT_FLAGS="ERROR" \
- install || die "make install failed"
- dodoc peanuts.py popcorn.py tutorial.sgml
- doman whiptail.1
-}
diff --git a/dev-libs/newt/newt-0.52.2-r1.ebuild b/dev-libs/newt/newt-0.52.2-r1.ebuild
deleted file mode 100644
index 7946c803267c..000000000000
--- a/dev-libs/newt/newt-0.52.2-r1.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/newt-0.52.2-r1.ebuild,v 1.1 2009/10/07 18:15:26 mescalinum Exp $
-
-inherit python toolchain-funcs eutils rpm
-
-# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
-# tarball out of it
-RPMREV="9"
-
-DESCRIPTION="Redhat's Newt windowing toolkit development files"
-HOMEPAGE="http://www.redhat.com/"
-SRC_URI="mirror://fedora/development/source/SRPMS/${P}-${RPMREV}.src.rpm"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="gpm tcl"
-
-RDEPEND=">=sys-libs/slang-1.4
- >=dev-libs/popt-1.6
- dev-lang/python
- elibc_uclibc? ( sys-libs/ncurses )
- gpm? ( sys-libs/gpm )
- tcl? ( =dev-lang/tcl-8.4* )"
-DEPEND="${RDEPEND}"
-
-src_unpack() {
- rpm_src_unpack
- cd "${S}"
-
- epatch "${FILESDIR}"/${P}-scrollbars.patch
- epatch "${FILESDIR}"/${P}-pgupdown-crash.patch
- epatch "${FILESDIR}"/${P}-screensize.patch
- epatch "${FILESDIR}"/${P}-cbtpos.patch
- epatch "${FILESDIR}"/${P}-focus.patch
- epatch "${FILESDIR}"/${P}-cursor.patch
- epatch "${FILESDIR}"/${P}-colors.patch
- epatch "${FILESDIR}"/${P}-pyexample.patch
- epatch "${FILESDIR}"/${P}-dwchar.patch
-
- if ! use tcl; then
- epatch "${FILESDIR}"/${P}-notcl.patch
- fi
-
- # bug 73850
- if use elibc_uclibc; then
- sed -i -e 's:-lslang:-lslang -lncurses:g' "${S}"/Makefile.in
- fi
-
- sed -i -e 's:0.52.1:0.52.2:g' "${S}"/configure || die
-
- # bug 285854
- epatch "${FILESDIR}"/newt-CVE-2009-2905.patch
-}
-
-src_compile() {
- python_version
-
- econf \
- $(use_with gpm gpm-support)
-
- # not parallel safe
- emake \
- CC="$(tc-getCC)" \
- PYTHONVERS="python${PYVER}" \
- RPM_OPT_FLAGS="${CFLAGS}" \
- || die "emake failed"
-}
-
-src_install () {
- python_version
- # the RPM_OPT_FLAGS="ERROR" is there to catch a build error
- # if it fails, that means something in src_compile() didn't build properly
- # not parallel safe
- emake \
- prefix="${D}/usr" \
- libdir="${D}/usr/$(get_libdir)" \
- PYTHONVERS="python${PYVER}" \
- RPM_OPT_FLAGS="ERROR" \
- install || die "make install failed"
- dodoc peanuts.py popcorn.py tutorial.sgml
- doman whiptail.1
-
- # Don't know if it's needed but it was here before so leaving /peper
- dosym libnewt.so.0.52.2 /usr/$(get_libdir)/libnewt.so.0.52
-}
diff --git a/dev-libs/newt/newt-0.52.2.ebuild b/dev-libs/newt/newt-0.52.2.ebuild
deleted file mode 100644
index 5dcb775c76a1..000000000000
--- a/dev-libs/newt/newt-0.52.2.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/newt-0.52.2.ebuild,v 1.16 2009/10/07 18:15:26 mescalinum Exp $
-
-inherit python toolchain-funcs eutils rpm
-
-# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
-# tarball out of it
-RPMREV="9"
-
-DESCRIPTION="Redhat's Newt windowing toolkit development files"
-HOMEPAGE="http://www.redhat.com/"
-SRC_URI="mirror://fedora/development/source/SRPMS/${P}-${RPMREV}.src.rpm"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
-IUSE="gpm tcl"
-
-RDEPEND=">=sys-libs/slang-1.4
- >=dev-libs/popt-1.6
- dev-lang/python
- elibc_uclibc? ( sys-libs/ncurses )
- gpm? ( sys-libs/gpm )
- tcl? ( =dev-lang/tcl-8.4* )"
-DEPEND="${RDEPEND}"
-
-src_unpack() {
- rpm_src_unpack
- cd "${S}"
-
- epatch "${FILESDIR}"/${P}-scrollbars.patch
- epatch "${FILESDIR}"/${P}-pgupdown-crash.patch
- epatch "${FILESDIR}"/${P}-screensize.patch
- epatch "${FILESDIR}"/${P}-cbtpos.patch
- epatch "${FILESDIR}"/${P}-focus.patch
- epatch "${FILESDIR}"/${P}-cursor.patch
- epatch "${FILESDIR}"/${P}-colors.patch
- epatch "${FILESDIR}"/${P}-pyexample.patch
- epatch "${FILESDIR}"/${P}-dwchar.patch
-
- if ! use tcl; then
- epatch "${FILESDIR}"/${P}-notcl.patch
- fi
-
- # bug 73850
- if use elibc_uclibc; then
- sed -i -e 's:-lslang:-lslang -lncurses:g' "${S}"/Makefile.in
- fi
-
- sed -i -e 's:0.52.1:0.52.2:g' "${S}"/configure || die
-}
-
-src_compile() {
- python_version
-
- econf \
- $(use_with gpm gpm-support)
-
- # not parallel safe
- emake \
- CC="$(tc-getCC)" \
- PYTHONVERS="python${PYVER}" \
- RPM_OPT_FLAGS="${CFLAGS}" \
- || die "emake failed"
-}
-
-src_install () {
- python_version
- # the RPM_OPT_FLAGS="ERROR" is there to catch a build error
- # if it fails, that means something in src_compile() didn't build properly
- # not parallel safe
- emake \
- prefix="${D}/usr" \
- libdir="${D}/usr/$(get_libdir)" \
- PYTHONVERS="python${PYVER}" \
- RPM_OPT_FLAGS="ERROR" \
- install || die "make install failed"
- dodoc peanuts.py popcorn.py tutorial.sgml
- doman whiptail.1
-
- # Don't know if it's needed but it was here before so leaving /peper
- dosym libnewt.so.0.52.2 /usr/$(get_libdir)/libnewt.so.0.52
-}