Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 17:03:04 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339609 - in head/games/sdl_scavenger: . files
Message-ID:  <201401131703.s0DH34sm071048@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Mon Jan 13 17:03:04 2014
New Revision: 339609
URL: http://svnweb.freebsd.org/changeset/ports/339609

Log:
  - Change Makefile header
  - Update to 145.1.2010.11.5
  - Add PORTEPOCH
  - Change license GPLv2 to GPLv1
  - Remove USE_ZIP=yes
  - USES gmake instead of USE_GMAKE
  - Add USE_GCC=yes
  - Use pkg-plist instead of PLIST_FILES and PORTDATA
  - Add DOCS Option
  - Support STAGEDIR
  - Change Desktop entry file
  - Symlink the icon instead of copying it
  - Break lines around 80 characters
  - Recreate patches with make makepatch

Added:
  head/games/sdl_scavenger/pkg-plist   (contents, props changed)
Modified:
  head/games/sdl_scavenger/Makefile
  head/games/sdl_scavenger/distinfo   (contents, props changed)
  head/games/sdl_scavenger/files/patch-Makefile   (contents, props changed)
  head/games/sdl_scavenger/files/patch-scavsaver   (contents, props changed)

Modified: head/games/sdl_scavenger/Makefile
==============================================================================
--- head/games/sdl_scavenger/Makefile	Mon Jan 13 16:57:22 2014	(r339608)
+++ head/games/sdl_scavenger/Makefile	Mon Jan 13 17:03:04 2014	(r339609)
@@ -1,49 +1,44 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	sdl_scavenger
-PORTVERSION=	145.1.2010.11.5
-PORTREVISION=	2
+PORTVERSION=	145.2014.01.01
+PORTEPOCH=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/sdlscavenger/
-DISTNAME=	sdlscav-145.1_2010_11_5
+DISTNAME=	sdlscav-145_2014_01_01
+EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Lode Runner like game
 
-LICENSE=	GPLv2
+LICENSE=	GPLv1
 
 WRKSRC=		${WRKDIR}/sdlscav-145
 
-USE_ZIP=	yes
+USES=		gmake
 USE_SDL=	sdl image mixer
-USE_GMAKE=	yes
+USE_GCC=	yes
 ALL_TARGET=
 
-PLIST_FILES=	bin/sdlscavenger \
-		share/pixmaps/sdlscavenger.png
-
-PORTDATA=	*
 PORTDOCS=	CREDITS DOC NEW_FEATURES README STRATEGY
 
-DESKTOP_ENTRIES="SDL Scavenger" "${COMMENT}" "sdlscavenger" \
-		"sdlscavenger" "Game;ArcadeGame;" ${FALSE}
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="SDL Scavenger" "" "${PORTNAME}" \
+		"${PORTNAME}" "Game;LogicGame;" ""
 
 post-patch:
-		@${REINPLACE_CMD} -e 's|data:/usr/local/games/scavenger|data:${DATADIR}/data|' \
-			${WRKSRC}/names.h
+	@${REINPLACE_CMD} -e 's|/usr/local/games/scavenger|${DATADIR}/data|' \
+		${WRKSRC}/names.h
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/sdlscav ${PREFIX}/bin/sdlscavenger
-	${MKDIR} ${DATADIR}
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
-	${INSTALL_DATA} ${WRKSRC}/data/scav.png ${PREFIX}/share/pixmaps/sdlscavenger.png
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/sdlscav ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
+	${LN} -sf ${DATADIR}/data/scav.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/sdl_scavenger/distinfo
==============================================================================
--- head/games/sdl_scavenger/distinfo	Mon Jan 13 16:57:22 2014	(r339608)
+++ head/games/sdl_scavenger/distinfo	Mon Jan 13 17:03:04 2014	(r339609)
@@ -1,2 +1,2 @@
-SHA256 (sdlscav-145.1_2010_11_5.zip) = 6a938dc6ca99bd3911bebfe0d0016eed3acf578da57f1f0a4df36380b1929c49
-SIZE (sdlscav-145.1_2010_11_5.zip) = 565868
+SHA256 (sdlscav-145_2014_01_01.tgz) = 0d46c584b47222369e4a4c2a120eac5166e59e45f6200d5add1413667a1e968b
+SIZE (sdlscav-145_2014_01_01.tgz) = 563092

Modified: head/games/sdl_scavenger/files/patch-Makefile
==============================================================================
--- head/games/sdl_scavenger/files/patch-Makefile	Mon Jan 13 16:57:22 2014	(r339608)
+++ head/games/sdl_scavenger/files/patch-Makefile	Mon Jan 13 17:03:04 2014	(r339609)
@@ -1,4 +1,5 @@
-Index: Makefile
+--- ./Makefile.orig	2010-11-04 08:53:00.000000000 +0100
++++ ./Makefile	2013-12-25 10:25:00.000000000 +0100
 @@ -1,12 +1,9 @@
 -CC	= gcc
  ###CFLAGS	= -Wall -O2 -I/usr/local/include/SDL -I/usr/include/SDL -D_REENTRANT

Modified: head/games/sdl_scavenger/files/patch-scavsaver
==============================================================================
--- head/games/sdl_scavenger/files/patch-scavsaver	Mon Jan 13 16:57:22 2014	(r339608)
+++ head/games/sdl_scavenger/files/patch-scavsaver	Mon Jan 13 17:03:04 2014	(r339609)
@@ -1,5 +1,5 @@
---- scavsaver.orig	2005-01-23 08:52:00.000000000 +0100
-+++ scavsaver	2012-04-24 01:05:13.000000000 +0200
+--- ./scavsaver.orig	2005-01-23 08:52:22.000000000 +0100
++++ ./scavsaver	2013-12-25 10:25:00.000000000 +0100
 @@ -1,6 +1,6 @@
 -#!/bin/bash
 +#!/bin/sh

Added: head/games/sdl_scavenger/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sdl_scavenger/pkg-plist	Mon Jan 13 17:03:04 2014	(r339609)
@@ -0,0 +1,34 @@
+bin/sdl_scavenger
+share/pixmaps/sdl_scavenger.png
+%%DATADIR%%/data/badguy.lbm
+%%DATADIR%%/data/brownblue.lbm
+%%DATADIR%%/data/death.wav
+%%DATADIR%%/data/devil.xpm
+%%DATADIR%%/data/dig.wav
+%%DATADIR%%/data/fall.wav
+%%DATADIR%%/data/highrc
+%%DATADIR%%/data/highstreet.lbm
+%%DATADIR%%/data/leprechaun.lbm
+%%DATADIR%%/data/levels.scl
+%%DATADIR%%/data/masters.scl
+%%DATADIR%%/data/microman.lbm
+%%DATADIR%%/data/microman.xpm
+%%DATADIR%%/data/micromanrc
+%%DATADIR%%/data/microrc
+%%DATADIR%%/data/pop.wav
+%%DATADIR%%/data/redbrick.lbm
+%%DATADIR%%/data/reddevil.lbm
+%%DATADIR%%/data/reddevilrc
+%%DATADIR%%/data/regularguy.lbm
+%%DATADIR%%/data/scav.bmp
+%%DATADIR%%/data/scav.png
+%%DATADIR%%/data/scav.xpm
+%%DATADIR%%/data/scavrc
+%%DATADIR%%/data/shamrc
+%%DATADIR%%/data/shamrock.lbm
+%%DATADIR%%/data/shamrock.xpm
+%%DATADIR%%/data/spiral.lbm
+%%DATADIR%%/data/spiralthing.lbm
+%%DATADIR%%/data/victory.wav
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401131703.s0DH34sm071048>