From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- dev-util/kbuild/kbuild-9999.ebuild | 61 ++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 19 deletions(-) (limited to 'dev-util/kbuild/kbuild-9999.ebuild') diff --git a/dev-util/kbuild/kbuild-9999.ebuild b/dev-util/kbuild/kbuild-9999.ebuild index ac794242d86c..eeb654f1bb8a 100644 --- a/dev-util/kbuild/kbuild-9999.ebuild +++ b/dev-util/kbuild/kbuild-9999.ebuild @@ -1,24 +1,45 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit autotools subversion +inherit autotools toolchain-funcs DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks" HOMEPAGE="http://svn.netlabs.org/kbuild/wiki" -ESVN_REPO_URI="http://svn.netlabs.org/repos/kbuild/trunk" - -LICENSE="GPL-3" +if [[ "${PV}" == *9999 ]] ; then + inherit subversion + ESVN_REPO_URI="http://svn.netlabs.org/repos/kbuild/trunk" +else + MY_P="${P}-src" + #SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz" + SRC_URI="https://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz" + KEYWORDS="~amd64 ~x86" +fi +LICENSE="GPL-3+" SLOT="0" -KEYWORDS="" IUSE="" -DEPEND="sys-devel/gettext - virtual/yacc" +# We cannot depend on virtual/yacc until bug #734354 has been fixed +DEPEND=" + sys-apps/texinfo + sys-devel/flex + sys-devel/gettext + || ( + dev-util/byacc + dev-util/yacc + SvnInfo.kmk || die + fi cd "${S}/src/kmk" || die eautoreconf cd "${S}/src/sed" || die eautoreconf + + sed -e "s@_LDFLAGS\.$(tc-arch)*.*=@& ${LDFLAGS}@g" \ + -i "${S}"/Config.kmk || die #332225 + tc-export CC PKG_CONFIG RANLIB #AR does not work here } src_compile() { kBuild/env.sh --full \ - emake -f bootstrap.gmk AUTORECONF=true \ + emake -f bootstrap.gmk AUTORECONF=true AR="$(tc-getAR)" \ || die "bootstrap failed" } src_install() { - kBuild/env.sh kmk \ - NIX_INSTALL_DIR=/usr \ - PATH_INS="${D}" \ - install \ + kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="${D}" install \ || die "install failed" } -- cgit v1.2.3