blob: acb89c3d15a69c80265f799ccae8b40aec832657 (
plain)
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
|
# $FreeBSD$
PORTNAME= katawa-shoujo
PORTVERSION= 1.3
DISTVERSIONSUFFIX=-[linux-x86][FCF758CC]
CATEGORIES= games
MASTER_SITES= http://dl.katawa-shoujo.com/gold_${PORTVERSION}/:game \
GENTOO:icon
DISTFILES= [4ls]_${PORTNAME:S|-|_|}_${PORTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}:game \
${PORTNAME}-48.png:icon \
${PORTNAME}-256.png:icon
EXTRACT_ONLY= [4ls]_${PORTNAME:S|-|_|}_${PORTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Bishoujo-style visual novel about disabled adolescents
LICENSE= CCbyNCND3
LICENSE_NAME= Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
LICENSE_TEXT= See https://creativecommons.org/licenses/by-nc-nd/3.0/
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
RUN_DEPENDS= renpy:${PORTSDIR}/devel/renpy
USES= tar:bz2
NO_ARCH= yes
NO_BUILD= yes
INSTALLS_ICONS= yes
WRKSRC= ${WRKDIR}/Katawa\ Shoujo-${PORTVERSION}-linux
PORTDATA= *
PORTDOCS= *.pdf
PLIST_FILES= bin/${PORTNAME} \
share/icons/hicolor/48x48/apps/${PORTNAME}.png \
share/icons/hicolor/256x256/apps/${PORTNAME}.png
DESKTOP_ENTRIES="Katawa Shoujo" \
"" \
"${PORTNAME}" \
"${PORTNAME}" \
"Game;AdventureGame;" \
""
OPTIONS_DEFINE= DOCS
pre-install:
${PRINTF} '#! /bin/sh\nrenpy ${DATADIR} "$$@"\n' \
>${WRKDIR}/${PORTNAME}
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.for i in 48 256
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-${i}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/${PORTNAME}.png
.endfor
(cd ${WRKSRC}/game && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|