mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
Changed build process to lean more on portage infrastructure with implicit emake rules instead of explicit edo that may be missing compile or link flags. Closes: https://bugs.gentoo.org/919877 Closes: https://bugs.gentoo.org/919058 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40799 Signed-off-by: Sam James <sam@gentoo.org>
28 lines
574 B
Bash
28 lines
574 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Program to link two /dev/net/tun to form virtual ethernet"
|
|
HOMEPAGE="https://grumpf.hope-2000.org/"
|
|
SRC_URI="https://grumpf.hope-2000.org/${PN}.c -> ${P}.c"
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~sparc ~x86"
|
|
PATCHES=( "${FILESDIR}/${P}-missing-include.patch" )
|
|
|
|
src_unpack() {
|
|
cp "${DISTDIR}/${P}.c" "${PN}.c" || die
|
|
}
|
|
|
|
src_compile() {
|
|
emake CC="$(tc-getCC)" "${PN}"
|
|
}
|
|
|
|
src_install() {
|
|
dobin "${PN}"
|
|
}
|