mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
dev-libs/libdnet: Apply Flatcar modifications
This commit is contained in:
parent
3a54f3922c
commit
85f9944fb8
6
sdk_container/src/third_party/coreos-overlay/dev-libs/libdnet/README.md
vendored
Normal file
6
sdk_container/src/third_party/coreos-overlay/dev-libs/libdnet/README.md
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
This is a fork of gentoo package. It's a dependency of the
|
||||||
|
open-vm-tools which is installed in the oem partition. We have it in
|
||||||
|
overlay, because:
|
||||||
|
|
||||||
|
- We drop python stuff from the package.
|
||||||
|
- We change the prefix and sbindir.
|
@ -4,9 +4,8 @@
|
|||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
AT_M4DIR="config"
|
AT_M4DIR="config"
|
||||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
|
||||||
DISTUTILS_OPTIONAL=1
|
inherit autotools
|
||||||
inherit autotools distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="simplified, portable interface to several low-level networking routines"
|
DESCRIPTION="simplified, portable interface to several low-level networking routines"
|
||||||
HOMEPAGE="https://github.com/ofalk/libdnet"
|
HOMEPAGE="https://github.com/ofalk/libdnet"
|
||||||
@ -16,16 +15,13 @@ S="${WORKDIR}/${PN}-${P}"
|
|||||||
LICENSE="LGPL-2"
|
LICENSE="LGPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
|
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
|
||||||
IUSE="python test"
|
IUSE="test"
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
REQUIRED_USE=""
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
DEPEND="python? ( ${PYTHON_DEPS} )"
|
DEPEND=""
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
python? (
|
|
||||||
dev-python/cython[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
|
|
||||||
DOCS=( README.md THANKS )
|
DOCS=( README.md THANKS )
|
||||||
@ -50,35 +46,19 @@ src_prepare() {
|
|||||||
Makefile.am || die
|
Makefile.am || die
|
||||||
|
|
||||||
eautoreconf
|
eautoreconf
|
||||||
|
|
||||||
if use python; then
|
|
||||||
cd python || die
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
# Install into OEM, don't bother with a sbin directory.
|
||||||
econf \
|
econf \
|
||||||
|
--prefix=/usr/share/oem \
|
||||||
|
--sbindir=/usr/share/oem/bin \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
$(use_with python)
|
--without-python
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
default
|
|
||||||
if use python; then
|
|
||||||
cd python || die
|
|
||||||
distutils-r1_src_compile
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
|
|
||||||
if use python; then
|
|
||||||
cd python || die
|
|
||||||
unset DOCS
|
|
||||||
distutils-r1_src_install
|
|
||||||
fi
|
|
||||||
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
find "${ED}" -name '*.la' -delete || die
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user