mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
dev-util/rexxd: add new package
Signed-off-by: NRK <nrk@disroot.org>
This commit is contained in:
parent
33dc463227
commit
71801d19f8
1
dev-util/rexxd/Manifest
Normal file
1
dev-util/rexxd/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST rexxd-2025.02.17.c 81204 BLAKE2B 05347fc0d08a064ce80e200f561296bb351e7cba832ed6bafd173b73cf8334f7672c7f44027758ecfd636b519a48dd8971463e0e9816b3a3b2cb10e5f376887d SHA512 7d4f70436438d6d43930e17609ea4558ef826ba8cb1a8c598c3fc721a4649cdd8df59ac5da2d99c5354945bb7c3f02c7cb80aed0bd7fb3c6fbde4a1caf0eac57
|
7
dev-util/rexxd/metadata.xml
Normal file
7
dev-util/rexxd/metadata.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>nrk@disroot.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
37
dev-util/rexxd/rexxd-2025.02.17.ebuild
Normal file
37
dev-util/rexxd/rexxd-2025.02.17.ebuild
Normal file
@ -0,0 +1,37 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit edo flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Drop-in replacement for the original xxd"
|
||||
HOMEPAGE="https://github.com/skeeto/w64devkit/blob/master/src/rexxd.c"
|
||||
|
||||
COMMIT="b217f139b86096c7864fc50f727d0ce81e4831d0"
|
||||
SRC_URI="https://github.com/skeeto/w64devkit/raw/${COMMIT}/src/rexxd.c -> ${P}.c"
|
||||
S="${WORKDIR}"
|
||||
LICENSE="Unlicense"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_unpack() {
|
||||
cp "${DISTDIR}/${P}.c" rexxd.c || die "cp failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
append-cflags -D_FILE_OFFSET_BITS=64
|
||||
edo $(tc-getCC) ${CFLAGS} -o rexxd rexxd.c ${LDFLAGS}
|
||||
use test && edo $(tc-getCC) ${CFLAGS} -DTEST -o tests rexxd.c ${LDFLAGS}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin rexxd
|
||||
}
|
||||
|
||||
src_test() {
|
||||
edo ./tests
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user