From 6445ffa1263302c384b33765aa711a59b133b4dd Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 29 Jun 2022 13:08:49 -0400 Subject: sys-fs/inotify-tools: tidy a bit datarootdir trick was shorter/interesting but it also feel a bit too unusual for ebuilds Signed-off-by: Ionen Wolkens --- sys-fs/inotify-tools/inotify-tools-3.22.6.0.ebuild | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'sys-fs/inotify-tools') diff --git a/sys-fs/inotify-tools/inotify-tools-3.22.6.0.ebuild b/sys-fs/inotify-tools/inotify-tools-3.22.6.0.ebuild index 6a270595ec4e..8a96f1e65ec8 100644 --- a/sys-fs/inotify-tools/inotify-tools-3.22.6.0.ebuild +++ b/sys-fs/inotify-tools/inotify-tools-3.22.6.0.ebuild @@ -5,9 +5,9 @@ EAPI=8 inherit autotools -DESCRIPTION="a set of command-line programs providing a simple interface to inotify" -HOMEPAGE="https://github.com/inotify-tools/inotify-tools" -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +DESCRIPTION="Set of command-line programs providing a simple interface to inotify" +HOMEPAGE="https://github.com/inotify-tools/inotify-tools/" +SRC_URI="https://github.com/inotify-tools/inotify-tools/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -23,24 +23,22 @@ PATCHES=( src_prepare() { default - # Remove -Werror from CFLAGS (#745069) - find -name "Makefile.am" -print0 \ - | xargs --null sed 's@ -Werror@@' -i || die + sed -i 's/ -Werror//' {,libinotifytools/}src/Makefile.am || die #745069 eautoreconf } src_configure() { - # only docs installed are doxygen ones, so use /html - local myeconfargs=( - --disable-static - --docdir='$(datarootdir)'/doc/${PF}/html + local econfargs=( + --docdir="${EPREFIX}"/usr/share/doc/${PF}/html $(use_enable doc doxygen) ) - econf "${myeconfargs[@]}" + + econf "${econfargs[@]}" } src_install() { default + find "${ED}" -type f -name '*.la' -delete || die } -- cgit v1.2.3-65-gdbad