summaryrefslogtreecommitdiff
path: root/system/argp-standalone
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-11-21 14:03:34 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-11-29 05:22:47 -0600
commite9634624744109ff3ae8228d8a87ce3c31a9a121 (patch)
tree444c999e7f9e994194bce8fb486910fd5b6904ec /system/argp-standalone
parent88e399e2e647db0405caf35791a9301368eb3d7f (diff)
downloadpackages-e9634624744109ff3ae8228d8a87ce3c31a9a121.tar.gz
packages-e9634624744109ff3ae8228d8a87ce3c31a9a121.tar.bz2
packages-e9634624744109ff3ae8228d8a87ce3c31a9a121.tar.xz
packages-e9634624744109ff3ae8228d8a87ce3c31a9a121.zip
user/argp-standalone: Promote to system/
* Needed for elfutils. * Change upstream to more-maintained version.
Diffstat (limited to 'system/argp-standalone')
-rw-r--r--system/argp-standalone/APKBUILD42
-rw-r--r--system/argp-standalone/libtool.patch84
2 files changed, 126 insertions, 0 deletions
diff --git a/system/argp-standalone/APKBUILD b/system/argp-standalone/APKBUILD
new file mode 100644
index 000000000..b1f2c8cc3
--- /dev/null
+++ b/system/argp-standalone/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=argp-standalone
+pkgver=1.4.1
+pkgrel=0
+pkgdesc="Hierarchial argument parsing library broken out from glibc"
+url=" "
+arch="all"
+license="LGPL-2.1+ AND Public-Domain"
+depends=""
+makedepends="libtool automake autoconf"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ericonr/$pkgname/archive/refs/tags/$pkgver.tar.gz
+ libtool.patch
+ "
+
+prepare() {
+ default_prepare
+ autoreconf -vif
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c5f07e88434589a13a2e88e66d1142b581f19aa82da28507f3c31ea782e080a13a4504d8108c003b5d3c8a3aa20f52ea5e81f337c11a4b1342b16361d4877c1c argp-standalone-1.4.1.tar.gz
+6349f99adc4400672a63a05d77a18ea50702673495276ab703ac6d2531a20c958714a5be273a4ed1b44d2e6e7d777f9f7abe4413b7064b5219c891531831242c libtool.patch"
diff --git a/system/argp-standalone/libtool.patch b/system/argp-standalone/libtool.patch
new file mode 100644
index 000000000..53835ac87
--- /dev/null
+++ b/system/argp-standalone/libtool.patch
@@ -0,0 +1,84 @@
+From c5c25dcfcba5bdf099ed95ffc203a096d39ea6c2 Mon Sep 17 00:00:00 2001
+From: Laurent Bercot <ska-skaware@skarnet.org>
+Date: Fri, 13 Sep 2024 17:13:55 +0000
+Subject: [PATCH] Add libtool (for shared lib support) and install targets
+
+---
+ Makefile.am | 13 ++++++++-----
+ configure.ac | 6 +++++-
+ testsuite/Makefile.am | 2 +-
+ 3 files changed, 14 insertions(+), 7 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 5b58d46..3a59ddd 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -23,18 +23,21 @@ SUBDIRS = . testsuite
+
+ LIBOBJS = @LIBOBJS@
+
+-noinst_LIBRARIES = libargp.a
+ noinst_PROGRAMS = argp-test
+-noinst_HEADERS = argp.h argp-fmtstream.h argp-namefrob.h # argp-comp.h
++noinst_HEADERS = argp-fmtstream.h argp-namefrob.h # argp-comp.h
+
+ EXTRA_DIST = mempcpy.c strchrnul.c strndup.c Versions
+
++ACLOCAL_AMFLAGS = -I m4
++lib_LTLIBRARIES = libargp.la
+ # Leaves out argp-fs-xinl.c and argp-xinl.c
+-libargp_a_SOURCES = argp-ba.c argp-eexst.c argp-fmtstream.c \
++libargp_la_SOURCES = argp-ba.c argp-eexst.c argp-fmtstream.c \
+ argp-help.c argp-parse.c argp-pv.c \
+ argp-pvh.c
++libargp_la_HEADERS = argp.h
++libargp_ladir = $(includedir)
+
+-libargp_a_LIBADD = $(LIBOBJS)
++libargp_la_LIBADD = $(LIBOBJS)
+
+-argp_test_LDADD = libargp.a
++argp_test_LDADD = libargp.la
+
+diff --git a/configure.ac b/configure.ac
+index 386215d..345f6fc 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
+ dnl This configure.ac is only for building a standalone argp library.
+ AC_PREREQ(2.54)
+ AC_INIT(argp-ba.c)
+-AM_INIT_AUTOMAKE(argp, standalone-1.4.0)
++AM_INIT_AUTOMAKE(argp, standalone-1.4.1)
+ AM_CONFIG_HEADER(config.h)
+
+ # GNU libc defaults to supplying the ISO C library functions only. The
+@@ -18,6 +18,8 @@ AC_PROG_MAKE_SET
+ AC_PROG_RANLIB
+ AM_PROG_CC_STDC
+
++LT_INIT
++
+ if test "x$am_cv_prog_cc_stdc" = xno ; then
+ AC_ERROR([the C compiler doesn't handle ANSI-C])
+ fi
+@@ -93,4 +95,6 @@ fi
+
+ CPPFLAGS="$CPPFLAGS -I$srcdir"
+
++PKG_INSTALLDIR
++
+ AC_OUTPUT(Makefile testsuite/Makefile)
+diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
+index 9993541..0e34120 100644
+--- a/testsuite/Makefile.am
++++ b/testsuite/Makefile.am
+@@ -5,7 +5,7 @@ TS_ALL = $(TS_PROGS) $(TS_SH)
+
+ noinst_PROGRAMS = $(TS_PROGS) ex1 ex3 ex4
+
+-LDADD = ../libargp.a
++LDADD = ../libargp.la
+
+ EXTRA_DIST = $(TS_SH) run-tests
+ CLEANFILES = test.out