Bug 182950 - [PATCH] games/sea-defender: update to 0.9
Summary: [PATCH] games/sea-defender: update to 0.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-13 18:20 UTC by Rusmir Dusko
Modified: 2013-12-16 13:20 UTC (History)
1 user (show)

See Also:


Attachments
sea-defender-0.9.patch (3.88 KB, patch)
2013-10-13 18:20 UTC, Rusmir Dusko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rusmir Dusko freebsd_committer 2013-10-13 18:20:00 UTC
- Update to 0.9
- Change master sites (GitHub)
- Add license (MIT)
- Change dependency graphics/glfw to graphics/glfw2
- Add icons and Desktop entry file
- USES gmake
- Support STAGEDIR


Port maintainer (amdmi3@FreeBSD.org) is cc'd.

Generated and tested manually, tested with stage and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: update, diff: ports)

How-To-Repeat: 
Build log

https://redports.org/buildarchive/20131013153800-21163/

games/sea-defender needs statical libraries (libglfw.a),
which have at the moment only graphics/glfw2
Comment 1 Edwin Groothuis freebsd_committer 2013-10-13 18:20:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2013-12-16 13:16:07 UTC
Author: amdmi3
Date: Mon Dec 16 13:15:59 2013
New Revision: 336634
URL: http://svnweb.freebsd.org/changeset/ports/336634

Log:
  - Add LICENSE
  - Add icon
  - Fetch sources from GitHub
  - Set PORTVERSION corresponding to what's shown by the game (NO source changes from previously used tarball rolled by me)
  
  PR:		182950
  Submitted by:	nemysis

Modified:
  head/games/sea-defender/Makefile
  head/games/sea-defender/distinfo

Modified: head/games/sea-defender/Makefile
==============================================================================
--- head/games/sea-defender/Makefile	Mon Dec 16 13:11:40 2013	(r336633)
+++ head/games/sea-defender/Makefile	Mon Dec 16 13:15:59 2013	(r336634)
@@ -2,36 +2,48 @@
 # $FreeBSD$
 
 PORTNAME=	sea-defender
-PORTVERSION=	r20100723
-PORTREVISION=	3
+PORTVERSION=	0.9
 CATEGORIES=	games
-MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/
+MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/:DEFAULT,icon \
+		SF/nemysisfreebsdp/:icon
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icon
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Simple missile command clone
 
+LICENSE=	MIT
+
 BUILD_DEPENDS=	${LOCALBASE}/lib/libglfw.a:${PORTSDIR}/graphics/glfw
 
-USE_BZIP2=	yes
+USE_GITHUB=	yes
+GH_ACCOUNT=	snoutmate
+GH_PROJECT=	Sea-Defender
+GH_TAGNAME=	${GH_COMMIT}
+GH_COMMIT=	d628051
+
 USES=		gmake
 USE_SDL=	sdl mixer image ttf
 USE_GL=		gl glu
 USE_XORG=	x11 xrandr
 
 SUB_FILES=	${PORTNAME}.sh
-PLIST_FILES=	libexec/${PORTNAME} bin/${PORTNAME}
-
-WRKSRC=		${WRKDIR}/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} \
+		libexec/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
 
-PORTDOCS=	README
+PORTDOCS=	*
 
 DESKTOP_ENTRIES="Sea Defender" \
 		"${COMMENT}" \
-		"" \
+		"${PORTNAME}" \
 		"${PORTNAME}" \
 		"Game;ArcadeGame;" \
 		""
 
+OPTIONS_DEFINE=	DOCS
+
 .include <bsd.port.options.mk>
 
 .if defined(WITH_NEW_XORG)
@@ -41,7 +53,8 @@ EXTRA_PATCHES+=	${FILESDIR}/extra-snoutl
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/sea ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>

Modified: head/games/sea-defender/distinfo
==============================================================================
--- head/games/sea-defender/distinfo	Mon Dec 16 13:11:40 2013	(r336633)
+++ head/games/sea-defender/distinfo	Mon Dec 16 13:15:59 2013	(r336634)
@@ -1,2 +1,4 @@
-SHA256 (sea-defender-r20100723.tar.bz2) = 2f8b11b3f047653d58b0dabc4384486bb3f3c173bed5f5592df070079cd73624
-SIZE (sea-defender-r20100723.tar.bz2) = 164757
+SHA256 (sea-defender-0.9.tar.gz) = d6a2ed363fb642960addcd8e43422f74f5516e6d331691703f920252d4f0596c
+SIZE (sea-defender-0.9.tar.gz) = 191267
+SHA256 (sea-defender.png) = 823fe77ea032db6186ed71eec995a6038705757816f61112dc8dfb19e2e58aba
+SIZE (sea-defender.png) = 2928
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Dmitry Marakasov freebsd_committer 2013-12-16 13:16:10 UTC
State Changed
From-To: open->closed

Committed. Thanks!