git: 431ff1d3c191 - main - games/bubble-chains: resurrect port and update to 0.2.0
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Jun 10 14:03:54 UTC 2021
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=431ff1d3c1918e8ed8d82b1c8d8c35413b57134b
commit 431ff1d3c1918e8ed8d82b1c8d8c35413b57134b
Author: Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-06-08 14:52:06 +0000
Commit: Dmitry Marakasov <amdmi3 at FreeBSD.org>
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 at 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>
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
More information about the dev-commits-ports-all
mailing list