From owner-svn-ports-head@FreeBSD.ORG Wed Oct 23 18:18:44 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AD709272; Wed, 23 Oct 2013 18:18:44 +0000 (UTC) (envelope-from makc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9A982231A; Wed, 23 Oct 2013 18:18:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9NIIikk087747; Wed, 23 Oct 2013 18:18:44 GMT (envelope-from makc@svn.freebsd.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9NIIibU087741; Wed, 23 Oct 2013 18:18:44 GMT (envelope-from makc@svn.freebsd.org) Message-Id: <201310231818.r9NIIibU087741@svn.freebsd.org> From: Max Brazhnikov Date: Wed, 23 Oct 2013 18:18:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331402 - in head/games/toppler: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Oct 2013 18:18:44 -0000 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@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 - -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 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%% +@exec mkdir -p /var/games/toppler +@exec chgrp games /var/games/toppler +@unexec if [ ! -s /var/games/toppler/toppler.hsc ] ; then rm -f /var/games/toppler/toppler.hsc; rmdir /var/games/toppler ; fi +@exec touch /var/games/toppler/toppler.hsc +@exec chmod 664 /var/games/toppler/toppler.hsc