commit: 3101d62e01293c6566da41a91d0a08e740bc0e9a
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 10 09:10:05 2021 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Nov 10 09:10:47 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3101d62e
dev-libs/hidapi: ebuild enhancements for 0.11.0
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-libs/hidapi/hidapi-0.11.0.ebuild | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/dev-libs/hidapi/hidapi-0.11.0.ebuild
b/dev-libs/hidapi/hidapi-0.11.0.ebuild
index 403cb345499..1ed0ca0f94d 100644
--- a/dev-libs/hidapi/hidapi-0.11.0.ebuild
+++ b/dev-libs/hidapi/hidapi-0.11.0.ebuild
@@ -23,7 +23,7 @@ BDEPEND="
virtual/pkgconfig
doc? ( app-doc/doxygen )"
-S="${WORKDIR}/${PN}-${PN}-${PV}"
+S="${WORKDIR}/${PN}-${P}"
src_prepare() {
default
@@ -32,10 +32,6 @@ src_prepare() {
sed -i -e 's:PKG_CHECK_MODULES(\[fox\],
.*):AC_SUBST(fox_CFLAGS,[ ])AC_SUBST(fox_LIBS,[ ]):' configure.ac || die
fi
- # Fix bashisms in the configure.ac file.
- sed -i -e 's:\([A-Z_]\+\)+="\(.*\)":\1="${\1}\2":g' \
- -e 's:\([A-Z_]\+\)+=`\(.*\)`:\1="${\1}\2":g' configure.ac || die
-
# Portage handles license texts itself, no need to install them
sed -i -e 's/LICENSE.*/ # blank/' Makefile.am || die
@@ -56,15 +52,11 @@ multilib_src_compile() {
}
multilib_src_install() {
- default
- local HTML_DOCS
+ emake install DESTDIR="${D}"
+ find "${D}" -name '*.la' -delete || die
+
if use doc && multilib_is_native_abi; then
- HTML_DOCS=( html/. )
+ local HTML_DOCS=( html/. )
fi
einstalldocs
}
-
-multilib_src_install_all() {
- # no static archives
- find "${ED}" -name '*.la' -delete || die
-}