sys/sys-kernel/inf_kernel/inf_kernel-0.2.0.59.ebuild

51 lines
1.3 KiB
Bash

# Copyright 1999 Gentoo Authors, 2022 Jake Winters
# SPDX-License-Identifier: GPL-2.0-only
EAPI="8"
K_NOUSENAME="yes"
K_NOSETEXTRAVERSION="yes"
K_SECURITY_UNSUPPORTED="1"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="Inferencium Kernel source code."
HOMEPAGE="https://src.inferencium.net/Inferencium/inf_kernel/"
# Package must be hard-coded due to Portage ebuild name limitations not allowing Semantic Versioning
SRC_URI="https://src.inferencium.net/Inferencium/inf_kernel/archive/inf_kernel-0.2.0-alpha.1+59.tar.gz"
S="${WORKDIR}/${PN}"
KEYWORDS="~amd64 ~arm64"
src_unpack() {
default
}
install_sources() {
local file
cd "${S}" || die
dodir /src/
einfo ">>> Copying source code ..."
file="$(find ${WORKDIR} -iname "docs" -type d)"
if [[ -n ${file} ]]; then
for file in $(find ${file} -type f); do
echo "${file//*docs\/}" >> "${S}"/patches.txt
echo "===================================================" >> "${S}"/patches.txt
cat ${file} >> "${S}"/patches.txt
echo "===================================================" >> "${S}"/patches.txt
echo "" >> "${S}"/patches.txt
done
fi
mv "${WORKDIR}"/inf_kernel* "${ED}"/src/${P} || die
if [[ -n ${UNIPATCH_DOCS} ]]; then
for i in ${UNIPATCH_DOCS}; do
dodoc "${T}"/${i}
done
fi
}