diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-03 12:28:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-03 12:28:20 +0100 |
commit | 3f559ef486314f9b3b48d48eb303d6be68463af9 (patch) | |
tree | 3b70212f31ce4d000911c001ce13363d0909dfd1 /x11-libs/xbae | |
parent | 20b6ab983b55b022c6e4af317154089e18ad41cb (diff) |
gentoo auto-resync : 03:09:2024 - 12:28:20
Diffstat (limited to 'x11-libs/xbae')
-rw-r--r-- | x11-libs/xbae/Manifest | 6 | ||||
-rw-r--r-- | x11-libs/xbae/files/xbae-4.60.4-c99.patch | 24 | ||||
-rw-r--r-- | x11-libs/xbae/files/xbae-4.60.4-configure-c99.patch | 57 | ||||
-rw-r--r-- | x11-libs/xbae/files/xbae-4.60.4-modern-autotools.patch | 28 | ||||
-rw-r--r-- | x11-libs/xbae/xbae-4.60.4-r1.ebuild | 75 | ||||
-rw-r--r-- | x11-libs/xbae/xbae-4.60.4.ebuild | 2 |
6 files changed, 190 insertions, 2 deletions
diff --git a/x11-libs/xbae/Manifest b/x11-libs/xbae/Manifest index 341648c3971c..28d2aff0d3e1 100644 --- a/x11-libs/xbae/Manifest +++ b/x11-libs/xbae/Manifest @@ -1,6 +1,10 @@ AUX xbae-4.60.4-Makefile.in.patch 751 BLAKE2B cc40a6d58a1e6ae6c68f2dd989807fedac591c6e107dbda4d9876e93070142e2b8809db93efcf7866cc2adfb1df6e5ad39bb27575e260669606a5c882be13b37 SHA512 0fbbb49dd9dcb5571591ef214fc5318f8a4b09966a8cac6b94d17e1554747714d4aa79387fde970d0e83804397f5fe7e9988ec82164023ab3d2562397ba31308 +AUX xbae-4.60.4-c99.patch 616 BLAKE2B df43e5fb1917e29f00f7b9d69df7a0564bb25fb27cac23ebd78db24477281f451a2fa4d3a12bcc36b7d870c239e3447de6d0c7f3b77fcd47f0b10a98148b1964 SHA512 0dfd293552629076fe09d9dd41ff0b8992c3dc3d16df6501b4f568d2df67fa541c23febbd0c34fab9acb0a7bc93169f5d184ee479abb9b40417efe94b94d455b +AUX xbae-4.60.4-configure-c99.patch 1686 BLAKE2B beab19070e946eab6eb4e4887db7ec307171e930bda9506f81102e7ddc9637fadb3b6d1264abcd9c86bdcb9d7f9ad6b1424af974b1d30ac1662c88fda4d3a468 SHA512 8e82c59fbc6ee08896094aeef97f2ff29b35bc117299dd23128c19276c30186bbe8e1d4df14c77c12febbaf805cdb2da729bc1683fc2e4950bf01b352e0927c1 AUX xbae-4.60.4-lxmp.patch 364 BLAKE2B c7defbca432abd679c5afbab2e95de3270097617d7a52cf4c781d3d44e36887c18901a045d9ca36d107aa71343e7f1ce974ec0634062318a56c14351335e8425 SHA512 90a348e0f67b3954ce2c1965e4252ef5b1be9b0c6c232981219a79af5a705dcc09bada6e87b7a2ae25e9d9220130c1321af90d079843317cc82d8e2a11dd78fa +AUX xbae-4.60.4-modern-autotools.patch 1056 BLAKE2B 37dd68c32bb8a80f950b5279120c249b13bf9b246e803f7bb15f38597330f35741091ace012c634562b3453c058060c09025e8b864ff65014f6e795d5fdb4af6 SHA512 d9105973404546719ba83e117afbd8a50b22bc002d01ba95b923b6175687f2d353aba2c0f8d19e6f64ef68a4d6e1f907f089c8c2b83e7a23be6ea3a4f0fa564d AUX xbae-4.60.4-tmpl.patch 182 BLAKE2B fb68a556359b2825879567ad53e4fcdcb3f5d41198cc8f3bb7626e45251881b8b7e7ebc4f244c4df0973d21e62a797d38b7a429dc94ca84a97700a4f2f9055d8 SHA512 dc360679441f2c8a4642a8b12b624acc739e4e7bd4ccb931d385212e418291eaf8d05501a420cb0407ab953826cd477634938c1b3fb89b3aa5ea1fefa57a8a60 DIST xbae-4.60.4.tar.gz 1770938 BLAKE2B c9790dae438a4a35ca58274d96b3d4cdcf61191e3c8336e7df3df419a64a790bd010890f88082add21c304ec520ddec3545915c5babf267bd9ebb985b0acf0f4 SHA512 e9c2ea59ab598217a5d6a3df0b86ca9fa084c364116d9789334984a0ac83dec0d5b5e3fb643e067036fca10f13b175f6d5134325eb5041af614a4ed00745ba16 -EBUILD xbae-4.60.4.ebuild 1255 BLAKE2B 71f68f742942e25d060214a6be5635de45b9a623dd479fdcf00aaa3685f7592bf922bffe574fb6037a87476889c601891e6dce6cca48c04b6fa0758b6ab3bad5 SHA512 30f41835d24119ad1f4360fe194872f9edce80b3150edfc59df3b53a4660e70dc3ed82ffb4205f8d5b6749d1f7dc4b446906285692c896d709d3e44a85ad11a7 +EBUILD xbae-4.60.4-r1.ebuild 1494 BLAKE2B c9e0ea20460b8b8a2fe31f2eb21989a17f8e36f793a8be9a1ad3657ba3320e1a21ee2071298555b68d0f87ca20d56e815031f5c7b516d6b9a24b18100081d25a SHA512 b06570da805ab12dfda038821a546bb0e747041820666c26f90b60b9b51fc963a4eef4d595f4c241389391b271af601696a55d8a8a619b5d276c900252dfc99b +EBUILD xbae-4.60.4.ebuild 1256 BLAKE2B becb33b8efc523bcca8514d9e64b43959c62d27d7851c6185f9d4465d2ddd0b7a72f78ffba2b223407d256538ca86a64ed2892bafc161720e920630b8afa2ebe SHA512 c0eb82d72a639167720ca80e68809ac05805f81e5c3fe53812489a1cbf58b3595017eb8a73d601000f6070583b1e44064027db169cf9cb2f14188cb533f3f0dd MISC metadata.xml 966 BLAKE2B edf4afe356cada257f2c1421d8c3f647ed4ebd4f32e2537a75c681f91cd08edd8328e92eef088bd3e77a8b47c1390920a4cc43697ff34e5e5004d3947353caa1 SHA512 d605fc363f55d3a6db056d2d35b8481ea6c1e900fe3416e11a0295e5cc2a4ad4e63a2b04b027dc544d43d09e54b8d8bce1647f73283f82353f61247360a50d86 diff --git a/x11-libs/xbae/files/xbae-4.60.4-c99.patch b/x11-libs/xbae/files/xbae-4.60.4-c99.patch new file mode 100644 index 000000000000..8c50dad3030d --- /dev/null +++ b/x11-libs/xbae/files/xbae-4.60.4-c99.patch @@ -0,0 +1,24 @@ +From bbfc674fc85c874560c784bd8076be7c9b3b5f43 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz93@gmail.com> +Date: Sun, 1 Sep 2024 22:33:09 -0400 +Subject: [PATCH] c99 porting: fix UB from not including headers + +--- + examples/matrix/matrix.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/examples/matrix/matrix.c b/examples/matrix/matrix.c +index 1d3e1df..3fbecf6 100644 +--- a/examples/matrix/matrix.c ++++ b/examples/matrix/matrix.c +@@ -28,6 +28,7 @@ + #ifdef HAVE_CONFIG_H + #include <XbaeConfig.h> + #endif ++#include <stdio.h> + #include <stdlib.h> + #ifdef USE_EDITRES + #include <X11/Intrinsic.h> +-- +2.44.2 + diff --git a/x11-libs/xbae/files/xbae-4.60.4-configure-c99.patch b/x11-libs/xbae/files/xbae-4.60.4-configure-c99.patch new file mode 100644 index 000000000000..33f108d8d603 --- /dev/null +++ b/x11-libs/xbae/files/xbae-4.60.4-configure-c99.patch @@ -0,0 +1,57 @@ +https://sourceforge.net/p/xbae/patches/3/ + +diff --git a/acinclude.m4 b/acinclude.m4 +index 36b4569680ea8531..0bda82ef7480beaf 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -334,7 +334,7 @@ Display *display=NULL; + short major_version, minor_version; + Status rc; + rc=XpQueryVersion(display, &major_version, &minor_version); +-exit(0); ++return 0; + } + ], + lt_cv_libxp=yes, +diff --git a/configure b/configure +index f43d920c33b055ff..5e82cda106a450e8 100755 +--- a/configure ++++ b/configure +@@ -2937,7 +2937,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ +- '' \ ++ '#include <stdlib.h>' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ +@@ -4120,7 +4120,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ +- '' \ ++ '#include <stdlib.h>' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ +@@ -4477,8 +4477,8 @@ main () + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) +- exit(2); +- exit (0); ++ return 2; ++ return 0; + } + _ACEOF + rm -f conftest$ac_exeext +@@ -21418,7 +21418,7 @@ Display *display=NULL; + short major_version, minor_version; + Status rc; + rc=XpQueryVersion(display, &major_version, &minor_version); +-exit(0); ++return 0; + } + + ; diff --git a/x11-libs/xbae/files/xbae-4.60.4-modern-autotools.patch b/x11-libs/xbae/files/xbae-4.60.4-modern-autotools.patch new file mode 100644 index 000000000000..ac5ebaa0f8b6 --- /dev/null +++ b/x11-libs/xbae/files/xbae-4.60.4-modern-autotools.patch @@ -0,0 +1,28 @@ +From 165c0f9ae086373c5d1659eac1ae14baa2975145 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz93@gmail.com> +Date: Sun, 1 Sep 2024 22:09:04 -0400 +Subject: [PATCH] port to modern autotools + +When listing files to be installed, you cannot double-list them. Modern +autotools tries to install all of them in one `install` command, which +is incompatible with installing the same file twice. +--- + doc/images/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/images/Makefile.am b/doc/images/Makefile.am +index e6d91dd..79a8eb0 100644 +--- a/doc/images/Makefile.am ++++ b/doc/images/Makefile.am +@@ -34,7 +34,7 @@ image_DATA= \ + bg.png updated.png coverplus.png add.jpg \ + caption.png choice.png colors.jpg draw.png fifteen.jpg \ + input.png list.jpg matrix.jpg multifixed.jpg select-push.jpg \ +- mailbox.png bg.png pricing.jpg LDO.jpg risk.jpg \ ++ mailbox.png pricing.jpg LDO.jpg risk.jpg \ + organize.jpg xbasket.png xbum1-2.png xbill2-2.png capfloor1.png \ + capfloor3.png taam.png \ + grohtml-XbaeCaption1.png \ +-- +2.44.2 + diff --git a/x11-libs/xbae/xbae-4.60.4-r1.ebuild b/x11-libs/xbae/xbae-4.60.4-r1.ebuild new file mode 100644 index 000000000000..0cbb9bab5a3c --- /dev/null +++ b/x11-libs/xbae/xbae-4.60.4-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +AT_M4DIR=${S} + +inherit autotools + +DESCRIPTION="Motif-based widget to display a grid of cells as a spreadsheet" +HOMEPAGE="https://xbae.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" +# tests need X display +# and are interactive so virtualx will not help +RESTRICT="test" + +RDEPEND=" + x11-libs/motif:0 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-tmpl.patch + "${FILESDIR}"/${P}-lxmp.patch + "${FILESDIR}"/${P}-Makefile.in.patch + # https://sourceforge.net/p/xbae/patches/3/ + "${FILESDIR}"/${P}-configure-c99.patch + "${FILESDIR}"/${P}-modern-autotools.patch + "${FILESDIR}"/${P}-c99.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf --enable-production +} + +src_test() { + emake -C examples + emake -C examples/testall clean +} + +src_install() { + default + + insinto /usr/share/aclocal + doins ac_find_xbae.m4 + + if use examples; then + find examples -name '*akefile*' -delete || die + rm examples/{testall,extest} || die + dodoc -r examples + fi + if use doc; then + rm doc/{,images/}Makefile* || die + docinto html + dodoc -r doc/. + fi + + # no static archives + find "${D}" -name '*.la' -delete || die +} diff --git a/x11-libs/xbae/xbae-4.60.4.ebuild b/x11-libs/xbae/xbae-4.60.4.ebuild index 7d79a5fa59f3..69507033ee42 100644 --- a/x11-libs/xbae/xbae-4.60.4.ebuild +++ b/x11-libs/xbae/xbae-4.60.4.ebuild @@ -4,7 +4,7 @@ EAPI=7 DESCRIPTION="Motif-based widget to display a grid of cells as a spreadsheet" -HOMEPAGE="http://xbae.sourceforge.net/" +HOMEPAGE="https://xbae.sourceforge.net/" SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" LICENSE="BSD" |