File:  [cvs.NetBSD.org] / pkgsrc / games / blindmine / Makefile
Revision 1.28: download - view: text, annotated - select for diffs
Sun Jan 14 17:33:58 2018 UTC (6 years, 10 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, HEAD
games/*: fix alignment of variable values

pkglint -Wall -r --autofix --only aligned

After running the above command, three packages had to be adjusted
manually:

In maelstrom-x11, pkglint didn't see that a commented variable
assignment should have been re-aligned as well.

In netmaze, there was a single line that didn't align well with all the
others, but pkglint decided to adjust the whole paragraph to this single
line. The result would have been ok, but not good.

In tscp, there was a paragraph where some of the lines were indented
one space more than the others. This rule is useful when one variable
name is very long compared to the others, but not in this case.

# $NetBSD: Makefile,v 1.28 2018/01/14 17:33:58 rillig Exp $

DISTNAME=	blindmine-0.3-src
PKGNAME=	${DISTNAME:S/-src//}
PKGREVISION=	16
CATEGORIES=	games python
MASTER_SITES=	http://kldp.net/frs/download.php/3097/
EXTRACT_SUFX=	.zip

MAINTAINER=	fox9@netb.co.kr
HOMEPAGE=	http://blindmine.kldp.net/
COMMENT=	Minesweeper clone that you can play with your eyes closed

WRKSRC=		${WRKDIR}/${PKGBASE}
NO_CONFIGURE=	yes
NO_BUILD=	yes

SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Fixing paths.
SUBST_STAGE.path=	post-patch
SUBST_FILES.path=	blindmine.py sdl_ui.py
SUBST_SED.path=		-e 's,/usr/bin/env python,${PYTHONBIN},g'

PYCOMPILEALL=			${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py
PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 # not yet ported as of 0.3

INSTALLATION_DIRS=	bin share/doc/blindmine share/blindmine/data

.include "../../devel/py-game/buildlink3.mk"
.include "../../lang/python/application.mk"

post-extract:
	( ${ECHO} "#!${SH}";						    \
	  ${ECHO} "cd ${PREFIX}/share/blindmine && ${PYTHONBIN} blindmine.py > /dev/null"    \
	) > ${WRKSRC}/blindmine
	${CHMOD} +x ${WRKSRC}/blindmine

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/blindmine ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/howto.txt ${DESTDIR}${PREFIX}/share/doc/blindmine
	${INSTALL_DATA} ${WRKSRC}/*.py ${DESTDIR}${PREFIX}/share/blindmine
	${INSTALL_DATA} ${WRKSRC}/data/* ${DESTDIR}${PREFIX}/share/blindmine/data
	${PYTHONBIN} ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/share/blindmine
	${PYTHONBIN} -O ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/share/blindmine

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>