1 |
|
# Copyright 1999-2023 Gentoo Authors
|
|
1 |
# Copyright 1999-2022 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
... | ... | |
7 |
7 |
|
8 |
8 |
DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
|
9 |
9 |
HOMEPAGE="https://trac.netlabs.org/kbuild/wiki"
|
10 |
|
SRC_URI="
|
11 |
|
https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${P}-src.tar.xz
|
12 |
|
https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${PN}-0.1.9998.3499-fix-clang-16.patch.bz2
|
13 |
|
"
|
14 |
|
|
|
10 |
if [[ "${PV}" == *9999 ]] ; then
|
|
11 |
inherit subversion
|
|
12 |
ESVN_REPO_URI="http://svn.netlabs.org/repos/kbuild/trunk"
|
|
13 |
else
|
|
14 |
MY_P="${P}-src"
|
|
15 |
#SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz"
|
|
16 |
SRC_URI="https://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz"
|
|
17 |
KEYWORDS="~amd64 ~x86"
|
|
18 |
fi
|
15 |
19 |
LICENSE="GPL-3+"
|
16 |
20 |
SLOT="0"
|
17 |
|
KEYWORDS="amd64 x86"
|
|
21 |
IUSE=""
|
18 |
22 |
|
19 |
23 |
BDEPEND="
|
20 |
24 |
sys-apps/texinfo
|
... | ... | |
29 |
33 |
"${FILESDIR}/${PN}-0.1.5-gentoo-docdir.patch"
|
30 |
34 |
"${FILESDIR}/${PN}-0.1.9998_pre20120806-qa.patch"
|
31 |
35 |
"${FILESDIR}/${PN}-0.1.9998_pre20110817-kash-link-pthread.patch"
|
|
36 |
#"${FILESDIR}/${PN}-0.1.9998.3407-gold.patch"
|
32 |
37 |
"${FILESDIR}/${PN}-0.1.9998.3572-fix-bison.patch"
|
33 |
38 |
"${FILESDIR}/${PN}-0.1.9998.3572-fix-lto.patch"
|
34 |
39 |
"${FILESDIR}/${PN}-0.1.9998.3499-implicit-function-declaration.patch"
|
35 |
40 |
"${FILESDIR}/${PN}-0.1.9998.3499-int-conversion.patch"
|
36 |
41 |
"${FILESDIR}/${PN}-0.1.9998.3499-fix-CC.patch"
|
37 |
|
|
38 |
|
"${WORKDIR}/${PN}-0.1.9998.3499-fix-clang-16.patch"
|
39 |
42 |
)
|
40 |
43 |
|
41 |
44 |
pkg_setup() {
|
... | ... | |
46 |
49 |
src_prepare() {
|
47 |
50 |
default
|
48 |
51 |
|
49 |
|
# 905419 - build fails if /bin/sh is something other than bash
|
50 |
|
sed 's:ln -s /bin/sh:ln -s /bin/bash:' -i bootstrap.gmk || die
|
51 |
|
|
52 |
|
# Add a file with the svn revision this package was pulled from
|
53 |
|
printf '%s\n' "KBUILD_SVN_REV := $(ver_cut 4)" \
|
54 |
|
> SvnInfo.kmk || die
|
|
52 |
if [[ "${PV}" != *9999 ]] ; then
|
|
53 |
# Add a file with the svn revision this package was pulled from
|
|
54 |
printf '%s\n' "KBUILD_SVN_REV := $(ver_cut 4)" \
|
|
55 |
> SvnInfo.kmk || die
|
|
56 |
fi
|
55 |
57 |
|
56 |
58 |
cd "${S}/src/kmk" || die
|
57 |
59 |
eautoreconf
|