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/mk-configure-0.38.3.ebuild | |
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/mk-configure-0.38.3.ebuild')
-rw-r--r-- | dev-util/mk-configure/mk-configure-0.38.3.ebuild | 89 |
1 files changed, 89 insertions, 0 deletions
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 +} |