From owner-dev-commits-ports-all@freebsd.org Thu Jun 10 14:03:54 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 08A1F64C4EF; Thu, 10 Jun 2021 14:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G15LK5ywsz4qG7; Thu, 10 Jun 2021 14:03:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AE51A11113; Thu, 10 Jun 2021 14:03:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15AE3rk1093405; Thu, 10 Jun 2021 14:03:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15AE3r2S093404; Thu, 10 Jun 2021 14:03:53 GMT (envelope-from git) Date: Thu, 10 Jun 2021 14:03:53 GMT Message-Id: <202106101403.15AE3r2S093404@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: 431ff1d3c191 - main - games/bubble-chains: resurrect port and update to 0.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 431ff1d3c1918e8ed8d82b1c8d8c35413b57134b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2021 14:03:54 -0000 The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=431ff1d3c1918e8ed8d82b1c8d8c35413b57134b commit 431ff1d3c1918e8ed8d82b1c8d8c35413b57134b Author: Dmitry Marakasov AuthorDate: 2021-06-08 14:52:06 +0000 Commit: Dmitry Marakasov CommitDate: 2021-06-10 14:00:44 +0000 games/bubble-chains: resurrect port and update to 0.2.0 Bubble Chains is a funny 2D game which runs on Linux, Windows and FreeBSD. You have to collect color bubbles on the field by combining them into chains of three or more bubbles. Collected chains disapper, making other bubbles falling down. The longer is a chain, the more score is added to the corresponding target at the bottom. Completed targets are then removed from the field. The aim of Bubble Chains is to remove all of the targets on each level, and to do this before the time (indicated with the blue-colored bar at the right) runs out. Keep doing this until you have passed the last level and won the game. WWW: https://github.com/ArsMasiuk/bubble-chains --- MOVED | 1 - games/Makefile | 1 + games/bubble-chains/Makefile | 35 ++++++++++++++++++++++++++++++ games/bubble-chains/distinfo | 3 +++ games/bubble-chains/files/patch-chains.pro | 35 ++++++++++++++++++++++++++++++ games/bubble-chains/files/patch-main.cpp | 21 ++++++++++++++++++ games/bubble-chains/pkg-descr | 15 +++++++++++++ games/bubble-chains/pkg-plist | 5 +++++ 8 files changed, 115 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index e6768afd65a5..a08df80fbb2e 100644 --- a/MOVED +++ b/MOVED @@ -11740,7 +11740,6 @@ finance/alkimia-qt4||2019-03-16|Has expired: Qt4 has been EOL since december 201 finance/bitcoin-armory||2019-03-16|Has expired: Qt4 has been EOL since december 2015 finance/qhacc||2019-03-16|Has expired: Qt4 has been EOL since december 2015 ftp/scythia||2019-03-16|Has expired: Qt4 has been EOL since december 2015 -games/bubble-chains||2019-03-16|Has expired: Qt4 has been EOL since december 2015 games/capicity||2019-03-16|Has expired: Qt4 has been EOL since december 2015 games/capitalism||2019-03-16|Has expired: Qt4 has been EOL since december 2015 games/flukz||2019-03-16|Has expired: Qt4 has been EOL since december 2015 diff --git a/games/Makefile b/games/Makefile index e25d1c93fb35..9318c70d8f72 100644 --- a/games/Makefile +++ b/games/Makefile @@ -120,6 +120,7 @@ SUBDIR += bsdtris SUBDIR += bsp SUBDIR += bstone + SUBDIR += bubble-chains SUBDIR += bugsquish SUBDIR += bugsx SUBDIR += bumprace diff --git a/games/bubble-chains/Makefile b/games/bubble-chains/Makefile new file mode 100644 index 000000000000..d81446c866cb --- /dev/null +++ b/games/bubble-chains/Makefile @@ -0,0 +1,35 @@ +PORTNAME= bubble-chains +PORTVERSION= 0.2.0 +DISTVERSIONPREFIX= V +CATEGORIES= games + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Free crossplatform 2D arcade-puzzle game + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= ArsMasiuk + +USES= qmake qt:5 xorg +USE_QT= core gui widgets xml opengl multimedia x11extras \ + qmake_build buildtools_build +USE_XORG= x11 xrandr + +QMAKE_ARGS= DATADIR="${DATADIR}" + +PORTDOCS= README +PORTDATA= * + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \ + ${WRKSRC}/main.cpp + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ + +.include diff --git a/games/bubble-chains/distinfo b/games/bubble-chains/distinfo new file mode 100644 index 000000000000..9bcae40e5673 --- /dev/null +++ b/games/bubble-chains/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622637689 +SHA256 (ArsMasiuk-bubble-chains-V0.2.0_GH0.tar.gz) = d94691b047752bd35da5020ffa8542d29a45f38168a751f46ac94b84482f1d72 +SIZE (ArsMasiuk-bubble-chains-V0.2.0_GH0.tar.gz) = 3979512 diff --git a/games/bubble-chains/files/patch-chains.pro b/games/bubble-chains/files/patch-chains.pro new file mode 100644 index 000000000000..c9e4ae6d03df --- /dev/null +++ b/games/bubble-chains/files/patch-chains.pro @@ -0,0 +1,35 @@ +--- chains.pro.orig 2020-12-22 07:59:21 UTC ++++ chains.pro +@@ -13,26 +13,26 @@ QMAKE_TARGET_COMPANY = + + unix: { + TARGET = ./bin/chains +- target.path = /usr/local/bin ++ target.path = $$PREFIX/bin + INSTALLS += target + +- datas.path = /usr/share/games/chains ++ datas.path = $$DATADIR + datas.files = data + INSTALLS += datas + +- desktop.path = /usr/share/applications/ ++ desktop.path = $$PREFIX/share/applications/ + desktop.files = setup.linux/chains.desktop + INSTALLS += desktop + +- icon.path = /usr/share/icons/hicolor/256x256/apps/ ++ icon.path = $$PREFIX/share/icons/hicolor/256x256/apps/ + icon.files = setup.linux/chains.png + INSTALLS += icon + +- icon2.path = /usr/share/pixmaps ++ icon2.path = $$PREFIX/share/pixmaps + icon2.files = setup.linux/chains.png + INSTALLS += icon2 + +- appdata.path = /usr/share/appdata/ ++ appdata.path = $$PREFIX/share/appdata/ + appdata.files = setup.linux/chains.appdata.xml + INSTALLS += appdata + diff --git a/games/bubble-chains/files/patch-main.cpp b/games/bubble-chains/files/patch-main.cpp new file mode 100644 index 000000000000..6f5b940646ce --- /dev/null +++ b/games/bubble-chains/files/patch-main.cpp @@ -0,0 +1,21 @@ +--- main.cpp.orig 2020-12-22 07:59:21 UTC ++++ main.cpp +@@ -21,17 +21,7 @@ int main(int argc, char *argv[]) + QApplication a(argc, argv); + + // resources +- QString resourcePath = a.applicationDirPath(); +- resourcePath.chop(3); +- resourcePath += "data/"; // bin -> data +- +- // on X11, we'll check if data directory exists locally first +- #ifdef Q_OS_LINUX +- qDebug() << resourcePath; +- +- if (!QDir(resourcePath).exists()) +- resourcePath = "/usr/share/games/chains/data/"; +- #endif ++ QString resourcePath = "%%DATADIR%%/data/"; + + if (!QDir(resourcePath).exists()) { + QMessageBox::critical(nullptr, QString("Files are missing"), diff --git a/games/bubble-chains/pkg-descr b/games/bubble-chains/pkg-descr new file mode 100644 index 000000000000..943539e5d25e --- /dev/null +++ b/games/bubble-chains/pkg-descr @@ -0,0 +1,15 @@ +Bubble Chains is a funny 2D game which runs on Linux, Windows and +FreeBSD. + +You have to collect color bubbles on the field by combining them +into chains of three or more bubbles. Collected chains disapper, +making other bubbles falling down. The longer is a chain, the more +score is added to the corresponding target at the bottom. Completed +targets are then removed from the field. + +The aim of Bubble Chains is to remove all of the targets on each +level, and to do this before the time (indicated with the blue-colored +bar at the right) runs out. Keep doing this until you have passed +the last level and won the game. + +WWW: https://github.com/ArsMasiuk/bubble-chains diff --git a/games/bubble-chains/pkg-plist b/games/bubble-chains/pkg-plist new file mode 100644 index 000000000000..64560bf2b4ed --- /dev/null +++ b/games/bubble-chains/pkg-plist @@ -0,0 +1,5 @@ +bin/chains +share/appdata/chains.appdata.xml +share/applications/chains.desktop +share/icons/hicolor/256x256/apps/chains.png +share/pixmaps/chains.png