blob: bd7ab9cda0e2923472d17fddc90ee3f699701dc8 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= lang
PORTVERSION= 2.0
PORTREVISION= 9
CATEGORIES= games python
MASTER_SITES= http://download.gna.org/py4childs/pysycache/v${PORTVERSION}/
PKGNAMEPREFIX= pysycache-
DISTFILES= #
DIST_SUBDIR= pysycache
MAINTAINER= ports@FreeBSD.org
COMMENT= The pysycache lang support
RUN_DEPENDS= pysycache.py:games/pysycache
USES= zip:infozip
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}
DATADIR= ${PREFIX}/share/${DIST_SUBDIR}
OPTIONS_MULTI= LANG
OPTIONS_MULTI_LANG= FRENCH GERMAN ITALIAN PORTUGUESE SPANISH
OPTIONS_DEFAULT= FRENCH GERMAN ITALIAN PORTUGUESE SPANISH
FRENCH_DESC= French language support
GERMAN_DESC= German language support
ITALIAN_DESC= Italian language support
PORTUGUESE_DESC= Portuguese language support
SPANISH_DESC= Spanish language support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFRENCH}
DISTFILES+= pysycache-lang-fr-${PORTVERSION}.zip
PLIST_SUB+= FRENCH=""
HAVE_LANG+= fr
.else
PLIST_SUB+= FRENCH="@comment "
.endif
.if ${PORT_OPTIONS:MGERMAN}
DISTFILES+= pysycache-lang-de-${PORTVERSION}.zip
PLIST_SUB+= GERMAN=""
HAVE_LANG+= de
.else
PLIST_SUB+= GERMAN="@comment "
.endif
.if ${PORT_OPTIONS:MITALIAN}
DISTFILES+= pysycache-lang-it-${PORTVERSION}.zip
PLIST_SUB+= ITALIAN=""
HAVE_LANG+= it
.else
PLIST_SUB+= ITALIAN="@comment "
.endif
.if ${PORT_OPTIONS:MPORTUGUESE}
DISTFILES+= pysycache-lang-pt-${PORTVERSION}.zip
PLIST_SUB+= PORTUGUESE=""
HAVE_LANG+= pt
.else
PLIST_SUB+= PORTUGUESE="@comment "
.endif
.if ${PORT_OPTIONS:MSPANISH}
DISTFILES+= pysycache-lang-es-${PORTVERSION}.zip
PLIST_SUB+= SPANISH=""
HAVE_LANG+= es
.else
PLIST_SUB+= SPANISH="@comment "
.endif
do-extract:
@${MKDIR} ${WRKSRC}
.for OPT in ${HAVE_LANG}
@${UNZIP_CMD} -q ${_DISTDIR}/pysycache-lang-${OPT}-${PORTVERSION}.zip -d ${WRKSRC}
.endfor
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
|