diff options
Diffstat (limited to 'games-puzzle')
37 files changed, 207 insertions, 582 deletions
diff --git a/games-puzzle/color-lines/Manifest b/games-puzzle/color-lines/Manifest deleted file mode 100644 index 5824b1ebe3b5..000000000000 --- a/games-puzzle/color-lines/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST lines_0.6.tar.gz 862137 BLAKE2B 11be598d89963b7a32479565538d85531d8bab16e46b8c5851e30cda7fd480a9d40d43b10fd3d74f2d0f820f0606aabe775ff44bbe5dd9f55551095aeb95cb60 SHA512 fe9e96b598fb6cf0980d0970facbc070715b33491a8f0ad979c57332a22e97ab801e85dd17b5d0b2a1b8aba69b48b6c42dc115b01a36654ad05a5e9a06c5405a diff --git a/games-puzzle/color-lines/color-lines-0.6-r1.ebuild b/games-puzzle/color-lines/color-lines-0.6-r1.ebuild deleted file mode 100644 index 35416f945881..000000000000 --- a/games-puzzle/color-lines/color-lines-0.6-r1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit desktop - -DESCRIPTION="Color lines game written with SDL with bonus features" -HOMEPAGE="https://github.com/OpenA/color-lines-sdl" -SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.gz -> lines_${PV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux" - -RDEPEND=" - media-libs/libsdl[X,sound,video] - media-libs/sdl-image[png] - media-libs/sdl-mixer[wav,mod] -" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/lines-${PV}" - -src_prepare() { - default - eapply "${FILESDIR}/${P}-Makefile.patch" - - sed -i \ - -e '/^Encoding/d' \ - -e '/^Version/d' \ - -e '/^Icon/s/.png//' \ - color-lines.desktop.in || die 'sed on color-lines.desktop.in failed' -} - -src_compile() { - emake BINDIR="${EPREFIX}/usr/bin/" GAMEDATADIR="${EPREFIX}/usr/share/${PN}/" -} - -src_install() { - insinto "/usr/share/${PN}" - doins -r gfx sounds - - domenu ${PN}.desktop - doicon icon/${PN}.png - einstalldocs - dobin ${PN} -} diff --git a/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch b/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch deleted file mode 100644 index bf1339b94a01..000000000000 --- a/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- a/Makefile.unix.orig 2013-04-12 13:56:42.131113000 +0400 -+++ b/Makefile.unix 2013-04-12 13:57:26.595946027 +0400 -@@ -2,18 +2,18 @@ - VERTITLE := lines-$(VERSION) - ARCHIVE := lines_$(VERSION).tar.gz - --CFLAGS:=-Wall -O2 $(shell sdl-config --cflags) -+CFLAGS += $(shell sdl-config --cflags) - #-DMAEMO - --LDFLAGS:=$(shell sdl-config --libs) -lSDL_image -lSDL_mixer -+LIBS := -lm $(shell sdl-config --libs) -lSDL_image -lSDL_mixer - - SRC := board.c graphics.c main.c sound.c - OBJ := $(patsubst %.c, %.o, $(SRC)) - - all: color-lines --PREFIX:=/usr/local -+PREFIX:=/usr - --BINDIR:=$(DESTDIR)/$(PREFIX)/games/ -+BINDIR:=$(DESTDIR)$(PREFIX)/games/bin - GAMEDATADIR:=$(DESTDIR)/$(PREFIX)/share/games/color-lines/ - - svnclean: -@@ -29,8 +29,7 @@ - - color-lines: $(OBJ) - cat color-lines.desktop.in | sed -e "s|@BINDIR|$(BINDIR)|g" > color-lines.desktop -- $(CC) $(CFLAGS) $(LDFLAGS) $(^) -o $(@) -- strip color-lines -+ $(CC) $(CFLAGS) $(LDFLAGS) $(^) -o $(@) $(LIBS) - - clean: - rm -f *.o color-lines diff --git a/games-puzzle/color-lines/metadata.xml b/games-puzzle/color-lines/metadata.xml deleted file mode 100644 index ed0ddbb10055..000000000000 --- a/games-puzzle/color-lines/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <upstream> - <remote-id type="github">OpenA/color-lines-sdl</remote-id> - </upstream> -</pkgmetadata> diff --git a/games-puzzle/einstein/Manifest b/games-puzzle/einstein/Manifest index 1ac631972e4e..056aa4eaafff 100644 --- a/games-puzzle/einstein/Manifest +++ b/games-puzzle/einstein/Manifest @@ -1,2 +1,2 @@ -DIST einstein-2.1.1.tar.gz 1317979 BLAKE2B 7924774c2d540ecd7cbecb344907d20ab9514219407a02852bbd80bbb9d1d27bac14654a1553dbe30e8f0fd79e08f12338a4e43dfc3c06bfb433fb3a46330a64 SHA512 e34e8e0ef47c311d7417c42ba306b9e9cf94d1fd1829b3948d791543d1fb5f8f1d8d975154bab2559691cf3b94574d5485f8541882d59dd0b6284ff76e435cf3 +DIST einstein-puzzle-2.1.1.tar.gz 1317979 BLAKE2B 7924774c2d540ecd7cbecb344907d20ab9514219407a02852bbd80bbb9d1d27bac14654a1553dbe30e8f0fd79e08f12338a4e43dfc3c06bfb433fb3a46330a64 SHA512 e34e8e0ef47c311d7417c42ba306b9e9cf94d1fd1829b3948d791543d1fb5f8f1d8d975154bab2559691cf3b94574d5485f8541882d59dd0b6284ff76e435cf3 DIST einstein.png 932 BLAKE2B 13ecf24e5600bf39bbaec662afda5b4fdba2c5adf4560e8f08996b2e6c475002857187be2dac2d2c898cdb63854cc7ea1748b6b1d34a67adcc2f4789aafd5c25 SHA512 9e19d351e915509a11d7275ef0ea7e246d0d334933ec4b48ea0f56aa552ac69041a5c2a64075b02ec3601b1c2b8307cef314c9427ab7615b16e689faaa074283 diff --git a/games-puzzle/einstein/einstein-2.1.1-r1.ebuild b/games-puzzle/einstein/einstein-2.1.1-r1.ebuild new file mode 100644 index 000000000000..e4d68b289902 --- /dev/null +++ b/games-puzzle/einstein/einstein-2.1.1-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop + +MY_P=einstein-puzzle-${PV} +DESCRIPTION="A puzzle game inspired by Albert Einstein" +HOMEPAGE="https://github.com/lksj/einstein-puzzle/" +SRC_URI=" + https://github.com/lksj/einstein-puzzle/archive/v${PV}.tar.gz + -> ${MY_P}.tar.gz + https://dev.gentoo.org/~mgorny/dist/einstein.png +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + media-libs/libsdl[sound,video] + media-libs/sdl-mixer + media-libs/sdl-ttf +" +RDEPEND=" + ${DEPEND} +" + +src_prepare() { + default + eapply "${FILESDIR}"/${PN}-2.0-as-needed.patch + sed -i \ + -e "/PREFIX/s:/usr/local:/usr:" \ + -e "s/\(OPTIMIZE=[^#]*\)/\0 ${CXXFLAGS}/" Makefile \ + || die +} + +src_install() { + dobin einstein + insinto /usr/share/einstein/res + doins einstein.res + doicon "${DISTDIR}"/einstein.png + make_desktop_entry einstein "Einstein Puzzle" + einstalldocs +} diff --git a/games-puzzle/einstein/einstein-2.1.1.ebuild b/games-puzzle/einstein/einstein-2.1.1.ebuild deleted file mode 100644 index 857e57a6e54a..000000000000 --- a/games-puzzle/einstein/einstein-2.1.1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit desktop - -DESCRIPTION="A puzzle game inspired by Albert Einstein" -HOMEPAGE="https://github.com/lksj/einstein-puzzle" -SRC_URI="https://github.com/lksj/einstein-puzzle/archive/v${PV}.tar.gz -> ${P}.tar.gz - mirror://gentoo/${PN}.png" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="media-libs/libsdl[sound,video] - media-libs/sdl-mixer - media-libs/sdl-ttf" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${PN}-puzzle-${PV}" - -src_prepare() { - default - eapply "${FILESDIR}"/${PN}-2.0-as-needed.patch - sed -i \ - -e "/PREFIX/s:/usr/local:/usr:" \ - -e "s/\(OPTIMIZE=[^#]*\)/\0 ${CXXFLAGS}/" Makefile \ - || die -} - -src_install() { - dobin "${PN}" - insinto "/usr/share/${PN}/res" - doins einstein.res - doicon "${DISTDIR}"/${PN}.png - make_desktop_entry ${PN} "Einstein Puzzle" - einstalldocs -} diff --git a/games-puzzle/einstein/metadata.xml b/games-puzzle/einstein/metadata.xml index 7c730d47817a..f0608bcd1a8d 100644 --- a/games-puzzle/einstein/metadata.xml +++ b/games-puzzle/einstein/metadata.xml @@ -1,8 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> </maintainer> + <upstream> + <remote-id type="github">lksj/einstein-puzzle</remote-id> + </upstream> </pkgmetadata> diff --git a/games-puzzle/gnome-tetravex/gnome-tetravex-3.38.2.ebuild b/games-puzzle/gnome-tetravex/gnome-tetravex-3.38.2.ebuild index 9c4fef69a495..4c7575abd646 100644 --- a/games-puzzle/gnome-tetravex/gnome-tetravex-3.38.2.ebuild +++ b/games-puzzle/gnome-tetravex/gnome-tetravex-3.38.2.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -PYTHON_COMPAT=( python3_{9..11} ) +EAPI=8 +PYTHON_COMPAT=( python3_{10..12} ) inherit gnome.org gnome2-utils meson python-any-r1 vala xdg DESCRIPTION="Complete the puzzle by matching numbered tiles" -HOMEPAGE="https://wiki.gnome.org/Apps/Tetravex" +HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-tetravex" LICENSE="GPL-2+ CC-BY-SA-3.0" SLOT="0" @@ -33,8 +33,8 @@ PATCHES=( ) src_prepare() { - xdg_src_prepare - vala_src_prepare + default + vala_setup } src_configure() { diff --git a/games-puzzle/hangman/Manifest b/games-puzzle/hangman/Manifest deleted file mode 100644 index 585e2006726a..000000000000 --- a/games-puzzle/hangman/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST hangman-0.9.2.tar.gz 1023712 BLAKE2B d9d12e02cb48fb80e0cf9c5f9dcb52f57e6305342b41443a791252701758c302bdbfb15dfefcfbbc7c4fc39fe1bfaccd961d1eb3d9a351f937c219ce98c26a26 SHA512 cbf940310b4821cf4de27a99a5228bccf42093a65ca83b0a2582556865ee5cea5a4ee2ebe08d2e02ac93f0cfc8d190b1f5427adbd74e7ddb57b90cee84f85d65 diff --git a/games-puzzle/hangman/hangman-0.9.2-r1.ebuild b/games-puzzle/hangman/hangman-0.9.2-r1.ebuild deleted file mode 100644 index abfc77ca017b..000000000000 --- a/games-puzzle/hangman/hangman-0.9.2-r1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit desktop - -DESCRIPTION="The classic word guessing game" -HOMEPAGE="http://www.shiftygames.com/hangman/hangman.html" -SRC_URI="http://www.shiftygames.com/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="!games-misc/bsd-games - media-libs/libsdl - media-libs/sdl-mixer - media-libs/sdl-image - media-libs/sdl-ttf" -RDEPEND="${DEPEND} - sys-apps/miscfiles" - -src_prepare() { - default - sed -i \ - -e 's/inline void SE_CheckEvents/void SE_CheckEvents/' \ - src/hangman.c \ - || die "sed failed" -} - -src_install() { - default - newicon pics/noose.png ${PN}.png - make_desktop_entry ${PN} Hangman -} diff --git a/games-puzzle/hangman/metadata.xml b/games-puzzle/hangman/metadata.xml deleted file mode 100644 index 1c3ba213c494..000000000000 --- a/games-puzzle/hangman/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> -</maintainer> -</pkgmetadata> diff --git a/games-puzzle/magiccube4d/Manifest b/games-puzzle/magiccube4d/Manifest index a1723fcf9e19..f79c7334f9d1 100644 --- a/games-puzzle/magiccube4d/Manifest +++ b/games-puzzle/magiccube4d/Manifest @@ -1,2 +1 @@ -DIST magiccube4d.gif 20739 BLAKE2B feaf1911e483bff7244476000c75b34794911fe279772b8f5d46ee8bd4125881fb71aaab0ebac891fd0a5db38b746c940991bf5fe9e1ad8a678240b2d6cddf82 SHA512 7a8902710eaa78a6580f024a86bfa1828870dc873a4fef30a7d4fa197a67cd1dde162d6d1d1ba0bea4307c13198d52505fb1a1fa3f6d10b3914af42d7c0ebd49 -DIST mc4d-src-2_2.tgz 144645 BLAKE2B 5b29963d056961ce425f7644b14c35e44ce94bc7be6ea5f3fbbb4048478366951005eb8e91fe7cb12e6f1424ad55add31493e0ad3a4ab18eea9e747f940c35f3 SHA512 19491460bada93b4ee2010004128279cb88ab866a5a8c791080d59fa86e5bacf966d7dab0c9b3074e94b77611ae341480d19b384079e83df549ef25e592b12a6 +DIST magiccube4d-4.3.343.tar.gz 871676 BLAKE2B a023ef1c84546e32f0de032f3c8515fca8568fa8e22869446a480e878574064b8e5572d2a0e76ae88af06de4f18a911f36e478e9f3c3dc1979915c0aa58d64a3 SHA512 f9fc93d54d850495e9216aa0bbf8beffa662032921e9fef54de9940fc07ad03e9af52d9a488445e4985ec2369abe90494657e6f5e199ebc2070c707dd95cc486 diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch deleted file mode 100644 index 7fbd52871887..000000000000 --- a/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff -Nru magiccube4d-src-2_2.orig/EventHandler.cpp magiccube4d-src-2_2/EventHandler.cpp ---- magiccube4d-src-2_2.orig/EventHandler.cpp 2007-09-30 12:01:46.503967712 +0200 -+++ magiccube4d-src-2_2/EventHandler.cpp 2007-09-30 12:03:23.489172011 +0200 -@@ -20,6 +20,7 @@ - #include <iostream> - #include <unistd.h> - #include <stdio.h> -+#include <stdint.h> - - #include "MagicCube.h" - #include "Puzzlest.h" -@@ -415,7 +416,7 @@ - void - EventHandler::undo_cb(void* argp) - { -- int arg = (int) argp; -+ int arg = (intptr_t) argp; - struct stickerspec grip; - int dir; - int slicesmask; -@@ -461,7 +462,7 @@ - void - EventHandler::redo_cb(void* argp) - { -- int arg = (int) argp; -+ int arg = (intptr_t) argp; - struct stickerspec grip; - int dir; - int slicesmask; -@@ -507,7 +508,7 @@ - void - EventHandler::scramble_cb(void *arg = NULL) - { -- int n = (int)arg; -+ int n = (intptr_t)arg; - struct stickerspec grip; - int i, previous_face = -1; - int ngrips = NFACES * 3 * 3 * 3; -@@ -855,12 +856,12 @@ - void - EventHandler::newPuzzle_cb(void* arg) - { -- if ((int)arg == preferences.getLength()) -+ if ((intptr_t)arg == preferences.getLength()) - { - reset_cb(0); - return; - } -- preferences.setLength((int)arg); -+ preferences.setLength((intptr_t)arg); - int length = preferences.getLength(); - - polymgr->reset(length); diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch deleted file mode 100644 index 8e2aaf2b5fcd..000000000000 --- a/games-puzzle/magiccube4d/files/magiccube4d-2.2-gcc41.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/EventHandler.h.old 2006-05-19 22:11:48.000000000 +0200 -+++ b/EventHandler.h 2006-05-19 22:11:58.000000000 +0200 -@@ -165,7 +165,7 @@ - - int number_of_reference_stickers_needed; - int (*reference_stickers_needed)[4]; -- void (EventHandler::*what_to_do_after_got_reference_stickers) (void *arg = NULL); -+ void (EventHandler::*what_to_do_after_got_reference_stickers) (void *arg); - void* cur_ui_data; - - bool quick_mode; ---- a/Machine.h.old 2006-05-19 22:12:17.000000000 +0200 -+++ b/Machine.h 2006-05-19 22:12:29.000000000 +0200 -@@ -31,7 +31,7 @@ - { - public: - typedef void (EventHandler::*event_handler)(EventHandler::Event*, -- void *arg = 0); -+ void *arg); - virtual ~Machine() {}; - - static Machine* createMachine(EventHandler*, int& argc, char *argv[], diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch deleted file mode 100644 index 73d1b4a59dca..000000000000 --- a/games-puzzle/magiccube4d/files/magiccube4d-2.2-ldflags.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/Makefile.in.old 2010-10-15 10:38:48.000000000 +0200 -+++ b/Makefile.in 2010-10-15 10:39:07.000000000 +0200 -@@ -72,10 +72,10 @@ - $(CXX) -c $(CXXFLAGS) $< - - $(TARGET): $(OBJS) -- $(CXX) -o $(TARGET) $(OBJS) $(LIBDIRS) $(LIBS) -+ $(CXX) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBDIRS) $(LIBS) - - $(TARGET).static: $(OBJS) -- $(CXX) -static -o $(TARGET).static $(OBJS) $(LIBDIRS) $(LIBS) -+ $(CXX) $(LDFLAGS) -static -o $(TARGET).static $(OBJS) $(LIBDIRS) $(LIBS) - - Vec.h: vec_h.c - $(CC) -o vec_h vec_h.c diff --git a/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch b/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch deleted file mode 100644 index d242438d8d05..000000000000 --- a/games-puzzle/magiccube4d/files/magiccube4d-EventHandler.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/EventHandler.cpp.old 2004-11-04 22:58:13.735812448 +1100 -+++ b/EventHandler.cpp 2004-11-04 22:57:03.176539088 +1100 -@@ -326,7 +326,7 @@ - number_of_reference_stickers_needed--; - reference_stickers_needed++; - if (number_of_reference_stickers_needed == 0) -- (this->*what_to_do_after_got_reference_stickers)(); -+ (this->*what_to_do_after_got_reference_stickers)(NULL); - } - } - diff --git a/games-puzzle/magiccube4d/files/magiccube4d-xdg-config.patch b/games-puzzle/magiccube4d/files/magiccube4d-xdg-config.patch new file mode 100644 index 000000000000..e60ec6125c1c --- /dev/null +++ b/games-puzzle/magiccube4d/files/magiccube4d-xdg-config.patch @@ -0,0 +1,64 @@ +From 7430d876b0efdb3f828a92df60a9e2d4d7ebc113 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@gentoo.org> +Date: Sat, 17 Aug 2024 23:31:43 +0100 +Subject: [PATCH] Write config to XDG_CONFIG_HOME or ~/.config unless old + config exists or on Win + +Storing configuration outside a standard user configuration directory is bad +practise and very unhelpful for distributions wanting to package this software. + +This respects the old configuation location for compatibility. + +XDG_CONFIG_HOME or ~/.config should make sense on just about any non-Windows OS. +--- + src/com/superliminal/util/PropertyManager.java | 18 ++++++++++++++++-- + 1 file changed, 16 insertions(+), 2 deletions(-) + +diff --git a/src/com/superliminal/util/PropertyManager.java b/src/com/superliminal/util/PropertyManager.java +index 80567fc..2a6de12 100644 +--- a/src/com/superliminal/util/PropertyManager.java ++++ b/src/com/superliminal/util/PropertyManager.java +@@ -4,6 +4,8 @@ import java.util.*; + import java.io.*; + import java.awt.*; + import java.net.*; ++import java.nio.file.InvalidPathException; ++import java.nio.file.Paths; + + /** + * Title: PropertyManager +@@ -101,8 +103,19 @@ public class PropertyManager extends Properties { + * Applications should load any user-specific property overrides directly into this object + * and then call setProperty whenever a user action needs to change one. + */ +- public final static PropertyManager userprefs = new LocalProps(new File(StaticUtils.getBinDir(), PRODUCT_NAME + ".props")); ++ public final static PropertyManager userprefs; + static { ++ File propsFile = Paths.get(StaticUtils.getBinDir(), PRODUCT_NAME + ".props").toFile(); ++ ++ if (!propsFile.canWrite() && !System.getProperty("os.name").startsWith("Windows")) { ++ try { ++ propsFile = Paths.get(System.getenv("XDG_CONFIG_HOME"), PRODUCT_NAME + ".props").toFile(); ++ } catch (NullPointerException | InvalidPathException e) { ++ propsFile = Paths.get(System.getProperty("user.home"), ".config", PRODUCT_NAME + ".props").toFile(); ++ } ++ } ++ ++ userprefs = new LocalProps(propsFile); + System.out.println("Launch dir: " + StaticUtils.getBinDir()); + } + +@@ -256,8 +269,9 @@ public class PropertyManager extends Properties { + if(localPropFile == null || storeFailed) + return; + try { ++ localPropFile.getParentFile().mkdirs(); + this.store(new FileOutputStream(localPropFile), PRODUCT_NAME + " User Preferences"); +- } catch(IOException e) { ++ } catch(IOException | SecurityException e) { + storeFailed = true; // so as to only give fail msg once + if(!localPropFile.canWrite()) + System.err.println("Can't write"); +-- +2.45.2 + diff --git a/games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild b/games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild deleted file mode 100644 index 1c45efaeaffc..000000000000 --- a/games-puzzle/magiccube4d/magiccube4d-2.2-r1.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit desktop - -MY_PV="${PV/./_}" -DESCRIPTION="Four-dimensional analog of Rubik's cube" -HOMEPAGE="https://www.superliminal.com/cube/cube.htm" -SRC_URI="https://www.superliminal.com/cube/mc4d-src-${MY_PV}.tgz - https://superliminal.com/cube/cube_transp.gif -> ${PN}.gif" - -LICENSE="free-noncomm" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="x11-libs/libXaw" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${PN}-src-${MY_PV}" - -src_prepare() { - default - eapply "${FILESDIR}"/${PN}-EventHandler.patch \ - "${FILESDIR}/${P}"-gcc41.patch \ - "${FILESDIR}/${P}"-64bit-ptr.patch \ - "${FILESDIR}"/${P}-ldflags.patch - sed -i \ - -e "s:-Werror::" \ - configure \ - || die "sed failed" -} - -src_compile() { - emake DFLAGS="${CFLAGS}" -} - -src_install() { - dobin magiccube4d - dodoc ChangeLog MagicCube4D-unix.txt readme-unix.txt Intro.txt - doicon "${DISTDIR}"/${PN}.gif - make_desktop_entry ${PN} "Magic Cube 4D" /usr/share/pixmaps/${PN}.gif -} diff --git a/games-puzzle/magiccube4d/magiccube4d-4.3.343.ebuild b/games-puzzle/magiccube4d/magiccube4d-4.3.343.ebuild new file mode 100644 index 000000000000..99641bd510a5 --- /dev/null +++ b/games-puzzle/magiccube4d/magiccube4d-4.3.343.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop java-pkg-2 java-pkg-simple xdg + +DESCRIPTION="Four-dimensional analog of Rubik's cube" +HOMEPAGE="https://www.superliminal.com/cube/cube.htm" +SRC_URI="https://github.com/cutelyaware/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}" +LICENSE="free-noncomm" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" + +PATCHES=( + "${FILESDIR}"/${PN}-xdg-config.patch +) + +JAVA_SRC_DIR="src" +JAVA_RESOURCE_DIRS=( src ) + +src_prepare() { + default + java-pkg-2_src_prepare +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher ${PN} --main com.superliminal.magiccube4d.MC4DSwing --java_args "-Xms128m -Xmx512m" + + newicon -s 32 src/mc4d.png ${PN}.png + make_desktop_entry ${PN} "Magic Cube 4D" + + dodoc README.md +} diff --git a/games-puzzle/magiccube4d/metadata.xml b/games-puzzle/magiccube4d/metadata.xml index 1c3ba213c494..e105507f248f 100644 --- a/games-puzzle/magiccube4d/metadata.xml +++ b/games-puzzle/magiccube4d/metadata.xml @@ -1,8 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> -</maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="github">cutelyaware/magiccube4d</remote-id> + </upstream> </pkgmetadata> diff --git a/games-puzzle/pingus/pingus-0.7.6-r5.ebuild b/games-puzzle/pingus/pingus-0.7.6-r5.ebuild index 0e31967af72e..80d8be7a1c2b 100644 --- a/games-puzzle/pingus/pingus-0.7.6-r5.ebuild +++ b/games-puzzle/pingus/pingus-0.7.6-r5.ebuild @@ -10,7 +10,7 @@ DESCRIPTION="Free Lemmings clone" HOMEPAGE="https://pingus.gitlab.io/" SRC_URI="https://pingus.googlecode.com/files/${P}.tar.bz2" -LICENSE="GPL-3" +LICENSE="GPL-3+ GPL-2+ ZLIB" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="opengl music" diff --git a/games-puzzle/scramble/Manifest b/games-puzzle/scramble/Manifest deleted file mode 100644 index c45f311085ec..000000000000 --- a/games-puzzle/scramble/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST scramble-0.9.5.tar.gz 552301 BLAKE2B 9bbdbe1551ba03dc66342eaab9b7e85356ca6fa78f2bbf7423b79a65cfe46711f0818ff41cba81a98b3888c9558692ec9879095e6353216675a869ab4544753f SHA512 ff361cefe842d6b2019a78571182fe35fc77a1332d6365211af7cf292da8532023bd565b7eed8b44545716474d441b0793253e856a1cad937f62396a5a29bd2b diff --git a/games-puzzle/scramble/metadata.xml b/games-puzzle/scramble/metadata.xml deleted file mode 100644 index 1c3ba213c494..000000000000 --- a/games-puzzle/scramble/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> -</maintainer> -</pkgmetadata> diff --git a/games-puzzle/scramble/scramble-0.9.5-r1.ebuild b/games-puzzle/scramble/scramble-0.9.5-r1.ebuild deleted file mode 100644 index 9158e8985e9a..000000000000 --- a/games-puzzle/scramble/scramble-0.9.5-r1.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit autotools desktop flag-o-matic - -DESCRIPTION="Create as many words as you can before the time runs out" -HOMEPAGE="http://www.shiftygames.com/scramble/scramble.html" -SRC_URI="http://www.shiftygames.com/scramble/${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND=" - >=media-libs/libsdl-1.2[sound,video] - >=media-libs/sdl-mixer-1.2[vorbis] - >=media-libs/sdl-image-1.2[png] - media-libs/sdl-ttf -" -DEPEND="${RDEPEND} - media-libs/libpng:0 - sys-apps/miscfiles -" - -src_prepare() { - default - pngfix -q --out=pics/background-fixed.png pics/background.png - mv -f pics/background-fixed.png pics/background.png - append-cflags $(sdl-config --cflags) - sed -i -e 's/inline //' src/scramble.c || die - mv configure.{in,ac} || die - eautoreconf -} - -src_install() { - default - newicon pics/sg_icon.png ${PN}.png - make_desktop_entry ${PN} "Scramble" -} diff --git a/games-puzzle/seatris/Manifest b/games-puzzle/seatris/Manifest deleted file mode 100644 index bd8b8b944d6e..000000000000 --- a/games-puzzle/seatris/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST seatris-0.0.14.tar.gz 53056 BLAKE2B 8efbc4531f98f06857815c86e2833ede03de3206bfc89efe387e2b388252c05d11b404e4a72fe6b33f215908cf03bc5687c627fa61943cb549c59bfb82455939 SHA512 105722ddbeaa8ae3863331126cf816e7d590ebe4ca244b32d3275071c2537c2865183a90f60f8dbf46cfacbcee4e811b653ff9cc6d2eae51c9ed6efa9263fac2 diff --git a/games-puzzle/seatris/files/seatris-0.0.14-as-needed.patch b/games-puzzle/seatris/files/seatris-0.0.14-as-needed.patch deleted file mode 100644 index e77c0dd75077..000000000000 --- a/games-puzzle/seatris/files/seatris-0.0.14-as-needed.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Makefile.in -+++ b/Makefile.in -@@ -11,7 +11,7 @@ - parse.o readcfg.o - - seatris: $(OBJS) -- $(CC) $(LFLAGS) $(LIBS) -o seatris $(OBJS) -+ $(CC) $(LDFLAGS) -o seatris $(OBJS) $(LIBS) - - clean: - rm -f *.o seatris diff --git a/games-puzzle/seatris/metadata.xml b/games-puzzle/seatris/metadata.xml deleted file mode 100644 index 1c3ba213c494..000000000000 --- a/games-puzzle/seatris/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> -</maintainer> -</pkgmetadata> diff --git a/games-puzzle/seatris/seatris-0.0.14-r2.ebuild b/games-puzzle/seatris/seatris-0.0.14-r2.ebuild deleted file mode 100644 index 2b208413feb3..000000000000 --- a/games-puzzle/seatris/seatris-0.0.14-r2.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs - -DESCRIPTION="A color ncurses tetris clone" -HOMEPAGE="http://www.earth.li/projectpurple/progs/seatris.html" -SRC_URI="http://www.earth.li/projectpurple/files/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" - -DEPEND="sys-libs/ncurses:=" -RDEPEND=" - ${DEPEND} - acct-group/gamestat -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${P}-as-needed.patch -) - -src_prepare() { - default - - sed -i \ - -e "s:/var/lib/games:/var/lib/${PN}:" \ - scoring.h seatris.6 || die -} - -src_configure() { - tc-export CC - econf -} - -src_compile() { - emake LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )" -} - -src_install() { - dobin seatris - - doman seatris.6 - dodoc ACKNOWLEDGEMENTS HISTORY README TODO example.seatrisrc - - dodir /var/lib/${PN} - touch "${ED}"/var/lib/${PN}/seatris.score || die - fperms 660 /var/lib/${PN}/seatris.score - - fowners -R root:gamestat /var/lib/${PN} /usr/bin/${PN} - fperms g+s /usr/bin/${PN} -} diff --git a/games-puzzle/skladnik/Manifest b/games-puzzle/skladnik/Manifest index 52a4803a25c2..6c4412fe2724 100644 --- a/games-puzzle/skladnik/Manifest +++ b/games-puzzle/skladnik/Manifest @@ -1,2 +1,2 @@ -DIST skladnik-0.5.1.tar.xz 397604 BLAKE2B 1d99e01a611c819d21a4ef009070a07c64e19499ddb54ce21611850092cc3a2e1877ab034b7b722fe962d641b00d3ac195e541966372cc8518d75a404051f3e6 SHA512 84a8494a679d228a41f559c4d986bf50c7ee287e9af3d400e9cc35347ce4ac72166ee1691bfb6739b9c1923c5d6e3d48c695592dbd12238f10a0977957ad09a6 DIST skladnik-24.05.2.tar.xz 408008 BLAKE2B 2178a2c54c5bdb4a8f966a8681c509b73dc93ffc7c4a30b08ef59ea16d36b51d193d672749eaf2016d43d51b801cadc67c21ce13e6cb66de8418935a9fae55dc SHA512 75cdb0de9fc703a247c2e3a8a909bc0e7d97b70a09876f7de953955ac43c7e4ce34db3d99f0d273f799b3e6b076d60ce6366b68d9d0496db530dd82a401719b0 +DIST skladnik-24.08.0.tar.xz 409104 BLAKE2B 6073ccc25d3b915e6cb4e124b93ba8ec2bc40d36abc308b5626019c520516c859e3eea13d6f439ecdc52ea8fb8cf8b508501be7980297fd8763fdf0315b539f1 SHA512 d0bd4c4ab4c36a43f7d0fc2c637ec825882376726b921107e72abbadf56dc3817edb3c7649daadcfcc782ef9e7fbfbf6dd386fa5cf125d6efa3236a93b83ab06 diff --git a/games-puzzle/skladnik/skladnik-0.5.1.ebuild b/games-puzzle/skladnik/skladnik-0.5.1.ebuild deleted file mode 100644 index 32ac7b494dc5..000000000000 --- a/games-puzzle/skladnik/skladnik-0.5.1.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ECM_HANDBOOK="optional" -KFMIN=5.106.0 -QTMIN=5.15.9 -inherit ecm kde.org - -DESCRIPTION="The Japanese warehouse keeper sokoban game" -HOMEPAGE="https://invent.kde.org/games/skladnik" - -if [[ ${KDE_BUILD_TYPE} != live ]]; then - SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="GPL-2" -SLOT="0" - -RDEPEND=" - >=dev-qt/qtgui-${QTMIN}:5 - >=dev-qt/qtwidgets-${QTMIN}:5 - >=kde-apps/libkdegames-22.12.0:5 - >=kde-frameworks/kconfig-${KFMIN}:5 - >=kde-frameworks/kconfigwidgets-${KFMIN}:5 - >=kde-frameworks/kcoreaddons-${KFMIN}:5 - >=kde-frameworks/ki18n-${KFMIN}:5 - >=kde-frameworks/kio-${KFMIN}:5 - >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 - >=kde-frameworks/kxmlgui-${KFMIN}:5 -" -DEPEND="${RDEPEND}" -BDEPEND="media-gfx/povray" diff --git a/games-puzzle/skladnik/skladnik-24.05.2.ebuild b/games-puzzle/skladnik/skladnik-24.05.2.ebuild index de4d45466a46..669d4a361173 100644 --- a/games-puzzle/skladnik/skladnik-24.05.2.ebuild +++ b/games-puzzle/skladnik/skladnik-24.05.2.ebuild @@ -14,7 +14,7 @@ HOMEPAGE="https://apps.kde.org/skladnik/ https://invent.kde.org/games/skladnik" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" +KEYWORDS="amd64 arm64 ~riscv ~x86" RDEPEND=" >=dev-qt/qtbase-${QTMIN}:6[gui,widgets] diff --git a/games-puzzle/skladnik/skladnik-24.08.0.ebuild b/games-puzzle/skladnik/skladnik-24.08.0.ebuild new file mode 100644 index 000000000000..db53201cea58 --- /dev/null +++ b/games-puzzle/skladnik/skladnik-24.08.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="optional" +PVCUT=$(ver_cut 1-3) +KFMIN=6.5.0 +QTMIN=6.7.2 +inherit ecm gear.kde.org + +DESCRIPTION="The Japanese warehouse keeper sokoban game" +HOMEPAGE="https://apps.kde.org/skladnik/ https://invent.kde.org/games/skladnik" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-qt/qtbase-${QTMIN}:6[gui,widgets] + >=kde-apps/libkdegames-${PVCUT}:6 + >=kde-frameworks/kconfig-${KFMIN}:6 + >=kde-frameworks/kconfigwidgets-${KFMIN}:6 + >=kde-frameworks/kcoreaddons-${KFMIN}:6 + >=kde-frameworks/kcrash-${KFMIN}:6 + >=kde-frameworks/kdbusaddons-${KFMIN}:6 + >=kde-frameworks/ki18n-${KFMIN}:6 + >=kde-frameworks/kio-${KFMIN}:6 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 + >=kde-frameworks/kxmlgui-${KFMIN}:6 +" +DEPEND="${RDEPEND}" +BDEPEND="media-gfx/povray" diff --git a/games-puzzle/zaz/Manifest b/games-puzzle/zaz/Manifest deleted file mode 100644 index 23f64a5819d6..000000000000 --- a/games-puzzle/zaz/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST zaz-1.0.0.tar.bz2 25170073 BLAKE2B 6502b880a024dec356e7a1f8dfd29f7353d5de07e08a2de7480db32fec5af17adb9210e4f0b3c17f2b27a6977ae3647d7458d5d21dacff66c2085801fda45985 SHA512 8383732aefb1f83623af35c85fc90e0468ca15e2ffb5577d22a5a1b1c60154d3829c58c04bba675c49a7e4b4d14b6fec920c67c6a820a927d2ab5f80b5d694cb diff --git a/games-puzzle/zaz/files/zaz-1.0.0-build.patch b/games-puzzle/zaz/files/zaz-1.0.0-build.patch deleted file mode 100644 index bef2954bf088..000000000000 --- a/games-puzzle/zaz/files/zaz-1.0.0-build.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -ru zaz-0.7.0.orig/Makefile.am zaz-0.7.0/Makefile.am ---- zaz-0.7.0.orig/Makefile.am 2009-10-14 18:20:14.000000000 -0400 -+++ zaz-0.7.0/Makefile.am 2010-05-13 15:49:59.404464060 -0400 -@@ -2,15 +2,6 @@ - - SUBDIRS = po src data extra - --dist_doc_DATA = \ -- README\ -- COPYING\ -- AUTHORS\ -- ChangeLog\ -- INSTALL\ -- NEWS -- -- - EXTRA_DIST = config.rpath m4/ChangeLog\ - $(shared_data_DATA) \ - zaz.anjuta\ diff --git a/games-puzzle/zaz/metadata.xml b/games-puzzle/zaz/metadata.xml deleted file mode 100644 index ff599c6d98fb..000000000000 --- a/games-puzzle/zaz/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> - </maintainer> - <upstream> - <remote-id type="sourceforge">zaz</remote-id> - </upstream> -</pkgmetadata> diff --git a/games-puzzle/zaz/zaz-1.0.0-r2.ebuild b/games-puzzle/zaz/zaz-1.0.0-r2.ebuild deleted file mode 100644 index d029a94a7a34..000000000000 --- a/games-puzzle/zaz/zaz-1.0.0-r2.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools flag-o-matic xdg toolchain-funcs - -DESCRIPTION="A puzzle game where the player has to arrange balls in triplets" -HOMEPAGE="https://sourceforge.net/projects/zaz/" -SRC_URI="https://downloads.sourceforge.net/zaz/${P}.tar.bz2" - -LICENSE="GPL-3 GPL-3+ CC-BY-SA-3.0 OFL-1.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="nls" - -RDEPEND=" - virtual/opengl - virtual/glu - media-libs/libsdl[X,sound,video] - media-libs/sdl-image[jpeg,png] - media-libs/libvorbis - media-libs/libtheora - media-libs/ftgl - virtual/libintl -" -DEPEND="${RDEPEND} - virtual/pkgconfig - nls? ( sys-devel/gettext ) -" - -src_prepare() { - default - local x=/usr/share/gettext/po/Makefile.in.in - [[ -e $x ]] && cp -f $x po/ #336119 - - eapply "${FILESDIR}"/${P}-build.patch - eautoreconf -} - -src_configure() { - append-libs -lvorbis - append-cflags $($(tc-getPKG_CONFIG) sdl --cflags) - append-cxxflags $($(tc-getPKG_CONFIG) sdl --cflags) - econf \ - --with-applicationdir=/usr/share/applications \ - --with-icondir=/usr/share/pixmaps \ - --localedir=/usr/share/locale \ - $(use_enable nls) -} |