You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.8 KiB
69 lines
1.8 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
6 years ago
|
inherit autotools toolchain-funcs
|
||
11 years ago
|
|
||
7 years ago
|
MY_P="${P}-src"
|
||
11 years ago
|
DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
|
||
|
HOMEPAGE="http://svn.netlabs.org/kbuild/wiki"
|
||
|
#SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz"
|
||
9 years ago
|
SRC_URI="https://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz"
|
||
11 years ago
|
|
||
7 years ago
|
LICENSE="GPL-3+"
|
||
11 years ago
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd"
|
||
11 years ago
|
IUSE=""
|
||
|
|
||
7 years ago
|
DEPEND="
|
||
|
sys-apps/texinfo
|
||
8 years ago
|
sys-devel/flex
|
||
11 years ago
|
sys-devel/gettext
|
||
7 years ago
|
virtual/yacc
|
||
|
"
|
||
11 years ago
|
RDEPEND=""
|
||
|
|
||
7 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-unknown-configure-opt.patch"
|
||
|
"${FILESDIR}/${PN}-0.1.5-gentoo-docdir.patch"
|
||
|
"${FILESDIR}/${PN}-0.1.9998_pre20120806-qa.patch"
|
||
|
"${FILESDIR}/${PN}-0.1.9998_pre20110817-kash-link-pthread.patch"
|
||
|
"${FILESDIR}/${PN}-0.1.9998_pre20171020-gold.patch"
|
||
|
)
|
||
11 years ago
|
|
||
|
src_prepare() {
|
||
|
rm -rf "${S}/kBuild/bin"
|
||
|
|
||
7 years ago
|
default
|
||
|
|
||
6 years ago
|
# Add a file with the svn revision this package was pulled from
|
||
|
printf '%s\n' "KBUILD_SVN_REV := $(ver_cut 4)" \
|
||
|
> SvnInfo.kmk || die
|
||
|
|
||
|
# bootstrapping breaks because of missing po/Makefile.in.in (r3149)
|
||
|
sed '/^AC_CONFIG_FILES/s@ po/Makefile\.in@@' \
|
||
|
-i src/kmk/configure.ac || die
|
||
11 years ago
|
|
||
|
cd "${S}/src/kmk" || die
|
||
|
eautoreconf
|
||
|
cd "${S}/src/sed" || die
|
||
|
# AM_CONFIG_HEADER is obsolete since automake-1.13 (bug #467104)
|
||
|
sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die
|
||
|
eautoreconf
|
||
|
|
||
7 years ago
|
sed -e "s@_LDFLAGS\.$(tc-arch)*.*=@& ${LDFLAGS}@g" \
|
||
11 years ago
|
-i "${S}"/Config.kmk || die #332225
|
||
|
tc-export CC RANLIB #AR does not work here
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
7 years ago
|
kBuild/env.sh --full emake -f bootstrap.gmk AUTORECONF=true AR="$(tc-getAR)" \
|
||
11 years ago
|
|| die "bootstrap failed"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="${D}" install \
|
||
|
|| die "install failed"
|
||
|
}
|