Date: Sun, 24 Mar 2013 12:01:07 +0100 From: nemysis <nemysis@gmx.ch> To: FreeBSD-gnats-submit@freebsd.org Cc: acm@FreeBSD.org Subject: ports/177333: [PATCH] games/ceferino: Message-ID: <20130324110117.393F0145A@hub.freebsd.org> Resent-Message-ID: <201303241110.r2OBA0qE018430@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 177333 >Category: ports >Synopsis: [PATCH] games/ceferino: >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 24 11:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: nemysis >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 >Description: - Shorten header - Add license, desktop entry - Convert to OptionsNG - Trim pkg-descr Port maintainer (acm@FreeBSD.org) is cc'd. Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports) >How-To-Repeat: >Fix: --- ceferino-0.97.8_13.patch begins here --- diff -ruN --exclude=CVS /usr/ports/games/ceferino/Makefile ./Makefile --- /usr/ports/games/ceferino/Makefile 2013-03-24 10:14:01.000000000 +0100 +++ ./Makefile 2013-03-24 11:40:49.000000000 +0100 @@ -1,19 +1,17 @@ -# New ports collection makefile for: ceferino -# Date created: 2006-01-11 -# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> -# +# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> # $FreeBSD: head/games/ceferino/Makefile 315098 2013-03-24 05:32:19Z acm $ -# PORTNAME= ceferino PORTVERSION= 0.97.8 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= games MASTER_SITES= http://www.losersjuegos.com.ar/_media/juegos/ceferino/descargas/ MAINTAINER= acm@FreeBSD.org COMMENT= Game similar to Super Pang +LICENSE= GPLv2 + USE_SDL= sdl mixer image GNU_CONFIGURE= yes USE_GMAKE= yes @@ -22,17 +20,23 @@ CEFEDIRS= ima music levels sounds -OPTIONS= NLS "Native Language Support" on +PORTDOCS= AUTHORS ChangeLog README + +DESKTOP_ENTRIES="Don Ceferino HazaƱa" "${COMMENT}" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" false + +OPTIONS_DEFINE= NLS +OPTIONS_DEFAULT= NLS .include <bsd.port.pre.mk> -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.else +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" FLAG_NLS= true +.else +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " .endif post-extract: @@ -47,7 +51,9 @@ @cd ${WRKSRC}/data && \ ${FIND} ${CEFEDIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ ${FIND} -E ${CEFEDIRS} -type f -iregex ".*\.(png|jpg|xm|map|wav)" -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; -.if defined(FLAG_NLS) + ${LN} -sf ${DATADIR}/ima/icono.png ${PREFIX}/share/pixmaps/${PORTNAME}.png + +.if ${PORT_OPTIONS:MNLS} .for f in es ca fr ${MKDIR} ${PREFIX}/share/locale/${f}/LC_MESSAGES && \ ${INSTALL_DATA} ${WRKSRC}/po/${f}.gmo ${PREFIX}/share/locale/${f}/LC_MESSAGES/${PORTNAME}.mo @@ -55,10 +61,9 @@ .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC} && \ - ${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include <bsd.port.post.mk> diff -ruN --exclude=CVS /usr/ports/games/ceferino/pkg-descr ./pkg-descr --- /usr/ports/games/ceferino/pkg-descr 2013-01-14 17:55:23.000000000 +0100 +++ ./pkg-descr 2013-03-24 11:05:23.000000000 +0100 @@ -1,3 +1,3 @@ Ceferino is a fun game similar to super pang developed using the SDL library. -WWW: http://www.losersjuegos.com.ar/ +WWW: http://www.loosersjuegos.com.ar/juegos/ceferino diff -ruN --exclude=CVS /usr/ports/games/ceferino/pkg-plist ./pkg-plist --- /usr/ports/games/ceferino/pkg-plist 2013-01-14 17:55:23.000000000 +0100 +++ ./pkg-plist 2013-03-24 11:36:26.000000000 +0100 @@ -1,9 +1,6 @@ bin/ceferino bin/ceferinoeditor bin/ceferinosetup -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/README %%NLS%%share/locale/ca/LC_MESSAGES/ceferino.mo %%NLS%%share/locale/es/LC_MESSAGES/ceferino.mo %%NLS%%share/locale/fr/LC_MESSAGES/ceferino.mo @@ -59,7 +56,7 @@ %%DATADIR%%/sounds/tic.wav %%DATADIR%%/sounds/tiro.wav %%DATADIR%%/sounds/toc.wav -%%PORTDOCS%%@dirrm %%DOCSDIR%% +share/pixmaps/ceferino.png @dirrm %%DATADIR%%/ima @dirrm %%DATADIR%%/music @dirrm %%DATADIR%%/levels --- ceferino-0.97.8_13.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130324110117.393F0145A>