Bug 185134 - [PATCH] games/py-ski: update to 6.7, take maintainership, rename to games/ski
Summary: [PATCH] games/py-ski: update to 6.7, take maintainership, rename to games/ski
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-23 13:00 UTC by Rusmir Dusko
Modified: 2014-02-18 16:10 UTC (History)
1 user (show)

See Also:


Attachments
ski-6.7.patch (2.40 KB, patch)
2013-12-23 13:00 UTC, Rusmir Dusko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rusmir Dusko freebsd_committer freebsd_triage 2013-12-23 13:00:00 UTC
- 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@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
Comment 1 Rusmir Dusko freebsd_committer freebsd_triage 2013-12-23 13:42:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nemysis

I'll take it.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-27 23:54:37 UTC
Maintainer of games/py-ski,

Please note that PR ports/185134 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/185134

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-27 23:54:38 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Rusmir Dusko freebsd_committer freebsd_triage 2014-02-18 16:01:49 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2014-02-18 16:02:39 UTC
Author: nemysis
Date: Tue Feb 18 16:02:31 2014
New Revision: 344917
URL: http://svnweb.freebsd.org/changeset/ports/344917
QAT: https://qat.redports.org/buildarchive/r344917/

Log:
  - Remove PKGNAMEPREFIX, is stand alone application
  - Rename from games/py-ski to games/ski
  - 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_FILE
  - Add DOCS and Option
  - Fix the usage of 'python' to get rid of the implicit lang/python dependency
  - Add files/ski.desktop
  
  PR:		ports/185134
  Submitted by:	nemysis (self)
  Reviewed by:	maintainer timeout (22 days)

Added:
  head/games/ski/
     - copied from r344910, head/games/py-ski/
Deleted:
  head/games/py-ski/
Modified:
  head/MOVED
  head/games/Makefile
  head/games/ski/Makefile
  head/games/ski/distinfo

Modified: head/MOVED
==============================================================================
--- head/MOVED	Tue Feb 18 15:59:29 2014	(r344916)
+++ head/MOVED	Tue Feb 18 16:02:31 2014	(r344917)
@@ -5456,3 +5456,4 @@ deskutils/kdepim44-runtime||2014-02-18|R
 deskutils/kdepim44||2014-02-18|Removed: depends on deskutils/kdepim44-runtime
 misc/kde-xdg-env||2014-02-18|Removed, remnant of KDE 3
 lang/g95||2014-02-18|Removed, uses an old version of GCC which can't be built anymore
+games/py-ski|games/ski|2014-02-18|Rename to match upstream naming

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Tue Feb 18 15:59:29 2014	(r344916)
+++ head/games/Makefile	Tue Feb 18 16:02:31 2014	(r344917)
@@ -759,7 +759,6 @@
     SUBDIR += py-pychess
     SUBDIR += py-sgflib
     SUBDIR += py-sgfsummary
-    SUBDIR += py-ski
     SUBDIR += pyawale
     SUBDIR += pycadia
     SUBDIR += pyching
@@ -884,6 +883,7 @@
     SUBDIR += simsu
     SUBDIR += simutrans
     SUBDIR += sjeng
+    SUBDIR += ski
     SUBDIR += sl
     SUBDIR += slashem-tty
     SUBDIR += slump

Modified: head/games/ski/Makefile
==============================================================================
--- head/games/py-ski/Makefile	Tue Feb 18 15:37:31 2014	(r344910)
+++ head/games/ski/Makefile	Tue Feb 18 16:02:31 2014	(r344917)
@@ -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@bsd.hu
+MAINTAINER=	nemysis@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>

Modified: head/games/ski/distinfo
==============================================================================
--- head/games/py-ski/distinfo	Tue Feb 18 15:37:31 2014	(r344910)
+++ head/games/ski/distinfo	Tue Feb 18 16:02:31 2014	(r344917)
@@ -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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"