summaryrefslogtreecommitdiff
path: root/app-arch/zoo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-11 17:14:47 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-11 17:14:47 +0000
commit25e5a6599437664a3eff8d9f8a966adc896e09e8 (patch)
tree67ef90a99446e1fee47c4ebb4c8c3a8175b41913 /app-arch/zoo
parent24b2471760a35870c85ca752666bcb66120289af (diff)
gentoo auto-resync : 11:12:2023 - 17:14:47
Diffstat (limited to 'app-arch/zoo')
-rw-r--r--app-arch/zoo/Manifest2
-rw-r--r--app-arch/zoo/files/zoo-2.10-implicit-int.patch75
-rw-r--r--app-arch/zoo/zoo-2.10-r6.ebuild36
3 files changed, 113 insertions, 0 deletions
diff --git a/app-arch/zoo/Manifest b/app-arch/zoo/Manifest
index 91fe196bee3b..03a0d67bf19c 100644
--- a/app-arch/zoo/Manifest
+++ b/app-arch/zoo/Manifest
@@ -1,6 +1,8 @@
AUX zoo-2.10-gentoo-fbsd-r1.patch 634 BLAKE2B 79740ca1ca60733d67d2d614673bf4e62f5ff3d5bc740cb00658a806006d884a3ebc551863b1f537bc6d9edc55e4f43b3154ba1c9e0551af315db6b850bd49cb SHA512 c34169a11640a1852a284a93415e0cb5e3423cb2ca0a0413a8fb6cc8896c990ff5f6eebdec965f2efd4b3cfcf823e839908f8588705d2fa827e09558bc87e49c
+AUX zoo-2.10-implicit-int.patch 2304 BLAKE2B d591c200e64163565c434b47c55ad7227434e8f07273cf010e61b051aa7f374c6f1f0663fe2d9df776769e4dc258fd6f05990b25d88b950918a137a30bb191d4 SHA512 3c1ce7f8140d374264e9f9a98c6b9c3b3597d842d63e1860857a896052c7326a01c975bb25bf96dc968d49bdc58dd548e3bfa68141dcd744507f4200d461338a
AUX zoo-2.10-makefile.patch 774 BLAKE2B 07ead9b6957163358b76b9f7b9e1497543e66e0d1462fd9cb306ca385d724f95ccc52682950f2d30e6c592132e8d55a45de501ab1f7e8cde9622fa8c297b6cda SHA512 b3d78a86c4808cd561d819bc061175107e983c5693581890704928c1726effe2adcf187ad10457296a9106b26b2b2aaed4e0fe7d319aa732de7d12d614f081e7
DIST zoo_2.10-28.debian.tar.xz 14984 BLAKE2B e45ed5381e64d7ccac0e8100df12a8f55abbf7961e54a05ad6d3f07cca1a939f9320caa69196895a35dbea5d4aa82975ee2e5fb2202f793f33f4ebd7d5ff65e8 SHA512 07fdb16bf011ae8c8badbb0040ebd82777f11560dc231b70060fe8f71ba706707769934411043197e44b10ad38d7efd8432fdbea03e265f9f6aa58acb1cc2708
DIST zoo_2.10.orig.tar.gz 172629 BLAKE2B 9789f0ca53b2dd538e0032c31fa945f3f4f0fc739cadf536ec38621824cc89409d9def036e5df893a7cd4c5873302273d638c087a51cf7b1477501567c6578b5 SHA512 1847fd6a6aac534386736ca04fa5a88db26c7c06315a0ea2c8e86ff944a133b7506c297cda67e44f797d9ef39446c132e847714732b9f138bf9b46c1525e574f
EBUILD zoo-2.10-r5.ebuild 791 BLAKE2B ee0a2f90ce0a8fa86007c32ee412d04d4f98777ed82efcebd3787159125beb3d8bce58d35d94fc11ed09b6ed08960e4ffd6fd601f1b98228d71d27b03792cd6d SHA512 109aa14d5f940f50022d842e8b0303bdcc1c0d551e4f11e03ab24676992392b4c95002c4215d5782bc0107b5d7f5352967a055a93eeaeecc2bd8f7bb1b17b81f
+EBUILD zoo-2.10-r6.ebuild 827 BLAKE2B 4232c5b41cf9d629d7756ae7634c3ce230f2969371e592e16a2e15a8df577cf9205813655d208a86b5a5a19d1599ea54f28c6bfb427653b394b80a2e5d3bf31f SHA512 84808801e7c366672d2138201e9a44a5a37c4e9878f051d5f4414ece8ed968bcbc202fb9ca9436da855045bd2d72fffb66101c3ca4061fd64c9758f1f1370859
MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
diff --git a/app-arch/zoo/files/zoo-2.10-implicit-int.patch b/app-arch/zoo/files/zoo-2.10-implicit-int.patch
new file mode 100644
index 000000000000..e29f3dff8f1f
--- /dev/null
+++ b/app-arch/zoo/files/zoo-2.10-implicit-int.patch
@@ -0,0 +1,75 @@
+Clang 16 will not allow implicit int function defitions by default.
+This patch gives all functions a proper definitons.
+
+See also: https://wiki.gentoo.org/wiki/Modern_C_porting
+
+Bug: https://bugs.gentoo.org/878611
+Upstream PR: https://github.com/jduerstock/zoo/pull/1
+
+--- a/fiz.c
++++ b/fiz.c
+@@ -24,6 +24,7 @@ file by supplying the offset of the file.
+ void prtctrl ();
+ void prtch ();
+
++int
+ main(argc,argv)
+ register int argc;
+ register char **argv;
+--- a/mstime.i
++++ b/mstime.i
+@@ -12,6 +12,7 @@ static char mstimeid[]="@(#) mstime.i 2.2 88/01/24 12:47:58";
+ Function mstime() converts time in seconds since January 1 of BASEYEAR
+ to MS-DOS format date and time.
+ */
++void
+ mstime(longtime, date, time)
+ long longtime; /* input: seconds since Jan 1, BASEYEAR */
+ int *date, *time; /* output: MS-DOS format date and time */
+--- a/zoo.c
++++ b/zoo.c
+@@ -44,6 +44,7 @@ int next_arg = FIRST_ARG; /* filenames start at this position */
+ int arg_count; /* count of arguments supplied to program */
+ char **arg_vector; /* vector of arguments supplied to program */
+
++int
+ main(argc,argv)
+ register int argc;
+ register char **argv;
+--- a/zoofilt.c
++++ b/zoofilt.c
+@@ -41,8 +41,10 @@ char *option;
+ unsigned int filetag; /* tag stored in input */
+ int stat1, stat2, stat3; /* status codes */
+ int use_lzh = 0; /* use lzh instead */
+- extern lzc(), lzh_encode(); /* possible encoders */
+- extern lzd(), lzh_decode(); /* and decoders */
++ extern int lzc(); /* possible encoders */
++ extern int lzh_encode();
++ extern int lzd(); /* and decoders */
++ extern int lzh_decode();
+
+ while (*++option) {
+ switch (*option) {
+--- a/nixtime.i
++++ b/nixtime.i
+@@ -20,7 +20,7 @@
+ Function gettime() gets the date and time of the file handle supplied.
+ Date and time is in MSDOS format.
+ */
+-int gettime (file, date, time)
++void gettime (file, date, time)
+ ZOOFILE file;
+ unsigned *date, *time;
+ {
+--- a/zoofns.h
++++ b/zoofns.h
+@@ -46,7 +46,7 @@
+ int exists PARMS ((char *));
+ int getfile PARMS ((ZOOFILE, ZOOFILE, long, int));
+ int getutime PARMS ((char *, unsigned *, unsigned *));
+-int gettime PARMS ((ZOOFILE, unsigned *, unsigned *));
++void gettime PARMS ((ZOOFILE, unsigned *, unsigned *));
+ T_SIGNAL handle_break PARMS ((int));
+
+ #ifdef USE_ASCII
diff --git a/app-arch/zoo/zoo-2.10-r6.ebuild b/app-arch/zoo/zoo-2.10-r6.ebuild
new file mode 100644
index 000000000000..af94cc9c6c89
--- /dev/null
+++ b/app-arch/zoo/zoo-2.10-r6.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Manipulate archives of files in compressed form"
+HOMEPAGE="https://github.com/jduerstock/zoo"
+SRC_URI="http://http.debian.net/debian/pool/main/z/${PN}/${PN}_${PV}.orig.tar.gz
+ http://http.debian.net/debian/pool/main/z/${PN}/${PN}_${PV}-28.debian.tar.xz"
+S="${WORKDIR}"/${P}.orig
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+PATCHES=(
+ "${WORKDIR}"/debian/patches/.
+ "${FILESDIR}"/${P}-gentoo-fbsd-r1.patch
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-implicit-int.patch
+)
+
+src_configure() {
+ tc-export CC
+}
+
+src_compile() {
+ emake linux
+}
+
+src_install() {
+ dobin zoo fiz
+ doman zoo.1 fiz.1
+}