Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2013 17:08:58 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334686 - in head/games/chessx: . files
Message-ID:  <201311231708.rANH8wJp083308@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Sat Nov 23 17:08:57 2013
New Revision: 334686
URL: http://svnweb.freebsd.org/changeset/ports/334686

Log:
  - Update to 1.0.0
  - Add stage support
  - Convert to USES
  - Use options helpers
  - Patch qmake project file and remove do-install target from the port Makefile
  - Use pkg-plist
  
  PR:		based on ports/184034
  Submitted by:	Yamagi Burmeister (maintainter)

Added:
  head/games/chessx/files/patch-chessx.pro   (contents, props changed)
  head/games/chessx/pkg-plist   (contents, props changed)
Modified:
  head/games/chessx/Makefile
  head/games/chessx/distinfo

Modified: head/games/chessx/Makefile
==============================================================================
--- head/games/chessx/Makefile	Sat Nov 23 16:56:54 2013	(r334685)
+++ head/games/chessx/Makefile	Sat Nov 23 17:08:57 2013	(r334686)
@@ -1,49 +1,28 @@
 # $FreeBSD$
 
 PORTNAME=	chessx
-PORTVERSION=	0.9.6
+DISTVERSION=	1-0-0
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
-DISTNAME=	${PORTNAME}-${PORTVERSION:S/./-/g}
+EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	yamagi@yamagi.org
-COMMENT=	Qt4 chess database application
+COMMENT=	Qt 4 chess database application
 
 LICENSE=	GPLv2 # (or later)
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
-
-USE_QT4=	corelib gui svg xml network moc_build qmake_build rcc_build uic_build
-MAKE_JOBS_SAVE=	yes
+USES=		shared-mime-info qmake
+USE_QT4=	corelib gui svg xml network linguist_build \
+		moc_build qmake_build rcc_build uic_build
+QMAKE_ARGS+=	QMAKE_LRELEASE=${LRELEASE}
 
 OPTIONS_DEFINE=	STOCKFISH CRAFTY
-STOCKFISH_DESC=	Build with Stockfish Chess Engine
-CRAFTY_DESC=	Build with Crafty Chess Application
-OPTIONS_DEFAULT=STOCKFISH CRAFTY
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSTOCKFISH}
-RUN_DEPENDS+=	stockfish:${PORTSDIR}/games/stockfish
-.endif
-
-.if ${PORT_OPTIONS:MCRAFTY}
-RUN_DEPENDS+=	crafty:${PORTSDIR}/games/crafty
-.endif
-
-PLIST_FILES=	bin/${PORTNAME} \
-		share/pixmaps/${PORTNAME}.png
-
-DESKTOP_ENTRIES="ChessX" "" "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
-				"${PORTNAME}" "Game;BoardGame;" true
-
-do-configure:
-	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
-
-do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} release/${PORTNAME} ${PREFIX}/bin)
-	(cd ${WRKSRC}/data/images && ${INSTALL_DATA} chessx.png \
-		${PREFIX}/share/pixmaps/${PORTNAME}.png)
+OPTIONS_DEFAULT=	STOCKFISH CRAFTY
+
+STOCKFISH_DESC=	Install Stockfish Chess Engine
+STOCKFISH_RUN_DEPENDS=	stockfish:${PORTSDIR}/games/stockfish
+
+CRAFTY_DESC=	Install Crafty Chess Application
+CRAFTY_RUN_DEPENDS=	crafty:${PORTSDIR}/games/crafty
 
 .include <bsd.port.mk>

Modified: head/games/chessx/distinfo
==============================================================================
--- head/games/chessx/distinfo	Sat Nov 23 16:56:54 2013	(r334685)
+++ head/games/chessx/distinfo	Sat Nov 23 17:08:57 2013	(r334686)
@@ -1,2 +1,2 @@
-SHA256 (chessx-0-9-6.tar.gz) = 37ec638736b0e20fbdfb5db374bf971d76d81fe267ace3bde8b4e5c2d2e9c601
-SIZE (chessx-0-9-6.tar.gz) = 3213601
+SHA256 (chessx-1-0-0.tgz) = 822512e9142fd2aa7e9034ee84470d99f2c1df86d2b8cd97774e9e7bc97b7d72
+SIZE (chessx-1-0-0.tgz) = 3545265

Added: head/games/chessx/files/patch-chessx.pro
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/chessx/files/patch-chessx.pro	Sat Nov 23 17:08:57 2013	(r334686)
@@ -0,0 +1,27 @@
+--- ./chessx.pro.orig	2013-10-30 20:52:41.000000000 +0000
++++ ./chessx.pro	2013-11-18 16:36:14.764197702 +0000
+@@ -309,17 +309,14 @@
+ }
+ 
+ unix:!macx {
+- target.path = /usr/local/bin/chessx
+- pixmaps.path = /usr/share/pixmaps
++ target.path = $$PREFIX/bin
++ pixmaps.path = $$PREFIX/share/pixmaps
+  pixmaps.files = data/images/chessx.png
+- desktop.path = /usr/share/applications
+- desktop.files = chessx.desktop
+- desktop.extra += xdg-mime install --mode system chessx-x-chess-pgn.xml &&
+- desktop.extra += xdg-mime default chessx.desktop application/x-chess-pgn &&
+- desktop.extra += xdg-icon-resource install --context mimetypes --size 32 ./data/images/chessx-32.png application-x-chess-pgn &&
+- desktop.extra += xdg-icon-resource install --context mimetypes --size 64 ./data/images/chessx-64.png application-x-chess-pgn &&
+- desktop.extra += xdg-icon-resource install --context mimetypes --size 128 ./data/images/chessx.png application-x-chess-pgn
+- INSTALLS += target desktop pixmaps
++ desktop.path = $$PREFIX/share/applications
++ desktop.files = unix/chessx.desktop
++ mime.path = $$PREFIX/share/mime/packages
++ mime.files += unix/chessx-x-chess-pgn.xml
++ INSTALLS += target desktop pixmaps mime
+ }
+ 
+ RESOURCES = resources.qrc

Added: head/games/chessx/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/chessx/pkg-plist	Sat Nov 23 17:08:57 2013	(r334686)
@@ -0,0 +1,4 @@
+bin/chessx
+share/applications/chessx.desktop
+share/mime/packages/chessx-x-chess-pgn.xml
+share/pixmaps/chessx.png



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