summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-07-16 21:16:15 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-07-17 03:58:47 -0400
commitf72978ac209056a369d95957908f8850bf0c12fe (patch)
tree82a214f2d78571a0216b8024bf7a4eb26a40d4ca /games-puzzle/picpuz/files
parentgames-puzzle/numptyphysics: drop 0.3.5 (diff)
downloadgentoo-f72978ac209056a369d95957908f8850bf0c12fe.tar.gz
gentoo-f72978ac209056a369d95957908f8850bf0c12fe.tar.bz2
gentoo-f72978ac209056a369d95957908f8850bf0c12fe.zip
games-puzzle/picpuz: EAPI 6->8, simplify patches, remove homepage
Much of zfuncs.cc is actually not used and doesn't need to be cared for. HOMEPAGE seems to be long gone with no replacement. Should also fix prefix. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-puzzle/picpuz/files')
-rw-r--r--games-puzzle/picpuz/files/picpuz-2.5-build.patch116
-rw-r--r--games-puzzle/picpuz/files/picpuz-2.5-docdir.patch7
-rw-r--r--games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch16
3 files changed, 7 insertions, 132 deletions
diff --git a/games-puzzle/picpuz/files/picpuz-2.5-build.patch b/games-puzzle/picpuz/files/picpuz-2.5-build.patch
deleted file mode 100644
index 6ca26e178bbf..000000000000
--- a/games-puzzle/picpuz/files/picpuz-2.5-build.patch
+++ /dev/null
@@ -1,116 +0,0 @@
-From: Julian Ospald <hasufell@gentoo.org>
-Date: Sat Jul 21 17:03:11 UTC 2012
-
---- a/Makefile
-+++ b/Makefile
-@@ -11,24 +11,26 @@
-
- # target install directories
- BINDIR = $(PREFIX)/bin
--SHAREDIR = $(PREFIX)/share/$(PROGRAM)
--ICONDIR = $(SHAREDIR)/icons
--LOCALESDIR = $(SHAREDIR)/locales
-+DATADIR = $(PREFIX)/share/$(PROGRAM)
-+ICONDIR = $(DATADIR)/icons
-+LOCALESDIR = $(DATADIR)/locales
- DOCDIR = $(PREFIX)/share/doc/$(PROGRAM)
- MANDIR = $(PREFIX)/share/man/man1
- MENUFILE = $(PREFIX)/share/applications/kornelix-$(PROGRAM).desktop
-
--CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-3.0`
-+CXXFLAGS += -c `${PKG_CONFIG} --cflags gtk+-3.0`
- LIBS = `pkg-config --libs gtk+-3.0`
-
- $(PROGRAM): $(PROGRAM).o zfuncs.o
-- $(CXX) $(LDFLAGS) $(PROGRAM).o zfuncs.o $(LIBS) -o $(PROGRAM)
-+ $(CXX) $(LDFLAGS) $(PROGRAM).o zfuncs.o $(LIBS) -o $(PROGRAM)
-
- $(PROGRAM).o: $(SOURCE)
-- $(CXX) $(CFLAGS) -o $(PROGRAM).o $(SOURCE)
-+ $(CXX) $(CXXFLAGS) -o $(PROGRAM).o $(SOURCE) \
-+ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\""
-
- zfuncs.o: zfuncs.cc
-- $(CXX) $(CFLAGS) zfuncs.cc -D PREFIX=\"$(PREFIX)\"
-+ $(CXX) $(CXXFLAGS) zfuncs.cc \
-+ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\"" -D "BINDIR=\"$(BINDIR)\""
-
- install: $(PROGRAM)
- mkdir -p $(DESTDIR)$(BINDIR)
-@@ -52,7 +54,7 @@
-
- uninstall:
- rm -f $(DESTDIR)$(BINDIR)/$(PROGRAM)
-- rm -R -f $(DESTDIR)$(SHAREDIR)
-+ rm -R -f $(DESTDIR)$(DATADIR)
- rm -R -f $(DESTDIR)$(DOCDIR)
- rm -f $(DESTDIR)$(MANDIR)/$(PROGRAM).1.gz
- xdg-desktop-menu uninstall $(DESTDIR)$(MENUFILE)
---- a/zfuncs.cc
-+++ b/zfuncs.cc
-@@ -3111,7 +3111,6 @@
- /prefix/share/appname/locales/ translations: appname-de.po etc.
- /home/user/.appname/ parameters etc. are copied here
-
-- zprefix install location has /bin and /share subtrees
- zdatadir installed data files .desktop, parameters, etc.
- zdocdir user documentation README, changelog, user guide
- zicondir icons icon files .png
-@@ -3123,7 +3122,7 @@
- namespace zfuncs
- {
- char zappname[20];
-- char zprefix[200], zdatadir[200], zdocdir[200]; // app directories
-+ char zdatadir[200], zdocdir[200]; // app directories
- char zicondir[200], zlocalesdir[200], zuserdir[200];
- char zlang[8] = "en"; // "lc" or "lc_RC"
- char JPGquality[4] = "85"; // JPG file save quality
-@@ -3132,7 +3131,6 @@
- pthread_t tid_main = 0; // main thread ID v.4.8
- }
-
--cchar * get_zprefix() { return zfuncs::zprefix; } // /usr or /home/<userid>
- cchar * get_zuserdir() { return zfuncs::zuserdir; } // /home/user/.appname
- cchar * get_zdatadir() { return zfuncs::zdatadir; } // parameters, icons
- cchar * get_zdocdir() { return zfuncs::zdocdir; } // documentation files
-@@ -3156,19 +3154,15 @@
-
- catch_signals(); // catch segfault, do backtrace
-
-- strcpy(zappname,appname); // save app name
--
-- #ifndef PREFIX // install location v.4.7
-- #define PREFIX "/usr"
-- #endif
--
-- strncpy0(work,PREFIX,199); // /usr or /home/<userid> v.4.6
-- strcpy(zprefix,work); // /prefix
-- strncatv(zdatadir,199,work,"/share/",zappname,"/data",null); // /prefix/share/appname/data
-- strncatv(zicondir,199,work,"/share/",zappname,"/icons",null); // /prefix/share/appname/icons
-- strncatv(zlocalesdir,199,work,"/share/",zappname,"/locales",null); // /prefix/share/appname/locales
-- strncatv(zdocdir,199,work,"/share/doc/",zappname,null); // /prefix/share/doc/appname
--
-+ strcpy(zappname,appname);
-+
-+ strcpy(zdatadir,DATADIR); // macros from build script
-+ strcpy(zdocdir,DOCDIR);
-+ strcpy(zicondir,zdatadir);
-+ strcat(zicondir,"/icons");
-+ strcpy(zlocalesdir,zdatadir);
-+ strcat(zlocalesdir,"/locales");
-+
- snprintf(zuserdir,199,"%s/.%s",getenv("HOME"),zappname); // /home/user/.appname/ v.4.3
- err = stat(zuserdir,&statdat); // does it exist already?
- if (err) {
-@@ -3366,9 +3360,9 @@
- fputs(work,fid);
- fputs("Type=Application\n",fid); // Type=Application
- fputs("Terminal=false\n",fid); // Terminal=false
-- snprintf(work,199,"Exec=%s/bin/%s\n",zprefix,command); // Exec=/usr/bin/appname -options
-+ snprintf(work,199,"Exec=%s/%s\n",BINDIR,zappname); // Exec=/usr/bin/appname -options
- fputs(work,fid);
-- snprintf(work,199,"Icon=%s/%s.png\n",zicondir,appname); // Icon=/usr/share/appname/icons/appname.png
-+ snprintf(work,199,"Icon=%s/icons/%s.png\n",DATADIR,zappname); // Icon=/usr/share/appname/icons/appname.png
- fputs(work,fid);
- fclose(fid);
-
diff --git a/games-puzzle/picpuz/files/picpuz-2.5-docdir.patch b/games-puzzle/picpuz/files/picpuz-2.5-docdir.patch
new file mode 100644
index 000000000000..d627d826e56e
--- /dev/null
+++ b/games-puzzle/picpuz/files/picpuz-2.5-docdir.patch
@@ -0,0 +1,7 @@
+Simplify opening the html guide with right path.
+--- a/zfuncs.cc
++++ b/zfuncs.cc
+@@ -3222,2 +3222,3 @@
+ using namespace zfuncs;
++ showz_html("file://" PREFIX "/share/doc/" DOCDIR "/html/userguide-en.html"); return;
+
diff --git a/games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch b/games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch
deleted file mode 100644
index f11f95cbf72b..000000000000
--- a/games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Fix underlinking on recent binutils:
-
-> x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu picpuz.o zfuncs.o `pkg-config --libs gtk+-3.0` -o picpuz
-> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: zfuncs.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
-> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
---- a/Makefile
-+++ b/Makefile
-@@ -19,7 +19,7 @@ MANDIR = $(PREFIX)/share/man/man1
- MENUFILE = $(PREFIX)/share/applications/kornelix-$(PROGRAM).desktop
-
- CXXFLAGS += -c `${PKG_CONFIG} --cflags gtk+-3.0`
--LIBS = `pkg-config --libs gtk+-3.0`
-+LIBS = -pthread `${PKG_CONFIG} --libs gtk+-3.0`
-
- $(PROGRAM): $(PROGRAM).o zfuncs.o
- $(CXX) $(LDFLAGS) $(PROGRAM).o zfuncs.o $(LIBS) -o $(PROGRAM)