FreeBSD Bugzilla – Attachment 123534 Details for
Bug 166886
games/latrine: Update to version 1.0.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 4.55 KB, created by
tkato432
on 2012-04-12 19:40:12 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2012-04-12 19:40:12 UTC
Size:
4.55 KB
patch
obsolete
>diff -urN /usr/ports/games/latrine/Makefile games/latrine/Makefile >--- /usr/ports/games/latrine/Makefile 2012-03-21 01:32:37.000000000 +0900 >+++ games/latrine/Makefile 2012-04-13 02:32:05.000000000 +0900 >@@ -6,28 +6,35 @@ > # > > PORTNAME= latrine >-PORTVERSION= 0.10.0 >-PORTREVISION= 2 >+PORTVERSION= 1.0.0 > CATEGORIES= games >-MASTER_SITES= http://people.debian.org/~godisch/latrine/ >+MASTER_SITES= http://alioth.debian.org/frs/download.php/3085/ > > MAINTAINER= ports@FreeBSD.org > COMMENT= Curses-based LAnguage TRaINEr > >+LICENSE= GPLv3 >+ >+BUILD_DEPENDS= p5-DBI>0:${PORTSDIR}/databases/p5-DBI >+ >+WRKSRC= ${WRKDIR}/${DISTNAME}/src >+ >+USE_CSTD= gnu89 >+USE_SQLITE= 3 >+USE_PERL5_BUILD=yes >+USE_NCURSES= yes >+USE_GETTEXT= yes >+USE_GMAKE= yes > GNU_CONFIGURE= yes >+MAKE_JOBS_SAFE= yes >+ > CPPFLAGS+= -I${LOCALBASE}/include -D_XOPEN_SOURCE_EXTENDED > LDFLAGS+= -L${LOCALBASE}/lib >-USE_CSTD= gnu89 >-USE_GMAKE= yes >-USE_GETTEXT= yes >-USE_NCURSES= yes >-WRKSRC= ${WRKDIR}/${DISTNAME}/src >-MAN1= latrine.1 > >-.include <bsd.port.pre.mk> >+MAN1= latrine.1 > > post-patch: >- @${REINPLACE_CMD} -e 's,ncursesw/ncurses.h,ncurses.h,' \ >- ${WRKSRC}/charset.h ${WRKSRC}/screen.c >+ @${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \ >+ 's|<ncursesw/|<|' > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff -urN /usr/ports/games/latrine/distinfo games/latrine/distinfo >--- /usr/ports/games/latrine/distinfo 2011-07-04 02:03:22.000000000 +0900 >+++ games/latrine/distinfo 2012-04-10 02:13:29.000000000 +0900 >@@ -1,2 +1,2 @@ >-SHA256 (latrine-0.10.0.tar.gz) = aeac80c8d158d9c0a4a269df1de41c51a98013ba21aaab230340d844408edba4 >-SIZE (latrine-0.10.0.tar.gz) = 109040 >+SHA256 (latrine-1.0.0.tar.gz) = f2df58e9cf112dd0bfa96a4a46a4be47e65a665188e8b14f8bf707d1b0b45c71 >+SIZE (latrine-1.0.0.tar.gz) = 128477 >diff -urN /usr/ports/games/latrine/files/patch-data.c games/latrine/files/patch-data.c >--- /usr/ports/games/latrine/files/patch-data.c 1970-01-01 09:00:00.000000000 +0900 >+++ games/latrine/files/patch-data.c 2012-04-10 22:49:43.000000000 +0900 >@@ -0,0 +1,43 @@ >+--- data.c.orig 2009-07-16 03:10:29.000000000 +0900 >++++ data.c 2012-04-10 22:49:26.000000000 +0900 >+@@ -26,6 +26,17 @@ >+ #include <stdlib.h> >+ #include <string.h> >+ >++#include <sys/param.h> >++#if __FreeBSD_version < 800067 >++#define NO_WCSCASECMP >++#endif >++ >++#if defined(NO_WCSCASECMP) >++#include <wchar.h> >++#include <wctype.h> >++#define wcscasecmp __wcscasecmp >++#endif >++ >+ #include "charset.h" >+ #include "latrine.h" >+ #include "memory.h" >+@@ -912,6 +923,22 @@ >+ return 0; >+ } >+ >++#if defined(NO_WCSCASECMP) >++int >++__wcscasecmp(const wchar_t *s1, const wchar_t *s2) >++{ >++ wchar_t c1, c2; >++ >++ for (; *s1; s1++, s2++) { >++ c1 = towlower(*s1); >++ c2 = towlower(*s2); >++ if (c1 != c2) >++ return ((int)c1 - c2); >++ } >++ return (-*s2); >++} >++#endif >++ >+ int >+ wordcmp(struct word *w[2], const int ignore_case) >+ { >diff -urN /usr/ports/games/latrine/files/patch-screen.c games/latrine/files/patch-screen.c >--- /usr/ports/games/latrine/files/patch-screen.c 2007-07-22 06:16:31.000000000 +0900 >+++ games/latrine/files/patch-screen.c 1970-01-01 09:00:00.000000000 +0900 >@@ -1,13 +0,0 @@ >-Index: screen.c >-@@ -23,7 +23,11 @@ >- #include <options.h> >- #include <screen.h> >- #include <unistd.h> >-+#ifdef __FreeBSD__ >-+#include <sys/wait.h> >-+#else >- #include <wait.h> >-+#endif >- >- #define LEFT 10 >- #define RIGHT 10 >diff -urN /usr/ports/games/latrine/pkg-descr games/latrine/pkg-descr >--- /usr/ports/games/latrine/pkg-descr 2007-02-19 07:19:06.000000000 +0900 >+++ games/latrine/pkg-descr 2012-04-10 02:10:30.000000000 +0900 >@@ -9,4 +9,4 @@ > dictionaries for about 50 language combinations, which can be used with > LaTrine. > >-WWW: http://www.godisch.de/debian/latrine/ >+WWW: http://alioth.debian.org/projects/latrine/ >diff -urN /usr/ports/games/latrine/pkg-plist games/latrine/pkg-plist >--- /usr/ports/games/latrine/pkg-plist 2007-02-19 07:19:06.000000000 +0900 >+++ games/latrine/pkg-plist 2012-04-10 03:32:59.000000000 +0900 >@@ -1,11 +1,17 @@ > bin/latrine >+share/locale/da/LC_MESSAGES/latrine.mo > share/locale/de/LC_MESSAGES/latrine.mo > share/locale/fr/LC_MESSAGES/latrine.mo > share/locale/ga/LC_MESSAGES/latrine.mo >+share/locale/id/LC_MESSAGES/latrine.mo > share/locale/it/LC_MESSAGES/latrine.mo >+share/locale/lv/LC_MESSAGES/latrine.mo > share/locale/nl/LC_MESSAGES/latrine.mo >+share/locale/pl/LC_MESSAGES/latrine.mo > share/locale/ro/LC_MESSAGES/latrine.mo >+share/locale/ru/LC_MESSAGES/latrine.mo > share/locale/sv/LC_MESSAGES/latrine.mo > share/locale/tr/LC_MESSAGES/latrine.mo > share/locale/vi/LC_MESSAGES/latrine.mo >+share/locale/zh_CN/LC_MESSAGES/latrine.mo > etc/latrine.conf.sample
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 166886
: 123534