From owner-svn-ports-all@FreeBSD.ORG Sat Nov 23 17:08:59 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15DC2A9B; Sat, 23 Nov 2013 17:08:59 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EA6452151; Sat, 23 Nov 2013 17:08:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rANH8wDI083312; Sat, 23 Nov 2013 17:08:58 GMT (envelope-from makc@svn.freebsd.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rANH8wJp083308; Sat, 23 Nov 2013 17:08:58 GMT (envelope-from makc@svn.freebsd.org) Message-Id: <201311231708.rANH8wJp083308@svn.freebsd.org> From: Max Brazhnikov Date: Sat, 23 Nov 2013 17:08:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334686 - in head/games/chessx: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Nov 2013 17:08:59 -0000 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 - -.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 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