View | Details | Raw Unified | Return to bug 205207 | Differences between
and this patch

Collapse All | Expand All

(-)games/polypuzzle/Makefile (-24 / +15 lines)
Lines 2-42 Link Here
2
# $FreeBSD: head/games/polypuzzle/Makefile 401096 2015-11-09 12:59:03Z antoine $
2
# $FreeBSD: head/games/polypuzzle/Makefile 401096 2015-11-09 12:59:03Z antoine $
3
3
4
PORTNAME=	polypuzzle
4
PORTNAME=	polypuzzle
5
PORTVERSION=	1.6
5
PORTVERSION=	1.8.2
6
PORTREVISION=	1
7
CATEGORIES=	games tcl tk
6
CATEGORIES=	games tcl tk
8
MASTER_SITES=	ftp://ibiblio.org/pub/Linux/games/
7
MASTER_SITES=	SF/tkgames/${PORTNAME}/main
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Tessellation puzzle game
10
COMMENT=	Tessellation puzzle game
12
11
13
BROKEN=		unfetchable
12
NO_ARCH=	yes
13
NO_BUILD=	yes
14
14
15
USES= 		tk:84,run tar:tgz
16
WRKSRC=		${WRKDIR}/${PORTNAME}
15
WRKSRC=		${WRKDIR}/${PORTNAME}
17
NO_BUILD=	yes
18
16
19
DOC_FILES=	About Bugs Changelog Install Instructions Links Math Readme \
17
USES= 		tar:tgz tk:84,run
20
		Thanks Todo
21
DATA_FILES=	menus pieces.3x20 pieces.783 pieces.bonus pieces.colours \
22
		pieces.flower pieces.large pieces.medium pieces.monster \
23
		pieces.round pieces.small pieces.square pieces.star \
24
		pieces.triangle
25
18
26
OPTIONS_DEFINE=	DOCS
19
DESKTOP_ENTRIES="PolyPuzzle" "" "" "polypuzzle" "" ""
27
20
28
pre-install:
21
post-patch:
29
	 @${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:g" ${WRKSRC}/polypuzzle
22
	 @${REINPLACE_CMD} -e \
23
		's|%%WISH%%|${WISH:T}| ; \
24
		 s|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/polypuzzle
30
25
31
do-install:
26
do-install:
32
	${INSTALL_SCRIPT} ${WRKSRC}/polypuzzle ${STAGEDIR}${PREFIX}/bin
27
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} polypuzzle \
33
	${MKDIR} ${STAGEDIR}${DATADIR}
28
		${STAGEDIR}${PREFIX}/bin)
34
.for f in ${DATA_FILES}
29
	@${MKDIR} ${STAGEDIR}${DATADIR}
35
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
30
	(cd ${WRKSRC} && ${INSTALL_DATA} colours menus pieces.* *.gif *.xbm \
36
.endfor
31
		${STAGEDIR}${DATADIR})
37
	${MKDIR} ${STAGEDIR}${DOCSDIR}
38
.for f in ${DOC_FILES}
39
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
40
.endfor
41
32
42
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)games/polypuzzle/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (polypuzzle-1.6.tgz) = c8f0ae00b50bedc0cd1ddda21fcf491c0fc1b1e1d4e35d61d3b23e8740fa70a9
1
SHA256 (polypuzzle-1.8.2.tgz) = ef5c654b38dd1c31649d6805c52afb65ed8d61d0795c1f997607133fc0758425
2
SIZE (polypuzzle-1.6.tgz) = 16814
2
SIZE (polypuzzle-1.8.2.tgz) = 33088
(-)games/polypuzzle/files/patch-polypuzzle (-6 / +15 lines)
Lines 1-13 Link Here
1
--- polypuzzle.orig	Fri Jun 18 11:51:04 2004
1
--- polypuzzle.orig	2008-10-26 00:53:04 UTC
2
+++ polypuzzle	Wed Jun 30 13:46:07 2004
2
+++ polypuzzle
3
@@ -1,8 +1,8 @@
3
@@ -1,8 +1,8 @@
4
 #/bin/sh
4
 #!/bin/sh
5
 # the next line restarts using tclsh \
5
 # the next line restarts using tclsh \
