summaryrefslogtreecommitdiff
path: root/dev-libs/argtable
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-09 23:42:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-09 23:42:15 +0100
commit12de738b83927a4b71c3ad067edbb6279d15b368 (patch)
tree87b2ef3927262a0aba7a923512909bdbadd71b8b /dev-libs/argtable
parent7b7a5ff63901698b7b993201e07bcaf8d0e5db2f (diff)
gentoo auto-resync : 09:05:2023 - 23:42:14
Diffstat (limited to 'dev-libs/argtable')
-rw-r--r--dev-libs/argtable/Manifest2
-rw-r--r--dev-libs/argtable/argtable-2.13-r4.ebuild49
-rw-r--r--dev-libs/argtable/files/argtable-2.13-Fix-undeclared-library-function.patch28
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/argtable/Manifest b/dev-libs/argtable/Manifest
index f4e722e31073..3c69d5886a29 100644
--- a/dev-libs/argtable/Manifest
+++ b/dev-libs/argtable/Manifest
@@ -1,4 +1,6 @@
AUX argtable-2.13-Fix-implicit-function-declaration.patch 400 BLAKE2B 1d6efef6be2889c66d62dab4891881e701fbce79e118e0699f8acf91c901d1d1dffbabf92f9fe1353be06cdf00176813b9dbb071da500c57fc1dfe4656d85079 SHA512 f360192676e4840db4502037425f5f5ce9dfd88ea2d852c6677027258e6ebe3007169e56d5aa9c9b1766281231cf809a4e10253beabe1c4981c22aa33e62515e
+AUX argtable-2.13-Fix-undeclared-library-function.patch 636 BLAKE2B 96d223ee64f057ea29506c6d2e7002e16ba4e691ae4cc4d32abc1d64ff22fda91b0e61879c78807930f65f957fa2bf1900a15232d146c495acb6ea5d4e16430a SHA512 7b02b1de15f98ab2f5c61697e6e5edf2cc3beca1a0c3cd014431622fe356ce4cbe400a5aeec75f5cf14c0baed7b49f1b6b0abf1ba6d05b27bf0c2db5b3c6b4b4
DIST argtable2-13.tar.gz 3326444 BLAKE2B 8c78d56c2e1a53747cf480808064cb006644db50a2cb38adddd71eff07d4d7f6e5467c54eec4e5cbb729a7f639927b2d3283c6995bde54134d7a85e39788b87c SHA512 3d8303f3ba529e3241d918c0127a16402ece951efb964d14a06a3a7d29a252812ad3c44e96da28798871e9923e73a2cfe7ebc84139c1397817d632cae25c4585
EBUILD argtable-2.13-r3.ebuild 1023 BLAKE2B d86b5003c912781a9b53e03bb5ebd50e22ecc596cec9a6fa12c80c74fc527c2f8dd0206bdbedac73e47324bc4734a8386ff8a16c71bb63be37fdd8b442795b4d SHA512 49479c97ada665f44f5ec586c9d72635774a971b02e065c7a59398b2b5111de2ed0fd12a89c90826c8470fbbbe23d04bfca01870da540b40e1973d2dea7d7c78
+EBUILD argtable-2.13-r4.ebuild 1092 BLAKE2B 9b40d94e200cad8856b35ff3be94255825c27e95447e8eca0f66a496fc3379e63dc5e56f45365425cda9ea3ad9fce3323e107f166b3eac64712494269b8867cb SHA512 993db603dee149c238f310ae9be866763a0f5dc95454f281b378d968d780a02468a4a8b94d3abb0b85b68cb812e29a820c3ea7813822ff544fcc2abcc8ba80e1
MISC metadata.xml 244 BLAKE2B fad63c2df07a5f9df8d76bdfefec496412e15b28921c5928e66d2ff1a4df11656d9b9a1e9e54eb35cbd69b7c46162236ca12bfb664540777bcfba27c04e5edd8 SHA512 fa47cca1b7f704deed476452a6d37d764d727f10039e8bfdfe62ce57b92e37ea2c39c1b2a26a97057ce14171f55e0076d8034e9520f13f481f29bf620863185d
diff --git a/dev-libs/argtable/argtable-2.13-r4.ebuild b/dev-libs/argtable/argtable-2.13-r4.ebuild
new file mode 100644
index 000000000000..f5b108d4161e
--- /dev/null
+++ b/dev-libs/argtable/argtable-2.13-r4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="$(ver_rs 1 '-')"
+MY_P=${PN}${MY_PV}
+
+DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss"
+HOMEPAGE="https://argtable.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="doc debug examples static-libs"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.13-Fix-implicit-function-declaration.patch
+ "${FILESDIR}"/${PN}-2.13-Fix-undeclared-library-function.patch
+)
+
+src_configure() {
+ econf \
+ $(use_enable debug) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ rm -rf "${ED}"/usr/share/doc/${PF}/
+
+ if use doc ; then
+ cd "${S}"/doc || die
+ dodoc *.pdf *.ps
+ docinto html
+ dodoc *.html *.gif
+ fi
+
+ if use examples ; then
+ cd "${S}"/example || die
+ docinto examples
+ dodoc Makefile *.[ch] README.txt
+ fi
+
+ find "${ED}" -name "*.la" -delete || die "failed to delete .la files"
+}
diff --git a/dev-libs/argtable/files/argtable-2.13-Fix-undeclared-library-function.patch b/dev-libs/argtable/files/argtable-2.13-Fix-undeclared-library-function.patch
new file mode 100644
index 000000000000..7f42d43727a5
--- /dev/null
+++ b/dev-libs/argtable/files/argtable-2.13-Fix-undeclared-library-function.patch
@@ -0,0 +1,28 @@
+From 519609d844f1e5bbf37407de8e43fa2d2be03262 Mon Sep 17 00:00:00 2001
+From: Brahmajit Das <brahmajit.xyz@gmail.com>
+Date: Sun, 7 May 2023 00:03:40 +0530
+Subject: [PATCH] Fix undeclared library function strcmp
+
+Bug: https://bugs.gentoo.org/885609
+--- a/tests/fntests.c
++++ b/tests/fntests.c
+@@ -1,5 +1,6 @@
+ #include "../src/argtable2.h"
+ #include <assert.h>
++#include <string.h>
+
+ /* for memory leak debugging */
+ #ifdef DMALLOC
+--- a/tests/test_file.c
++++ b/tests/test_file.c
+@@ -21,6 +21,7 @@ USA.
+
+ #include "../src/argtable2.h"
+ #include <stdlib.h>
++#include <string.h>
+
+ /* for memory leak debugging */
+ #ifdef DMALLOC
+--
+2.40.1
+