Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 12:09:47 +0300
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/152439: [patch] games/whichwayisup: update url, respect PREFIX
Message-ID:  <86d3pzxctg.fsf@gmail.com>
Resent-Message-ID: <201011210910.oAL9A88B023809@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152439
>Category:       ports
>Synopsis:       [patch] games/whichwayisup: update url, respect PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 21 09:10:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
It fails to start here with unrelated (probably local) error

  $ whichwayisup
  Traceback (most recent call last):
    File "/usr/local/bin/whichwayisup", line 13, in <module>
      main.main()
    File "/usr/local/lib/python2.7/site-packages/whichwayisup/main.py", line 103, in main
      end_trigger = game.run(screen, level_name, world.index, score, joystick)
    File "/usr/local/lib/python2.7/site-packages/whichwayisup/game.py", line 263, in run
      inputs = parse_inputs(joystick)
    File "/usr/local/lib/python2.7/site-packages/whichwayisup/game.py", line 143, in parse_inputs
      axis0 = joystick.get_axis(0)
  pygame.error: Invalid joystick axis
>Description:
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: games/whichwayisup/Makefile
===================================================================
RCS file: /a/.cvsup/ports/games/whichwayisup/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- games/whichwayisup/Makefile	3 Oct 2010 07:57:43 -0000	1.6
+++ games/whichwayisup/Makefile	21 Nov 2010 09:01:35 -0000
@@ -10,7 +10,7 @@ PORTVERSION=	0.7.9
 PORTREVISION=	2
 DISTVERSION=	${PORTVERSION:S/.//g}
 CATEGORIES=	games
-MASTER_SITES=	http://hectigo.net/puskutraktori/whichwayisup/
+MASTER_SITES=	http://www.hectigo.net/games/whichwayisup/
 DISTNAME=	${PORTNAME}_b${DISTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
@@ -18,8 +18,6 @@ COMMENT=	Platformer game with rotational
 
 RUN_DEPENDS=	py*-game>=1.7.1:${PORTSDIR}/devel/py-game
 
-BROKEN=		does not fetch
-
 USE_PYTHON=	yes
 USE_ZIP=	yes
 PORTDOCS=	README.txt changelog.txt
@@ -27,7 +25,7 @@ PORTDOCS=	README.txt changelog.txt
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
 post-patch:
-	@${REINPLACE_CMD} -e '/libdir =/s|=.*|= "${PYTHON_SITELIBDIR}/${PORTNAME}"|'\
+	@${REINPLACE_CMD} -e '/libdir =/s|=.*|= "${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}"|'\
 		${WRKSRC}/run_game.py
 	@${REINPLACE_CMD} -e '/data_dir =/s|data_py.*data.|"${DATADIR}"|'\
 		${WRKSRC}/lib/data.py
@@ -40,7 +38,7 @@ do-build:
 
 do-install:
 	@cd ${WRKSRC}/data/&&${COPYTREE_SHARE} . ${DATADIR}/
-	@cd ${WRKSRC}/lib/&&${COPYTREE_SHARE} . ${PYTHON_SITELIBDIR}/${PORTNAME}/
+	@cd ${WRKSRC}/lib/&&${COPYTREE_SHARE} . ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/
 	@${INSTALL_SCRIPT} ${WRKSRC}/run_game.py ${PREFIX}/bin/${PORTNAME}
 .ifndef NOPORTDOCS
 	@${INSTALL} -d ${DOCSDIR}/
Index: games/whichwayisup/pkg-descr
===================================================================
RCS file: /a/.cvsup/ports/games/whichwayisup/pkg-descr,v
retrieving revision 1.1
diff -u -p -r1.1 pkg-descr
--- games/whichwayisup/pkg-descr	14 Aug 2007 08:34:18 -0000	1.1
+++ games/whichwayisup/pkg-descr	21 Nov 2010 09:02:49 -0000
@@ -2,5 +2,5 @@ Which Way Is Up is a traditional and cha
 with a slight rotational twist. Help a mysterious big-eared salaryman
 named Guy find his keys in a labyrinth of dangers and bad dialogue.
 
-WWW: http://hectigo.net/puskutraktori/whichwayisup/
+WWW: http://www.hectigo.net/games/whichwayisup/
 Author: Olli "Hectigo" Etuaho <admin[at]hectigo.net>
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d3pzxctg.fsf>