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
This commit is contained in:
Dmitry Marakasov
2021-06-10 17:00:44 +03:00
parent d3075220ff
commit 431ff1d3c1
8 changed files with 115 additions and 1 deletions
-1
View File
@@ -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
+1
View File
@@ -120,6 +120,7 @@
SUBDIR += bsdtris
SUBDIR += bsp
SUBDIR += bstone
SUBDIR += bubble-chains
SUBDIR += bugsquish
SUBDIR += bugsx
SUBDIR += bumprace
+35
View File
@@ -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 <bsd.port.mk>
+3
View File
@@ -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
@@ -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
+21
View File
@@ -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"),
+15
View File
@@ -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
+5
View File
@@ -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