Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2013 20:15:25 +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: r337381 - head/games/sets
Message-ID:  <201312242015.rBOKFPfY054466@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Tue Dec 24 20:15:24 2013
New Revision: 337381
URL: http://svnweb.freebsd.org/changeset/ports/337381

Log:
  - Change Makefile header
  - Bump PORTREVISION
  - Change master sites, add icon
  - USES gmake instead of USE_GMAKE
  - Change PLIST_FILES
  - Support STAGEDIR
  - Add DOCS Option
  - Add Desktop entry file
  - Simplify Makefile
  
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/games/sets/Makefile
  head/games/sets/distinfo   (contents, props changed)

Modified: head/games/sets/Makefile
==============================================================================
--- head/games/sets/Makefile	Tue Dec 24 18:24:20 2013	(r337380)
+++ head/games/sets/Makefile	Tue Dec 24 20:15:24 2013	(r337381)
@@ -1,37 +1,44 @@
-# Created by: nemysis@gmx.ch
+# Created by: nemysis <nemysis@gmx.ch>
 # $FreeBSD$
 
 PORTNAME=	sets
 PORTVERSION=	1.0.0
+PORTREVISION=	1
 CATEGORIES=	games
-MASTER_SITES=	http://www.linuxmotors.com/sets/downloads/
+MASTER_SITES=	http://www.linuxmotors.com/sets/downloads/ \
+		SF/nemysisfreebsdp/${CATEGORIES}/:icons
 EXTRACT_SUFX=	.tgz
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	This is an implementation of the sets game
 
 LICENSE=	GPLv3
 
-USE_GMAKE=	yes
-ALL_TARGET=	${PORTNAME}
+USES=		gmake
 USE_SDL=	sdl image
+ALL_TARGET=	${PORTNAME}
 
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
 
 PORTDOCS=	README
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
+
+DESKTOP_ENTRIES="Sets" "" "${PORTNAME}" \
+		"${PORTNAME}" "Game;CardGame;" ""
 
 do-install:
-# Executable
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
 
 post-install:
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/sets/distinfo
==============================================================================
--- head/games/sets/distinfo	Tue Dec 24 18:24:20 2013	(r337380)
+++ head/games/sets/distinfo	Tue Dec 24 20:15:24 2013	(r337381)
@@ -1,2 +1,4 @@
 SHA256 (sets-1.0.0.tgz) = 2521ea6352a7925965051897e9c92293cccf72d27968eca142b79b88e6700aab
 SIZE (sets-1.0.0.tgz) = 10108
+SHA256 (sets.png) = ceeba380f51c8cfa8efba907f1ff3e2674a5a76ba86a4e82159c79c6e56fe221
+SIZE (sets.png) = 2360



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