View | Details | Raw Unified | Return to bug 166886
Collapse All | Expand All

(-)games/latrine/Makefile (-13 / +20 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	latrine
8
PORTNAME=	latrine
9
PORTVERSION=	0.10.0
9
PORTVERSION=	1.0.0
10
PORTREVISION=	2
11
CATEGORIES=	games
10
CATEGORIES=	games
12
MASTER_SITES=	http://people.debian.org/~godisch/latrine/
11
MASTER_SITES=	http://alioth.debian.org/frs/download.php/3085/
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Curses-based LAnguage TRaINEr
14
COMMENT=	Curses-based LAnguage TRaINEr
16
15
16
LICENSE=	GPLv3
17
18
BUILD_DEPENDS=	p5-DBI>0:${PORTSDIR}/databases/p5-DBI
19
20
WRKSRC=		${WRKDIR}/${DISTNAME}/src
21
22
USE_CSTD=	gnu89
23
USE_SQLITE=	3
24
USE_PERL5_BUILD=yes
25
USE_NCURSES=	yes
26
USE_GETTEXT=	yes
27
USE_GMAKE=	yes
17
GNU_CONFIGURE=	yes
28
GNU_CONFIGURE=	yes
29
MAKE_JOBS_SAFE=	yes
30
18
CPPFLAGS+=	-I${LOCALBASE}/include -D_XOPEN_SOURCE_EXTENDED
31
CPPFLAGS+=	-I${LOCALBASE}/include -D_XOPEN_SOURCE_EXTENDED
19
LDFLAGS+=	-L${LOCALBASE}/lib
32
LDFLAGS+=	-L${LOCALBASE}/lib
20
USE_CSTD=	gnu89
21
USE_GMAKE=	yes
22
USE_GETTEXT=	yes
23
USE_NCURSES=	yes
24
WRKSRC=		${WRKDIR}/${DISTNAME}/src
25
MAN1=		latrine.1
26
33
27
.include <bsd.port.pre.mk>
34
MAN1=		latrine.1
28
35
29
post-patch:
36
post-patch:
30
	@${REINPLACE_CMD} -e 's,ncursesw/ncurses.h,ncurses.h,' \
37
	@${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
31
		${WRKSRC}/charset.h ${WRKSRC}/screen.c
38
		's|<ncursesw/|<|'
32
39
33
.include <bsd.port.post.mk>
40
.include <bsd.port.mk>
(-)games/latrine/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (latrine-0.10.0.tar.gz) = aeac80c8d158d9c0a4a269df1de41c51a98013ba21aaab230340d844408edba4
1
SHA256 (latrine-1.0.0.tar.gz) = f2df58e9cf112dd0bfa96a4a46a4be47e65a665188e8b14f8bf707d1b0b45c71
2
SIZE (latrine-0.10.0.tar.gz) = 109040
2
SIZE (latrine-1.0.0.tar.gz) = 128477
(-)games/latrine/files/patch-data.c (+43 lines)
Line 0 Link Here
1
--- data.c.orig	2009-07-16 03:10:29.000000000 +0900
2
+++ data.c	2012-04-10 22:49:26.000000000 +0900
3
@@ -26,6 +26,17 @@
4
 #include <stdlib.h>
5
 #include <string.h>
6
 
7
+#include <sys/param.h>
8
+#if __FreeBSD_version < 800067
9
+#define NO_WCSCASECMP
10
+#endif
11
+
12
+#if defined(NO_WCSCASECMP)
13
+#include <wchar.h>
14
+#include <wctype.h>
15
+#define wcscasecmp __wcscasecmp
16
+#endif
17
+
18
 #include "charset.h"
19
 #include "latrine.h"
20
 #include "memory.h"
21
@@ -912,6 +923,22 @@
22
 	return 0;
23
 }
24
 
25
+#if defined(NO_WCSCASECMP)
26
+int
27
+__wcscasecmp(const wchar_t *s1, const wchar_t *s2)
28
+{
29
+	wchar_t c1, c2;
30
+
31
+	for (; *s1; s1++, s2++) {
32
+		c1 = towlower(*s1);
33
+		c2 = towlower(*s2);
34
+		if (c1 != c2)
35
+			return ((int)c1 - c2);
36
+	}
37
+	return (-*s2);
38
+}
39
+#endif
40
+
41
 int
42
 wordcmp(struct word *w[2], const int ignore_case)
43
 {
(-)games/latrine/files/patch-screen.c (-13 lines)
Lines 1-13 Link Here
1
Index: screen.c
2
@@ -23,7 +23,11 @@
3
 #include <options.h>
4
 #include <screen.h>
5
 #include <unistd.h>
6
+#ifdef __FreeBSD__
7
+#include <sys/wait.h>
8
+#else
9
 #include <wait.h>
10
+#endif
11
 
12
 #define LEFT        10
13
 #define RIGHT       10
(-)games/latrine/pkg-descr (-1 / +1 lines)
Lines 9-12 Link Here
9
dictionaries for about 50 language combinations, which can be used with
9
dictionaries for about 50 language combinations, which can be used with
10
LaTrine.
10
LaTrine.
11
11
12
WWW: http://www.godisch.de/debian/latrine/
12
WWW: http://alioth.debian.org/projects/latrine/
(-)games/latrine/pkg-plist (+6 lines)
Lines 1-11 Link Here
1
bin/latrine
1
bin/latrine
2
share/locale/da/LC_MESSAGES/latrine.mo
2
share/locale/de/LC_MESSAGES/latrine.mo
3
share/locale/de/LC_MESSAGES/latrine.mo
3
share/locale/fr/LC_MESSAGES/latrine.mo
4
share/locale/fr/LC_MESSAGES/latrine.mo
4
share/locale/ga/LC_MESSAGES/latrine.mo
5
share/locale/ga/LC_MESSAGES/latrine.mo
6
share/locale/id/LC_MESSAGES/latrine.mo
5
share/locale/it/LC_MESSAGES/latrine.mo
7
share/locale/it/LC_MESSAGES/latrine.mo
8
share/locale/lv/LC_MESSAGES/latrine.mo
6
share/locale/nl/LC_MESSAGES/latrine.mo
9
share/locale/nl/LC_MESSAGES/latrine.mo
10
share/locale/pl/LC_MESSAGES/latrine.mo
7
share/locale/ro/LC_MESSAGES/latrine.mo
11
share/locale/ro/LC_MESSAGES/latrine.mo
12
share/locale/ru/LC_MESSAGES/latrine.mo
8
share/locale/sv/LC_MESSAGES/latrine.mo
13
share/locale/sv/LC_MESSAGES/latrine.mo
9
share/locale/tr/LC_MESSAGES/latrine.mo
14
share/locale/tr/LC_MESSAGES/latrine.mo
10
share/locale/vi/LC_MESSAGES/latrine.mo
15
share/locale/vi/LC_MESSAGES/latrine.mo
16
share/locale/zh_CN/LC_MESSAGES/latrine.mo
11
etc/latrine.conf.sample
17
etc/latrine.conf.sample

Return to bug 166886