app-arch/afio: add 2.5.2

Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>

Closes: https://bugs.gentoo.org/708486
Closes: https://github.com/gentoo/gentoo/pull/36966
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2024-06-02 11:07:45 +02:00
committed by Conrad Kostecki
parent bd74883359
commit b7e1208ee7
3 changed files with 62 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST afio-2.5.1.tgz 191765 BLAKE2B 48a590c1180942444eb8fc17701563ee822cad9d0ae423e12996e7b3dff16ab7ba13d8041b78fb6415d1a422d14be8ba3443910ae1a57290dca801334ced7ffe SHA512 afa4e01cc9e7da5bff7c96d2da9a41c296e7b89c50484f58a8b011173a99a144a9e77d3ee8136622e490287b99a7ae76c6eba901a2186b5a3a6bab164a37c864
DIST afio-2.5.2.tar.gz 194030 BLAKE2B 7c46162cf8648b9b6c32003032a820a847e4887bb852a49ee878dc3501bad673650f7b64c465c4cea58b4cfd4de74884f903211f298ef94b91d3738f7de29316 SHA512 e0fb9b2d31bb912d7f30d8dd992cffcc99a84424c7386082abb8da82a1911b852c5a80e8135f0b6266113519f582dba45dc3c87c8f3b822a2daa14a1ae1d9944

View File

@@ -0,0 +1,35 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="CPIO-Archiver & backup program with fault tolerant compression"
HOMEPAGE="https://github.com/kholtman/afio"
SRC_URI="https://github.com/kholtman/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="Artistic LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
PATCHES=(
"${FILESDIR}"/${PN}-2.5.2-fix-build-system.patch
)
src_configure() {
tc-export CC
}
src_install() {
dobin "${PN}"
doman "${PN}.1"
dodoc ANNOUNCE-* HISTORY README SCRIPTS
local i
for i in {1..4}; do
docinto "script${i}"
dodoc -r "script${i}"/.
done
}

View File

@@ -0,0 +1,26 @@
--- a/Makefile
+++ b/Makefile
@@ -74,19 +74,14 @@
#code can be reviewed manually
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations
-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW)
-
-CC=gcc
-
# also using contents of usin CPPFLAGS, CFLAGS, LDFLAGS out of environment
# variables, if they exist
-CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $(e2) $f $g $I
-LDFLAGS +=
-CPPFLAGS +=
+CC ?= gcc
+CFLAGS += -Wall -Wstrict-prototypes
+CPPFLAGS += ${LARGEFILEFLAGS} ${2} ${3} ${6} ${8} ${c} ${d} ${e2} ${f} ${g}
afio : afio.o compfile.o exten.o match.o $M
- $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
- afio.o compfile.o exten.o match.o $M -o afio
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
clean:
rm -f *.o afio