View | Details | Raw Unified | Return to bug 268895 | Differences between
and this patch

Collapse All | Expand All

(-)b/games/kanatest/Makefile (+57 lines)
Added Link Here
1
PORTNAME=	kanatest
2
PORTVERSION=	0.4.10
3
PORTREVISION=	3
4
CATEGORIES=	games
5
6
MAINTAINER=	Clockwork6400@protonmail.com
7
COMMENT=	Japanese kana (Hiragana and Katakana) simple flashcard tool
8
WWW=		https://github.com/Clockwork6400/kanatest
9
10
LICENSE=	GPLv2
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
13
LIB_DEPENDS+=	libharfbuzz.so:print/harfbuzz
14
USES=		gettext gmake gnome pkgconfig
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	Clockwork6400
17
USE_GNOME+=	atk cairo gdkpixbuf2 glib20 gtk30 libxml2 pango
18
GNU_CONFIGURE=	yes
19
MAKE_ENV+=	LIBINTL="-lintl"
20
21
OPTIONS_DEFINE=	NLS
22
OPTIONS_SUB=	yes
23
24
.include <bsd.port.options.mk>
25
26
.if ${PORT_OPTIONS:MNLS}
27
USES+=			gettext
28
PLIST_SUB+=		NLS=""
29
.else
30
CONFIGURE_ARGS+=	--disable-nls
31
PLIST_SUB+=		NLS="@comment "
32
.endif
33
34
pre-configure:
35
	${CHMOD} +x ${WRKSRC}/configure
36
	${REINPLACE_CMD} '/LIBS/s|-lxml|-L${LOCALBASE}/lib &|' \
37
		${WRKSRC}/configure
38
	${REINPLACE_CMD} -e 's|-DGTK_DISABLE_DEPRECATED||g' \
39
		${WRKSRC}/src/Makefile.in
40
	${REINPLACE_CMD} -e '/^%.mo:/,/^$$/s/test[^;]*/${TRUE}/' \
41
		-e '\|/usr/bin| { s||${LOCALBASE}/bin|; s|=|?=|; }' \
42
		${WRKSRC}/po/Makefile.in
43
	${REINPLACE_CMD} -e '/GTK_WIDGET_SET_FLAGS/ { \
44
		s//gtk_widget_set_can_default/; \
45
		s/GTK_CAN_DEFAULT/TRUE/; }' \
46
		-e '/GTK_WIDGET_UNSET_FLAGS/ { \
47
		s//gtk_widget_set_can_focus/; \
48
		s/GTK_CAN_FOCUS/FALSE/; }' \
49
		${WRKSRC}/src/about.c \
50
		${WRKSRC}/src/chart.c \
51
		${WRKSRC}/src/gui.c \
52
		${WRKSRC}/src/options.c \
53
		${WRKSRC}/src/stats.c
54
55
post-install-NLS-on:
56
57
.include <bsd.port.mk>
(-)b/games/kanatest/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1673380381
2
SHA256 (Clockwork6400-kanatest-0.4.10_GH0.tar.gz) = 04b545bd85abe196de7f08d5e956ca4e2a8b82b584a7ef79c47d27f47e2def87
3
SIZE (Clockwork6400-kanatest-0.4.10_GH0.tar.gz) = 392664
(-)b/games/kanatest/pkg-descr (+7 lines)
Added Link Here
1
During test the Kanatest displays randomly selected kana char
2
(respecting mode and lesson) and waits for user answer expected as
3
romaji equivalent. This process continues until all questions will be
4
answered or all questions will be answered correctly (depends on
5
options). At the end of test a short info about drilling time and
6
correctness ratio is displayed. The results are stored and user can
7
review his performance in any time.
(-)b/games/kanatest/pkg-plist (-1 / +21 lines)
Added Link Here
0
- 
1
%%NLS%%share/locale/de/LC_MESSAGES/kanatest.mo
2
%%NLS%%share/locale/es/LC_MESSAGES/kanatest.mo
3
%%NLS%%share/locale/fr/LC_MESSAGES/kanatest.mo
4
%%NLS%%share/locale/hu/LC_MESSAGES/kanatest.mo
5
%%NLS%%share/locale/it/LC_MESSAGES/kanatest.mo
6
%%NLS%%share/locale/pl/LC_MESSAGES/kanatest.mo
7
%%NLS%%share/locale/pt/LC_MESSAGES/kanatest.mo
8
%%NLS%%share/locale/ru/LC_MESSAGES/kanatest.mo
9
%%NLS%%share/locale/el/LC_MESSAGES/kanatest.mo
10
%%NLS%%share/locale/fi/LC_MESSAGES/kanatest.mo
11
%%NLS%%share/locale/hr/LC_MESSAGES/kanatest.mo
12
%%NLS%%share/locale/zh_CN/LC_MESSAGES/kanatest.mo
13
bin/kanatest
14
share/applications/kanatest.desktop
15
share/icons/hicolor/16x16/apps/kanatest.png
16
share/icons/hicolor/22x22/apps/kanatest.png
17
share/icons/hicolor/24x24/apps/kanatest.png
18
share/icons/hicolor/32x32/apps/kanatest.png
19
share/icons/hicolor/48x48/apps/kanatest.png
20
share/icons/hicolor/scalable/apps/kanatest.svg
21
share/pixmaps/kanatest.png

Return to bug 268895