svn commit: r331402 - in head/games/toppler: . files

Max Brazhnikov makc at FreeBSD.org
Wed Oct 23 18:18:44 UTC 2013


Author: makc
Date: Wed Oct 23 18:18:43 2013
New Revision: 331402
URL: http://svnweb.freebsd.org/changeset/ports/331402

Log:
  - Convert to USES
  - Add LICENSE
  - Don't install a copy of license, empty news and hiscore files.
  - Support staging

Added:
  head/games/toppler/files/patch-Makefile.in   (contents, props changed)
Modified:
  head/games/toppler/Makefile
  head/games/toppler/pkg-plist

Modified: head/games/toppler/Makefile
==============================================================================
--- head/games/toppler/Makefile	Wed Oct 23 18:18:08 2013	(r331401)
+++ head/games/toppler/Makefile	Wed Oct 23 18:18:43 2013	(r331402)
@@ -3,43 +3,23 @@
 
 PORTNAME=	toppler
 PORTVERSION=	1.1.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
 
 MAINTAINER=	makc at FreeBSD.org
 COMMENT=	Climb a tower and avoid monsters
 
+LICENSE=	GPLv2
+
 USE_SDL=	mixer sdl
-USES=		gettext
-USE_GMAKE=	yes
+USES=		gettext gmake
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--localstatedir=${PREFIX}/share
-
-MAN6=		${PORTNAME}.6
+CONFIGURE_ARGS=	--localstatedir=/var/games
 
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
 OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-post-patch:
-	@${REINPLACE_CMD} -e \
-		's|DATA install-dist_pkgdocDATA|DATA|g' ${WRKSRC}/Makefile.in
-
-post-install:
-	@${CHMOD} 2755 ${PREFIX}/bin/${PORTNAME}
-	@${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
-	@${CHMOD} 0664 ${DATADIR}/${PORTNAME}.hsc
-	@${CHOWN} root:games ${DATADIR}/${PORTNAME}.hsc
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for file in AUTHORS ChangeLog NEWS README
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
-
 .include <bsd.port.mk>

Added: head/games/toppler/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/toppler/files/patch-Makefile.in	Wed Oct 23 18:18:43 2013	(r331402)
@@ -0,0 +1,29 @@
+--- ./Makefile.in.orig	2011-03-06 20:00:43.000000000 +0000
++++ ./Makefile.in	2013-10-23 16:58:33.155503773 +0000
+@@ -359,7 +359,7 @@
+ dist_pixmaps_DATA = $(PACKAGE).xpm
+ applications_DATA = $(PACKAGE).desktop
+ dist_man_MANS = toppler.6
+-dist_pkgdoc_DATA = AUTHORS COPYING ChangeLog NEWS README
++dist_pkgdoc_DATA = AUTHORS ChangeLog README
+ dist_pkgdata_DATA = \
+   toppler.dat toppler.ogg \
+   m1.ttm m2.ttm ball1.ttm ball2.ttm ball3.ttm abc.ttm pasi2.ttm david1.ttm
+@@ -1084,16 +1084,14 @@
+ 
+ install-data-am: install-applicationsDATA install-dist_pixmapsDATA \
+ 	install-dist_pkgdataDATA install-dist_pkgdocDATA \
+-	install-dist_pkglocalstateDATA install-man
++	install-man
+ 	@$(NORMAL_INSTALL)
+-	$(MAKE) $(AM_MAKEFLAGS) install-data-hook
+ install-dvi: install-dvi-recursive
+ 
+ install-dvi-am:
+ 
+ install-exec-am: install-binPROGRAMS
+ 	@$(NORMAL_INSTALL)
+-	$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
+ install-html: install-html-recursive
+ 
+ install-html-am:

Modified: head/games/toppler/pkg-plist
==============================================================================
--- head/games/toppler/pkg-plist	Wed Oct 23 18:18:08 2013	(r331401)
+++ head/games/toppler/pkg-plist	Wed Oct 23 18:18:43 2013	(r331402)
@@ -1,8 +1,8 @@
 bin/toppler
+man/man6/toppler.6.gz
 share/applications/toppler.desktop
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
 %%PORTDOCS%%%%DOCSDIR%%/README
 share/locale/cs/LC_MESSAGES/toppler.mo
 share/locale/de/LC_MESSAGES/toppler.mo
@@ -22,7 +22,11 @@ share/pixmaps/toppler.xpm
 %%DATADIR%%/m2.ttm
 %%DATADIR%%/pasi2.ttm
 %%DATADIR%%/toppler.dat
-%%DATADIR%%/toppler.hsc
 %%DATADIR%%/toppler.ogg
 @dirrm %%DATADIR%%
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
+ at exec mkdir -p /var/games/toppler
+ at exec chgrp games /var/games/toppler
+ at unexec if [ ! -s /var/games/toppler/toppler.hsc ] ; then rm -f /var/games/toppler/toppler.hsc; rmdir /var/games/toppler ; fi
+ at exec touch /var/games/toppler/toppler.hsc
+ at exec chmod 664 /var/games/toppler/toppler.hsc


More information about the svn-ports-head mailing list