ports/185134: [PATCH] games/ski: update to 6.7, take maintainership
User &
nemysis at FreeBSD.org
Mon Dec 23 13:00:00 UTC 2013
>Number: 185134
>Category: ports
>Synopsis: [PATCH] games/ski: update to 6.7, take maintainership
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 23 13:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: User &
>Release: FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC
>Description:
- Remove PKGNAMEPREFIX, is stand alone application
- Update to 6.7
- Change master sites, add icon
- Take maintainership
- Add license (BSD3CLAUSE)
- Change USE_PYTHON=yes to USE_PYTHON_RUN=yes
- Support STAGEDIR
- Change PLIST_FILES
- Add DOCS and Option
- Fix the usage of 'python' to get rid of the implicit lang/python dependency
- Add files/ski.desktop
Port maintainer (jmohacsi at bsd.hu) is cc'd.
Generated and tested manually, tested with stage and with RedPorts, sent with FreeBSD Port Tools 0.99_10 (mode: update, diff: SVN)
>How-To-Repeat:
Build log
https://redports.org/buildarchive/20131223115000-3163/
svn mv games/py-ski games/ski
Change games/Makefile
diff -ruN /usr/ports/games/Makefile ./Makefile
- SUBDIR += py-ski
+ SUBDIR += ski
Change MOVED
diff -ruN /usr/ports/MOVED ./MOVED
+games/py-ski|games/ski|2013-12-23|Rename to match upstream naming
>Fix:
--- ski-6.7.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 337236)
+++ Makefile (working copy)
@@ -2,22 +2,42 @@
# $FreeBSD$
PORTNAME= ski
-PORTVERSION= 6.5
+PORTVERSION= 6.7
CATEGORIES= games python
MASTER_SITES= http://catb.org/~esr/ski/
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
-MAINTAINER= jmohacsi at bsd.hu
+MAINTAINER= nemysis at FreeBSD.org
COMMENT= Skiing simulation with curses interface in python
-USE_PYTHON= yes
+LICENSE= BSD3CLAUSE
+
+USE_PYTHON_RUN= yes
NO_BUILD= yes
-MAN6= ski.6
-PLIST_FILES= bin/ski
-NO_STAGE= yes
+PLIST_FILES= bin/${PORTNAME} \
+ man/man6/${PORTNAME}.6.gz \
+ share/applications/${PORTNAME}.desktop \
+ share/pixmaps/${PORTNAME}.png
+
+PORTDOCS= README
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
+ ${WRKSRC}/${PORTNAME}
+
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/ski ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/ski.6 ${PREFIX}/man/man6/
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${PREFIX}/man/man6/
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
.include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo (revision 337236)
+++ distinfo (working copy)
@@ -1,2 +1,4 @@
-SHA256 (ski-6.5.tar.gz) = 346be95447df7eddc3888b5378dbed4bc9cd9136b14839b89c771ca425b7f1ed
-SIZE (ski-6.5.tar.gz) = 17389
+SHA256 (ski-6.7.tar.gz) = 7346f12fcb645e9fe3bd934c552af5e6a0ac149c84642a244d0ebd0405e6cf36
+SIZE (ski-6.7.tar.gz) = 12175
+SHA256 (ski.png) = 084423df9c6b37cad54bc4ac0eb0382dcb9f1efb8294e1f25bb49c7d0cc8aa33
+SIZE (ski.png) = 4314
Index: files/ski.desktop
===================================================================
--- files/ski.desktop (revision 0)
+++ files/ski.desktop (working copy)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Ski
+GenericName=Ski game
+Comment=Skiing simulation with curses interface in python
+Icon=ski
+Exec=ski
+Categories=Game;SportsGame;
+Terminal=true
--- ski-6.7.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list