From 7ab18d94255a28ff4cbde49cc1d836e64da74451 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 10 Apr 2017 09:02:09 +0000 Subject: [PATCH] - Simplify by using DISTVERSION - Fix LICENSE - Add NO_ARCH - Switch to options helpers --- games/magicmaze/Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/games/magicmaze/Makefile b/games/magicmaze/Makefile index df96d323f5b6..81b07dedbece 100644 --- a/games/magicmaze/Makefile +++ b/games/magicmaze/Makefile @@ -2,47 +2,47 @@ # $FreeBSD$ PORTNAME= magicmaze -PORTVERSION= 1.4.3.6 +DISTVERSION= 1_4_3_6 PORTREVISION= 4 CATEGORIES= games ruby MASTER_SITES= SF/nemysisfreebsdp/${CATEGORIES}/ -DISTNAME= ${PORTNAME}-${DISTVERSION:S/./_/g} MAINTAINER= ports@FreeBSD.org COMMENT= Simple and low-tech monster-bashing maze game -LICENSE= GPLv2 RUBY +LICENSE= GPLv2+ RUBY LICENSE_COMB= dual -LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING_GPL.txt +LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING_GPL.txt RUN_DEPENDS= ruby${RUBY_SUFFIX}-sdl>=0:devel/ruby-sdl -WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:S/./_/g} - USES= shebangfix SHEBANG_FILES= mm.rb testmm.rb USE_SDL= sdl image mixer USE_RUBY= yes NO_BUILD= yes - -PORTDOCS= * - -OPTIONS_DEFINE= DOCS +NO_ARCH= yes SUB_FILES= ${PORTNAME} SUB_LIST= RUBY=${RUBY} +PORTDOCS= * + DESKTOP_ENTRIES="Magic Maze" "" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" "" +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ @(cd ${WRKSRC} && ${COPYTREE_SHARE} "data magicmaze" ${STAGEDIR}${DATADIR}) ${INSTALL_SCRIPT} ${WRKSRC}/*.rb ${STAGEDIR}${DATADIR} - - ${LN} -sf ${DATADIR}/data/gfx/icon.png \ + ${LN} -sf ../../${DATADIR_REL}/data/gfx/icon.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png - cd ${WRKSRC} && ${COPYTREE_SHARE} "README.TXT doc/BUGS.TXT" \ + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.TXT ${WRKSRC}/doc/BUGS.TXT \ ${STAGEDIR}${DOCSDIR} .include