diff options
author | 2022-10-11 06:29:12 -0400 | |
---|---|---|
committer | 2022-10-11 06:39:35 -0400 | |
commit | 536705035512808ac19addaf703e23bb55adfc71 (patch) | |
tree | 3d7d452c2f120c2b5b6be971e92e5dcd63aaf01a /dev-util/cutils/cutils-1.6-r5.ebuild | |
parent | sys-devel/clang: Remove unnecessary LLVM_EXTERNAL_LIT hack (diff) | |
download | gentoo-536705035512808ac19addaf703e23bb55adfc71.tar.gz gentoo-536705035512808ac19addaf703e23bb55adfc71.tar.bz2 gentoo-536705035512808ac19addaf703e23bb55adfc71.zip |
dev-util/cutils: EAPI7->8, fix direct AR and build w/ clang16
Closes: https://bugs.gentoo.org/724270
Closes: https://bugs.gentoo.org/871402
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-util/cutils/cutils-1.6-r5.ebuild')
-rw-r--r-- | dev-util/cutils/cutils-1.6-r5.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/cutils/cutils-1.6-r5.ebuild b/dev-util/cutils/cutils-1.6-r5.ebuild new file mode 100644 index 000000000000..8f45dcfd811b --- /dev/null +++ b/dev-util/cutils/cutils-1.6-r5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="C language utilities" +HOMEPAGE="http://www.sigala.it/sandro/software.php#cutils" +SRC_URI="http://www.sigala.it/sandro/files/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" + +BDEPEND=" + sys-devel/flex + virtual/yacc" + +PATCHES=( + "${FILESDIR}"/${PN}-infopage.patch + "${FILESDIR}"/${P}-case-insensitive.patch + "${FILESDIR}"/${P}-ar.patch + "${FILESDIR}"/${P}-clang16.patch +) + +src_prepare() { + default + + mv src/cdecl/{,cutils-}cdecl.1 || die + + # delete pointless README + rm README.compile || die + + # Force rebuild of cutils.info + rm doc/cutils.info || die + + sed -e "s/cdecl/cutils-cdecl/g" \ + -i doc/cutils.texi || die + sed -e "/PROG/s/cdecl/cutils-cdecl/" \ + -i src/cdecl/Makefile.in || die + sed -e "/Xr/s/cdecl/cutils-cdecl/" \ + -i src/cundecl/cundecl.1 || die + sed -e "/Nm/s/cdecl/cutils-cdecl/" \ + -i src/cdecl/cutils-cdecl.1 || die + + eautoreconf #871402 +} + +src_compile() { + tc-export AR #724270 + + emake -j1 +} + +src_install() { + default + dodoc HISTORY +} + +pkg_postinst() { + elog "cdecl was installed as cutils-cdecl because of a naming conflict" + elog "with dev-util/cdecl." +} |