Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2012 20:14:52 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306760 - in head/games/nsnake: . files
Message-ID:  <201210312014.q9VKEqAE022071@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Wed Oct 31 20:14:52 2012
New Revision: 306760
URL: http://svn.freebsd.org/changeset/ports/306760

Log:
  Update to version 1.4
  
  PR:		ports/172237
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Deleted:
  head/games/nsnake/files/
Modified:
  head/games/nsnake/Makefile
  head/games/nsnake/distinfo
  head/games/nsnake/pkg-descr

Modified: head/games/nsnake/Makefile
==============================================================================
--- head/games/nsnake/Makefile	Wed Oct 31 19:54:11 2012	(r306759)
+++ head/games/nsnake/Makefile	Wed Oct 31 20:14:52 2012	(r306760)
@@ -2,24 +2,34 @@
 # $FreeBSD$
 
 PORTNAME=	nsnake
-PORTVERSION=	1.2.1
+PORTVERSION=	1.4
 CATEGORIES=	games
 MASTER_SITES=	http://softs.malikania.fr/releases/
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A snake game written in C and ncurses
+COMMENT=	Snake game written in C and ncurses
 
-MAN6=		nsnake.6
-PLIST_FILES=	bin/nsnake
-PORTDOCS=	LICENSE CHANGELOG
-USE_NCURSES=	yes
+LICENSE=	MIT
 
-post-install:
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE=	DOCS
+
+MAN6=		${PORTNAME}.6
+PORTDOCS=	CHANGELOG
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.options.mk>
+
+do-build:
+	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c -lcurses)
+
+do-install:
+	(cd ${WRKSRC} \
+		&& ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin \
+		&& ${INSTALL_MAN} ${PORTNAME}.6 ${MANPREFIX}/man/man6)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
-	@${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG ${DOCSDIR})
 .endif
 
 .include <bsd.port.mk>

Modified: head/games/nsnake/distinfo
==============================================================================
--- head/games/nsnake/distinfo	Wed Oct 31 19:54:11 2012	(r306759)
+++ head/games/nsnake/distinfo	Wed Oct 31 20:14:52 2012	(r306760)
@@ -1,2 +1,2 @@
-SHA256 (nsnake-1.2.1.tgz) = 7d75d16f071dcdf5dadb959f04a83c4df52c6879604ba9fb1ff354069d84b1d2
-SIZE (nsnake-1.2.1.tgz) = 6207
+SHA256 (nsnake-1.4.tgz) = 7b68a8ccaf4142afa8e3b2272cd80d7e4f22ac3d22140ffdee1e2f0f64128d73
+SIZE (nsnake-1.4.tgz) = 6652

Modified: head/games/nsnake/pkg-descr
==============================================================================
--- head/games/nsnake/pkg-descr	Wed Oct 31 19:54:11 2012	(r306759)
+++ head/games/nsnake/pkg-descr	Wed Oct 31 20:14:52 2012	(r306760)
@@ -1,5 +1,5 @@
-nsnake is small game written in C and using ncurses API for drawing stuff on the
-screen.
+nsnake is small game written in C and using ncurses API for drawing
+stuff on the screen.
 
 It currently supports colors and can save highscores in a file.
 



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