ports/82577: [update] games/kbilliards to 0.8.5

Andrej Zverev az at inec.ru
Thu Jun 23 16:00:39 UTC 2005


>Number:         82577
>Category:       ports
>Synopsis:       [update] games/kbilliards to 0.8.5
>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:   Thu Jun 23 16:00:36 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andrej Zverev
>Release:        FreeBSD 5.4-RELEASE-p1 i386
>Organization:
>Environment:


	
>Description:
	[Changelog]
        ver 0.8
        - AI player added, thanks to Fabio Chiarello for is math support
        - internal improvements: rewrote and simplify edgeobject
        - updated "it" translation
        - fixed strange behaviors on .po translations file derived from kdevelop's mistakes..
        - code improvements

        ver 0.8.1
        - two bugs fixed
        - added reset button and some graphical stuff on scores dialog

        ver 0.8.5
        - added french translation "fr" thanks to Alexandre Svetoslavsky
        - updated "ru" translation thanks to Alexey Kouznetsov
        - internal improvements, added customizable billiard map system

        [Port changes]
        files/patch-src::graphicvector.cpp - removed
	files/patch-src::kbilliards.cpp - removed

>How-To-Repeat:
	
>Fix:

	

--- kbilliards-0.8.5.diff begins here ---
diff -Nru kbilliards.orig/Makefile kbilliards/Makefile
--- kbilliards.orig/Makefile	Sat Mar 12 13:53:47 2005
+++ kbilliards/Makefile	Thu Jun 23 19:35:49 2005
@@ -5,19 +5,23 @@
 # $FreeBSD: ports/games/kbilliards/Makefile,v 1.10 2005/03/12 10:53:47 marcus Exp $
 
 PORTNAME=	kbilliards
-PORTVERSION=	0.7.1
-PORTREVISION=	1
+PORTVERSION=	0.8.5
 CATEGORIES=	games kde
 MASTER_SITES=	http://www.hostnotfound.it/kbilliards/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Funny billiards simulator game for KDE
 
-EXTRA_PATCHES=	${.CURDIR}/../../x11/kde3/files/extrapatch-old_configure
-
 USE_BZIP2=	yes
+USE_REINPLACE=	yes
 USE_KDELIBS_VER=	3
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
+
+EXTRA_PATCHES=	${.CURDIR}/../../x11/kde3/files/extrapatch-old_configure
+
+post-patch:
+	${REINPLACE_CMD} -e 's|sqrtl|sqrt|' \
+	${WRKSRC}/src/ball.cpp ${WRKSRC}/src/aiplayer.cpp
 
 .include <bsd.port.mk>
