From: Chris White Date: Wed, 30 Nov 2005 09:56:01 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea4c2822fb2116005c80817e5a0ed3eb4cbcdc48;p=gentoo.git --- diff --git a/sys-apps/gmemusage/Manifest b/sys-apps/gmemusage/Manifest new file mode 100644 index 000000000000..24c2b84c8344 --- /dev/null +++ b/sys-apps/gmemusage/Manifest @@ -0,0 +1,3 @@ +MD5 0ca7007f9ef35e838cad5da804adc32f gmemusage-0.2.ebuild 1203 +MD5 22ec727a0ec4602874a94a0a15095858 files/digest-gmemusage-0.2 68 +MD5 37794dad03f7d6f57d8371956d248021 files/gmemusage-0.2-gentoo.patch 3064 diff --git a/sys-apps/gmemusage/files/digest-gmemusage-0.2 b/sys-apps/gmemusage/files/digest-gmemusage-0.2 new file mode 100644 index 000000000000..a17e3208158e --- /dev/null +++ b/sys-apps/gmemusage/files/digest-gmemusage-0.2 @@ -0,0 +1 @@ +MD5 98fccb8a1730830685e52e1f73ae1c34 gmemusage-0.2-082599.tgz 30129 diff --git a/sys-apps/gmemusage/files/gmemusage-0.2-gentoo.patch b/sys-apps/gmemusage/files/gmemusage-0.2-gentoo.patch new file mode 100644 index 000000000000..4fef1ffeaa17 --- /dev/null +++ b/sys-apps/gmemusage/files/gmemusage-0.2-gentoo.patch @@ -0,0 +1,105 @@ +diff -ur gmemusage-0.2/gmemusage.h gmemusage-0.2-patched/gmemusage.h +--- gmemusage-0.2/gmemusage.h 1999-08-25 21:23:52.000000000 -0600 ++++ gmemusage-0.2-patched/gmemusage.h 2005-09-16 02:43:19.000000000 -0600 +@@ -30,8 +30,8 @@ + void list (void); + void drawstring (int x, int y, char *str); + void drawstringfixed (int x, int y, char *str); +-void drawstringright (int x, int y, char *str, float width); +-void drawstringcenter (int x, int y, char *str, float width); ++void drawstringright (int x, int y, const char *str, float width); ++void drawstringcenter (int x, int y, const char *str, float width); + void refresh (int ); + void display (void); + void mouseClick (int button, int state, int x, int y); +diff -ur gmemusage-0.2/util.c gmemusage-0.2-patched/util.c +--- gmemusage-0.2/util.c 1999-08-25 21:23:52.000000000 -0600 ++++ gmemusage-0.2-patched/util.c 2005-09-16 02:43:55.000000000 -0600 +@@ -26,11 +26,15 @@ + */ + + #include ++#include + + #include "TexFont.h" + + #include "enum.h" + #include "extern.h" ++#include ++#include ++ + + /*--------------------------------------------------------*/ + void drawstring (int x, int y, char *str) +@@ -89,17 +93,18 @@ + } + + /*--------------------------------------------------------*/ +-void drawstringright (int x, int y, char *str, float width) ++void drawstringright (int x, int y, const char *str, float width) + { + int len, i; + + + len = strlen(str); ++ char *str_ = strdup(str); + + switch(g_drawText) + { + case BitmapText: +- glRasterPos2f(x+(width-glutBitmapLength(GLUT_BITMAP_HELVETICA_12, str)), y); ++ glRasterPos2f(x+(width-glutBitmapLength(GLUT_BITMAP_HELVETICA_12, (const unsigned char*)str)), y); + for (i=0; i