1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/games/narcissu2/Makefile
Mathieu Arnold a2262e9313 Remove unnecessary evals that do-fetch was using.
Turns out that env(1) knows how to parse a properly quoted string
using -S "string", it makes the double eval used for the fetch
command to be unnecessary.

This is because running:
eval "foo $(escape $bar)"
is silly when this works:
foo $bar

So remove escaping and quoting, and sillyness.

PR:		210198
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	The FreeBSD Foundation, Absolight
Differential Revision:	https://reviews.freebsd.org/D6779
2016-06-19 11:25:29 +00:00

62 lines
2.0 KiB
Makefile

# $FreeBSD$
PORTNAME= narcissu2
PORTVERSION= 1.1
CATEGORIES= games
MASTER_SITES= http://www.neechin.net/file_download/22/:game \
http://www.neechin.net/file_download/27/:script \
https://aur.archlinux.org/cgit/aur.git/plain/${PORTNAME}-en.png?h=${PORTNAME}-en&id=9768eea&foo=/:icon
DISTFILES= [Denpa]_Narcissu_2_Eng_[unix].tar.bz2.link:game \
Narcissu_2_Eng_v${PORTVERSION}_script_[All_platforms].zip:script \
${PORTNAME}-en.png:icon
EXTRACT_ONLY= ${DISTFILES:N*\:icon:C/:.*//}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Visual novel about an encounter of terminally ill
LICENSE= Freeware
LICENSE_NAME= Narcissu and Narcissu 2 License (from README)
LICENSE_TEXT= Permission has been granted to anyone to redistribute \
these games by means such as the Internet, provided such \
distribution is free of charge and the contents of the \
game data are not modified.
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
RUN_DEPENDS= ponscr:devel/ponscripter-sekai
NO_ARCH= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-installer
PORTDATA= *
PORTDOCS= README
PLIST_FILES= bin/${PORTNAME} \
man/man6/${PORTNAME}.6.gz \
share/icons/hicolor/48x48/apps/${PORTNAME}.png
DESKTOP_ENTRIES="Narcissu & Narcissu: Side 2nd" \
"" \
"${PORTNAME}" \
"${PORTNAME}" \
"Game;AdventureGame;" \
""
OPTIONS_DEFINE= DOCS
pre-install:
${PRINTF} '#! /bin/sh\nponscr --root ${DATADIR} "$$@"\n' \
>${WRKSRC}/${PORTNAME}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps
${INSTALL_DATA} ${_DISTDIR}/${DISTFILES:M*\:icon:C/:.*//} \
${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png
(cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${INSTALL_DATA} -p ${WRKDIR}/*.utf ${STAGEDIR}${DATADIR}
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.6 \
${STAGEDIR}${MAN6PREFIX}/man/man6/${PORTNAME}.6
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>