diff -Nru kbilliards.orig/distinfo kbilliards/distinfo
--- kbilliards.orig/distinfo	Fri Feb 25 20:39:43 2005
+++ kbilliards/distinfo	Thu Jun 23 16:34:01 2005
@@ -1,2 +1,2 @@
-MD5 (kbilliards-0.7.1.tar.bz2) = e0b80a2f6576e979edb37dbb9a971659
-SIZE (kbilliards-0.7.1.tar.bz2) = 2064496
+MD5 (kbilliards-0.8.5.tar.bz2) = 605e541e10f2f81a4d1f4a066d5d9e32
+SIZE (kbilliards-0.8.5.tar.bz2) = 1950376
diff -Nru kbilliards.orig/files/patch-src::graphicvector.cpp kbilliards/files/patch-src::graphicvector.cpp
--- kbilliards.orig/files/patch-src::graphicvector.cpp	Fri Jan 21 22:43:35 2005
+++ kbilliards/files/patch-src::graphicvector.cpp	Thu Jan  1 03:00:00 1970
@@ -1,9 +0,0 @@
---- src/graphicvector.cpp.orig	Wed Jan 19 08:09:41 2005
-+++ src/graphicvector.cpp	Thu Jan 20 19:41:18 2005
-@@ -64,5 +64,5 @@
-  */
- void GraphicVector::advance(int)
- {
--     setPoints((int)round(startx),(int)round(starty),(int)round(endx),(int)round(endy));
-+     setPoints((int)rint(startx),(int)rint(starty),(int)rint(endx),(int)rint(endy));
- }
diff -Nru kbilliards.orig/files/patch-src::kbilliards.cpp kbilliards/files/patch-src::kbilliards.cpp
--- kbilliards.orig/files/patch-src::kbilliards.cpp	Fri Feb 25 20:39:43 2005
+++ kbilliards/files/patch-src::kbilliards.cpp	Thu Jan  1 03:00:00 1970
@@ -1,20 +0,0 @@
---- src/kbilliards.cpp.orig	Thu Feb 17 23:58:08 2005
-+++ src/kbilliards.cpp	Fri Feb 18 13:20:19 2005
-@@ -105,7 +105,7 @@
-     // load game optios like players name , multiplayer, game type ..
-     loadGameOptions();
- 
--    MaxThrowPower=round((actualconfig.check_speed)*0.36) ;
-+    MaxThrowPower=rint((actualconfig.check_speed)*0.36) ;
- 
-     KStandardDirs sd;
-     path_data=(QString)(sd.findResourceDir("data","kbilliards/top_left_corner.png") + (QString)"kbilliards/");
-@@ -901,7 +901,7 @@
- 
-            canvas->setAdvancePeriod(actualconfig.check_speed); // set current animation speed
- 
--           MaxThrowPower=round((actualconfig.check_speed)*0.36) ; // set proportional max power
-+           MaxThrowPower=rint((actualconfig.check_speed)*0.36) ; // set proportional max power
-       }
- 
-       if (isvisible) {
diff -Nru kbilliards.orig/pkg-plist kbilliards/pkg-plist
--- kbilliards.orig/pkg-plist	Fri Jan 21 22:43:34 2005
+++ kbilliards/pkg-plist	Thu Jun 23 19:29:35 2005
@@ -1,6 +1,5 @@
 bin/kbilliards
 share/applnk/Games/kbilliards.desktop
-share/apps/kbilliards/background.png
 share/apps/kbilliards/ball.png
 share/apps/kbilliards/balls/ball01.png
 share/apps/kbilliards/balls/ball01b.png
@@ -35,32 +34,9 @@
 share/apps/kbilliards/balls/ball_shadow.png
 share/apps/kbilliards/balls/ball_shadowb.png
 share/apps/kbilliards/balls/whiteball.png
-share/apps/kbilliards/bccl.png
-share/apps/kbilliards/bccr.png
-share/apps/kbilliards/blcl.png
-share/apps/kbilliards/blcr.png
-share/apps/kbilliards/bottom_central_corner.png
-share/apps/kbilliards/bottom_left_corner.png
-share/apps/kbilliards/bottom_left_edge.png
-share/apps/kbilliards/bottom_right_corner.png
-share/apps/kbilliards/bottom_right_edge.png
-share/apps/kbilliards/brcl.png
-share/apps/kbilliards/brcr.png
-share/apps/kbilliards/holebc.png
-share/apps/kbilliards/holebl.png
-share/apps/kbilliards/holebr.png
-share/apps/kbilliards/holetc.png
-share/apps/kbilliards/holetl.png
-share/apps/kbilliards/holetr.png
-share/apps/kbilliards/icona-16.png
-share/apps/kbilliards/icona-32.png
-share/apps/kbilliards/icona-48.png
-share/apps/kbilliards/icona-64.png
-share/apps/kbilliards/kbilliards.png
 share/apps/kbilliards/kbilliardsui.rc
-share/apps/kbilliards/left_edge.png
 share/apps/kbilliards/leftarrow.png
-share/apps/kbilliards/right_edge.png
+share/apps/kbilliards/maps/kbilliards2004.kbm
 share/apps/kbilliards/rightarrow.png
 share/apps/kbilliards/sound/applause.wav
 share/apps/kbilliards/sound/ballinhole.wav
@@ -69,18 +45,6 @@
 share/apps/kbilliards/sound/hitedge.wav
 share/apps/kbilliards/sound/music01.mp3
 share/apps/kbilliards/sound/shot.wav
-share/apps/kbilliards/tccl.png
-share/apps/kbilliards/tccr.png
-share/apps/kbilliards/tlcl.png
-share/apps/kbilliards/tlcr.png
-share/apps/kbilliards/top_central_corner.png
-share/apps/kbilliards/top_left_corner.png
-share/apps/kbilliards/top_left_edge.png
-share/apps/kbilliards/top_right_corner.png
-share/apps/kbilliards/top_right_edge.png
-share/apps/kbilliards/trcl.png
-share/apps/kbilliards/trcr.png
-share/doc/HTML/en/kbilliards/common
 share/doc/HTML/en/kbilliards/index.cache.bz2
 share/doc/HTML/en/kbilliards/index.docbook
 share/icons/hicolor/16x16/apps/kbilliards.png
@@ -89,9 +53,30 @@
 share/icons/locolor/16x16/apps/kbilliards.png
 share/icons/locolor/32x32/apps/kbilliards.png
 share/locale/cs/LC_MESSAGES/kbilliards.mo
+share/locale/fr/LC_MESSAGES/kbilliards.mo
 share/locale/it/LC_MESSAGES/kbilliards.mo
 share/locale/ru/LC_MESSAGES/kbilliards.mo
+ at unexec rmdir %D/share/icons/locolor/32x32/apps 2>/dev/null || true
+ at unexec rmdir %D/share/icons/locolor/32x32 2>/dev/null || true
+ at unexec rmdir %D/share/icons/locolor/16x16/apps 2>/dev/null || true
+ at unexec rmdir %D/share/icons/locolor/16x16 2>/dev/null || true
+ at unexec rmdir %D/share/icons/locolor 2>/dev/null || true
+ at unexec rmdir %D/share/icons/hicolor/48x48/apps 2>/dev/null || true
+ at unexec rmdir %D/share/icons/hicolor/48x48 2>/dev/null || true
+ at unexec rmdir %D/share/icons/hicolor/32x32/apps 2>/dev/null || true
+ at unexec rmdir %D/share/icons/hicolor/32x32 2>/dev/null || true
+ at unexec rmdir %D/share/icons/hicolor/16x16/apps 2>/dev/null || true
+ at unexec rmdir %D/share/icons/hicolor/16x16 2>/dev/null || true
+ at unexec rmdir %D/share/icons/hicolor 2>/dev/null || true
+ at unexec rmdir %D/share/icons 2>/dev/null || true
+ at dirrm share/doc/HTML/en/kbilliards/common
 @dirrm share/doc/HTML/en/kbilliards
+ at unexec rmdir %D/share/doc/HTML/en 2>/dev/null || true
+ at unexec rmdir %D/share/doc/HTML 2>/dev/null || true
 @dirrm share/apps/kbilliards/sound
+ at dirrm share/apps/kbilliards/maps
 @dirrm share/apps/kbilliards/balls
 @dirrm share/apps/kbilliards
+ at unexec rmdir %D/share/apps 2>/dev/null || true
+ at unexec rmdir %D/share/applnk/Games 2>/dev/null || true
+ at unexec rmdir %D/share/applnk 2>/dev/null || true
--- kbilliards-0.8.5.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list