6
-exec wish "$0" "$@"
6
-exec wish "$0" "$@"
7
+exec wish8.4 "$0" "$@"
7
+exec %%WISH%% "$0" "$@"
8
 
8
 
9
-if {[file isdirectory /usr/local/lib/polypuzzle]} {cd  /usr/local/lib/polypuzzle}
9
-if {[file isdirectory /usr/local/lib/polypuzzle]} {cd  /usr/local/lib/polypuzzle}
10
+if {[file isdirectory %%DATADIR%%]} {cd  %%DATADIR%%}
10
+if {[file isdirectory %%DATADIR%%]} {cd  %%DATADIR%%}
11
 
11
 
12
 source pieces.colours
12
 # wish8.5.2 still occasionally has problems for polypuzzle without this hack:
13
 set colour(bg)  azure3		;# background colour
13
 set tcl_precision 12
14
@@ -380,7 +380,7 @@ proc DrawPiece {n xpos ypos} {
15
   # Place this piece on top (but underneath text, which is our ceiling)
16
   #   in windows tcl 8.2 this generates an error on initiation
17
   #   as text is not defined - ooh noo (but is ok in tcl832)
18
-  .c lower piece$n text
19
+  # .c lower piece$n text
20
 
21
   .c move piece$n $xpos $ypos
22
 
(-)games/polypuzzle/pkg-descr (-4 / +3 lines)
Lines 1-5 Link Here
1
Tessellation puzzle inspired by Beat The Computer.
1
Tessellation puzzle inspired by Beat The Computer. Puzzles implemented
2
Puzzles implemented include several based on
2
include several based on squares, hexagons and equilateral triangles.
3
squares, hexagons and equilateral triangles.
4
3
5
WWW: ftp://ibiblio.org/pub/Linux/games/
4
WWW: http://tkgames.sourceforge.net/
(-)games/polypuzzle/pkg-plist (-12 / +7 lines)
Lines 1-25 Link Here
1
bin/polypuzzle
1
bin/polypuzzle
2
%%DATADIR%%/colours
3
%%DATADIR%%/icon.xbm
4
%%DATADIR%%/iconmask.xbm
2
%%DATADIR%%/menus
5
%%DATADIR%%/menus
3
%%DATADIR%%/pieces.3x20
6
%%DATADIR%%/pieces.3x20
4
%%DATADIR%%/pieces.783
7
%%DATADIR%%/pieces.783
5
%%DATADIR%%/pieces.bonus
8
%%DATADIR%%/pieces.bonus
6
%%DATADIR%%/pieces.colours
9
%%DATADIR%%/pieces.chessboard
7
%%DATADIR%%/pieces.flower
10
%%DATADIR%%/pieces.flower
11
%%DATADIR%%/pieces.krazy
8
%%DATADIR%%/pieces.large
12
%%DATADIR%%/pieces.large
9
%%DATADIR%%/pieces.medium
13
%%DATADIR%%/pieces.medium
10
%%DATADIR%%/pieces.monster
14
%%DATADIR%%/pieces.monster
15
%%DATADIR%%/pieces.round
11
%%DATADIR%%/pieces.small
16
%%DATADIR%%/pieces.small
12
%%DATADIR%%/pieces.square
17
%%DATADIR%%/pieces.square
13
%%DATADIR%%/pieces.round
14
%%DATADIR%%/pieces.star
18
%%DATADIR%%/pieces.star
15
%%DATADIR%%/pieces.triangle
19
%%DATADIR%%/pieces.triangle
16
%%PORTDOCS%%%%DOCSDIR%%/About
20
%%DATADIR%%/polylogo.gif
17
%%PORTDOCS%%%%DOCSDIR%%/Bugs
18
%%PORTDOCS%%%%DOCSDIR%%/Changelog
19
%%PORTDOCS%%%%DOCSDIR%%/Install
20
%%PORTDOCS%%%%DOCSDIR%%/Instructions
21
%%PORTDOCS%%%%DOCSDIR%%/Links
22
%%PORTDOCS%%%%DOCSDIR%%/Math
23
%%PORTDOCS%%%%DOCSDIR%%/Readme
24
%%PORTDOCS%%%%DOCSDIR%%/Thanks
25
%%PORTDOCS%%%%DOCSDIR%%/Todo

Return to bug 205207