diff options
author | Sam James <sam@gentoo.org> | 2023-12-08 09:29:18 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-08 09:53:45 +0000 |
commit | fdb550a6130a0713058df31dcdea1b3e90b870d8 (patch) | |
tree | ad08e80196a0dff11c9df31985ec55935a8e3dac /dev-util/mk-configure | |
parent | net-dns/unbound: add 1.19.0 (diff) | |
download | gentoo-fdb550a6130a0713058df31dcdea1b3e90b870d8.tar.gz gentoo-fdb550a6130a0713058df31dcdea1b3e90b870d8.tar.bz2 gentoo-fdb550a6130a0713058df31dcdea1b3e90b870d8.zip |
dev-util/mk-configure: add 0.38.3
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/mk-configure')
-rw-r--r-- | dev-util/mk-configure/Manifest | 1 | ||||
-rw-r--r-- | dev-util/mk-configure/mk-configure-0.38.3.ebuild | 89 |
2 files changed, 90 insertions, 0 deletions
diff --git a/dev-util/mk-configure/Manifest b/dev-util/mk-configure/Manifest index 8fa5509703ba..f9e5c1c242b8 100644 --- a/dev-util/mk-configure/Manifest +++ b/dev-util/mk-configure/Manifest @@ -1 +1,2 @@ DIST mk-configure-0.38.2.tar.gz 359518 BLAKE2B 17b28686d8d4d81373d86e4f23f4f9540cb62338b31aabbf21072c6ebe364d12db3fad2da6e7c0a2a5a6af39db099960879794dd7c9cb014e0cedea211c2fa5e SHA512 dd6542c39b24513288e69c0b971aa3c602bc450a812f1758b26c7f6b0cb9864a1a1d8e04153fb79394a53f7be1a5990c4dcf090d56de8edc8a6a7580799cbe76 +DIST mk-configure-0.38.3.tar.gz 362541 BLAKE2B 6c071fbeef508bb35be9983d0c89d573b1f3b2753511361406776f245559f9c419199a90482f4979e20121084f683a6fd5b4dd38db3b3a3a71727a354a3470a0 SHA512 646cfe82f126299824bd1f2412ca66c75acfef9fd115d37dec23cb69072f9ed3801318de15aa957843d2f6a7a124b5bd411f06408f86aeaed1b58949ffb7ff5e diff --git a/dev-util/mk-configure/mk-configure-0.38.3.ebuild b/dev-util/mk-configure/mk-configure-0.38.3.ebuild new file mode 100644 index 000000000000..19efedbf8b86 --- /dev/null +++ b/dev-util/mk-configure/mk-configure-0.38.3.ebuild @@ -0,0 +1,89 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multiprocessing toolchain-funcs + +DESCRIPTION="Lightweight replacement for GNU autotools" +HOMEPAGE="https://sourceforge.net/projects/mk-configure/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.tar.gz" + +LICENSE="BSD BSD-2 GPL-2+ MIT" +SLOT="0" +KEYWORDS="~amd64" + +# TODO: investigate +RESTRICT="test" + +RDEPEND=" + || ( x11-misc/makedepend sys-devel/pmake ) + sys-devel/bmake +" +BDEPEND="${RDEPEND}" + +src_configure() { + local jobs="$(makeopts_jobs)" + unset MAKEOPTS + + export MAKEOPTS="-j${jobs}" + export MAKE=bmake +} + +src_compile() { + MAKEARGS=( + AR="$(tc-getAR)" + CC="$(tc-getCC)" + CXX="$(tc-getCXX)" + NM="$(tc-getNM)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + RANLIB="$(tc-getRANLIB)" + STRIP="$(tc-getSTRIP)" + #SIZE="$(tc-getSIZE)" + + # Don't use LD, use the compiler driver instead + LDCOMPILER=yes + + CFLAGS="${CFLAGS}" + CXXFLAGS="${CXXFLAGS}" + LDFLAGS="${LDFLAGS}" + + # Our toolchain already handles these + MKPIE=no + USE_SSP=no + USE_RELRO=no + USE_FORT=no + + # No -Werror + WARNERR=no + + INSTALL="${INSTALL:-${BROOT}/usr/bin/install}" + + # Don't calcify compiler settings in installed files + MKCOMPILERSETTINGS=force + + PREFIX="${EPREFIX}/usr" + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" + INFODIR="${EPREFIX}/usr/share/info" + LIBDIR="${EPREFIX}/usr/$(get_libdir)" + MANDIR="${EPREFIX}/usr/share/man" + + MKFILESDIR="${BROOT}/usr/share/mk-configure/mk" + BUILTINSDIR="${BROOT}/usr/share/mk-configure/builtins" + FEATURESDIR="${BROOT}/usr/share/mk-configure/feature" + ) + + emake cleandir-presentation "${MAKEARGS[@]}" + emake "${MAKEARGS[@]}" +} + +src_test() { + emake "${MAKEARGS[@]}" test +} + +src_install() { + emake "${MAKEARGS[@]}" DESTDIR="${ED}" install + + rm "${ED}"/usr/share/doc/${PF}/LICENSE || die +} |