aboutsummaryrefslogtreecommitdiff
path: root/japanese/kana-no-quiz/Makefile
blob: 5824796b146308f872429d3ff320e0a1ce1836d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$

PORTNAME=	kana-no-quiz
DISTVERSION=	1.9.5
PORTREVISION=	3
CATEGORIES=	japanese
MASTER_SITES=	SF/${PORTNAME}/Program%20releases/version%20${DISTVERSION}
DISTNAME=	Kana_no_quiz-${DISTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Educational tool to memorize Japanese KANA (Hiragana/Katakana)

DEPRECATED=	Unmaintained, uses EOLed python27
EXPIRATION_DATE=	2020-01-27

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/GPL.txt

RUN_DEPENDS=	${PYGAME}

NO_BUILD=	yes
NO_ARCH=	yes

USES=		gettext gnome python:2.7 tar:bzip2
USE_GNOME=	pygtk2:run
USE_PYTHON=	distutils autoplist

WRKSRC=		"${WRKDIR}/${DISTNAME:S/_/ /g}"

post-patch:
	@${REINPLACE_CMD} -e \
		's|/usr/share|${PREFIX}/share|' \
		${WRKSRC}/data/misc/kana-no-quiz.desktop

pre-configure:
	@${MKDIR} ${WRKSRC}/data/script
	@${ECHO_CMD} -n > ${WRKSRC}/data/script/kana-no-quiz
	@${ECHO_CMD} '#!${PYTHON_CMD}' \
		>> ${WRKSRC}/data/script/kana-no-quiz
	@${ECHO_CMD} 'from kananoquiz import *' \
		>> ${WRKSRC}/data/script/kana-no-quiz

.include <bsd.port.mk>