Bug 179220 - games/qgo: Update to version 2.s764
Summary: games/qgo: Update to version 2.s764
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 19:10 UTC by tkato432
Modified: 2013-06-09 18:00 UTC (History)
0 users

See Also:


Attachments
file.diff (9.84 KB, patch)
2013-06-02 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-06-02 19:10:04 UTC
- Update to version 2.s764

New file:
files/patch-src__listviews.cpp
files/patch-src__mainwindow_settings.cpp

Remove file:
files/patch-src::wavfile.c
files/patch-src::wavplay.c
files/patch-src__mainwin.cpp
files/patch-src__parser.cpp
pkg-plist
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-02 19:11:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-06-09 17:56:15 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-06-09 17:56:15 UTC
Author: miwi
Date: Sun Jun  9 16:56:01 2013
New Revision: 320350
URL: http://svnweb.freebsd.org/changeset/ports/320350

Log:
  - Update to version 2.s764
  
  PR:		179220
  Submitted by:	Ports Fury

Added:
  head/games/qgo/files/patch-src__listviews.cpp   (contents, props changed)
  head/games/qgo/files/patch-src__mainwindow_settings.cpp   (contents, props changed)
Deleted:
  head/games/qgo/files/patch-src::wavfile.c
  head/games/qgo/files/patch-src::wavplay.c
  head/games/qgo/files/patch-src__mainwin.cpp
  head/games/qgo/files/patch-src__parser.cpp
  head/games/qgo/pkg-plist
Modified:
  head/games/qgo/Makefile   (contents, props changed)
  head/games/qgo/distinfo   (contents, props changed)

Modified: head/games/qgo/Makefile
==============================================================================
--- head/games/qgo/Makefile	Sun Jun  9 16:53:42 2013	(r320349)
+++ head/games/qgo/Makefile	Sun Jun  9 16:56:01 2013	(r320350)
@@ -1,35 +1,42 @@
-# ex:ts=8
-# Ports collection makefile for:	qgo
-# Date created:			Mar 22, 2002
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD$
-#
 
 PORTNAME=	qgo
-PORTVERSION=	1.5.4.3
-PORTREVISION=	3
+PORTVERSION=	2.s764
 CATEGORIES=	games
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
-DISTNAME=	${PORTNAME}-${PORTVERSION:R}-r${PORTVERSION:E}
+MASTER_SITES=	DEBIAN
+DISTNAME=	${PORTNAME}_2~svn764.orig
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Go board and SGF editor written with the Qt library
+COMMENT=	Go board and SGF editor written with the Qt library
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
+WRKSRC=		${WRKDIR}/${PORTNAME}
 
-DEPRECATED=	Depends on QT3; unmaintained
-EXPIRATION_DATE=	2013-07-01
+USE_BZIP2=	yes
+USES=		desktop-file-utils
+USE_QT4=	gui network qtestlib moc_build qmake_build rcc_build uic_build
+MAKE_JOBS_SAFE=	yes
 
-USE_XORG=	x11 ice xext
-USE_QT_VER=	3
-USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
+PLIST_FILES=	bin/qgo share/applications/qgo.desktop share/pixmaps/qgo.png
+PLIST_DIRSTRY=	share/applications
 
 post-patch:
-	@${REINPLACE_CMD} -e '/NOOPT/s|^CXXFLAGS=|#CXXFLAGS=|g ; \
-		 s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e \
-		's|/usr/share|${PREFIX}/share|g' ${WRKSRC}/templates/*.desktop
+		'/Icon/s|=.*|=${PREFIX}/share/pixmaps/qgo.png| ; \
+		 /^MimeType/s|=.*|=text/sgf|' ${WRKSRC}/src/qgo.desktop
+	@${REINPLACE_CMD} -e \
+		's|debug|release|' ${WRKSRC}/src/src.pro
+	@${REINPLACE_CMD} -e \
+		's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/mainwindow_settings.cpp
+
+do-configure:
+	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
+
+do-install:
+	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} qgo ${PREFIX}/bin)
+	@${MKDIR} ${DESKTOPDIR}
+	(cd ${WRKSRC}/src && ${INSTALL_DATA} qgo.desktop ${DESKTOPDIR})
+	(cd ${WRKSRC}/src/ressources/pics && ${INSTALL_DATA} qgo.png \
+		${PREFIX}/share/pixmaps)
 
 .include <bsd.port.mk>

Modified: head/games/qgo/distinfo
==============================================================================
--- head/games/qgo/distinfo	Sun Jun  9 16:53:42 2013	(r320349)
+++ head/games/qgo/distinfo	Sun Jun  9 16:56:01 2013	(r320350)
@@ -1,2 +1,2 @@
-SHA256 (qgo-1.5.4-r3.tar.gz) = ddfb66ada7027b844838895061f266bda03b327e8dfec2ee2782e14748bac104
-SIZE (qgo-1.5.4-r3.tar.gz) = 2490737
+SHA256 (qgo_2~svn764.orig.tar.bz2) = 07620bf2d08def7630aab69338ce345451d36e1c19acde649ec44be500102205
+SIZE (qgo_2~svn764.orig.tar.bz2) = 2491726

Added: head/games/qgo/files/patch-src__listviews.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/qgo/files/patch-src__listviews.cpp	Sun Jun  9 16:56:01 2013	(r320350)
@@ -0,0 +1,11 @@
+--- src/listviews.cpp.orig
++++ src/listviews.cpp
+@@ -342,7 +342,7 @@
+ {
+ 	for(int i = 0; i < items.count(); i++)
+ 	{
+-		GamesListItem * const item = static_cast<const GamesListItem *>(items[i]);
++		const GamesListItem * item = static_cast<const GamesListItem *>(items[i]);
+ 		if(item->getListing() == l)
+ 		{
+ 			/* Really this is supposed to be not QModelIndex() but the

Added: head/games/qgo/files/patch-src__mainwindow_settings.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/qgo/files/patch-src__mainwindow_settings.cpp	Sun Jun  9 16:56:01 2013	(r320350)
@@ -0,0 +1,17 @@
+--- src/mainwindow_settings.cpp.orig
++++ src/mainwindow_settings.cpp
+@@ -269,7 +269,13 @@
+ 	QVariant var;
+ 	
+ 	ui.comboBox_language->setCurrentIndex (settings.value("LANGUAGE").toInt());
+-	ui.LineEdit_computer->setText(settings.value("COMPUTER_PATH").toString());
++        QString computer_path = settings.value("COMPUTER_PATH").toString();
++        qDebug() << "COMPUTER_PATH" << computer_path;
++        if (computer_path == "") {
++                computer_path = "%%LOCALBASE%%/bin/gnugo";
++                settings.setValue("COMPUTER_PATH", computer_path);
++        }
++	ui.LineEdit_computer->setText(computer_path);
+ 	if(settings.value("COMPUTER_PLAYS_WHITE").toBool())
+ 		ui.computerPlaysWhite->setChecked(TRUE);
+ 	else
_______________________________________________
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"