diff options
author | Sam James <sam@gentoo.org> | 2023-10-09 01:10:14 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-09 01:22:31 +0100 |
commit | 55d92b20aecd573ffce0cd5b280028b2abb6c23b (patch) | |
tree | 521d8c38798eb16afe2120998bf7efd0be588604 /dev-util/mk-configure | |
parent | games-server/bedrock-server: add 1.20.32.03, drop 1.20.31.01 (diff) | |
download | gentoo-55d92b20aecd573ffce0cd5b280028b2abb6c23b.tar.gz gentoo-55d92b20aecd573ffce0cd5b280028b2abb6c23b.tar.bz2 gentoo-55d92b20aecd573ffce0cd5b280028b2abb6c23b.zip |
dev-util/mk-configure: new package, add 0.38.2
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/metadata.xml | 12 | ||||
-rw-r--r-- | dev-util/mk-configure/mk-configure-0.38.2.ebuild | 86 |
3 files changed, 99 insertions, 0 deletions
diff --git a/dev-util/mk-configure/Manifest b/dev-util/mk-configure/Manifest new file mode 100644 index 000000000000..8fa5509703ba --- /dev/null +++ b/dev-util/mk-configure/Manifest @@ -0,0 +1 @@ +DIST mk-configure-0.38.2.tar.gz 359518 BLAKE2B 17b28686d8d4d81373d86e4f23f4f9540cb62338b31aabbf21072c6ebe364d12db3fad2da6e7c0a2a5a6af39db099960879794dd7c9cb014e0cedea211c2fa5e SHA512 dd6542c39b24513288e69c0b971aa3c602bc450a812f1758b26c7f6b0cb9864a1a1d8e04153fb79394a53f7be1a5990c4dcf090d56de8edc8a6a7580799cbe76 diff --git a/dev-util/mk-configure/metadata.xml b/dev-util/mk-configure/metadata.xml new file mode 100644 index 000000000000..86f0ce768089 --- /dev/null +++ b/dev-util/mk-configure/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">mk-configure</remote-id> + <remote-id type="github">cheusov/mk-configure</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/mk-configure/mk-configure-0.38.2.ebuild b/dev-util/mk-configure/mk-configure-0.38.2.ebuild new file mode 100644 index 000000000000..4d430f0054ce --- /dev/null +++ b/dev-util/mk-configure/mk-configure-0.38.2.ebuild @@ -0,0 +1,86 @@ +# 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="sys-devel/bmake" +BDEPEND="sys-devel/bmake" + +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=yes + + 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 +} |