commit: 97e297085c06b587a90e43b0c466b0d94c092ba4
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 17 20:04:10 2017 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Aug 17 20:04:10 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97e29708
media-gfx/sxiv: use build options to disable exif/gif support
media-gfx/sxiv/sxiv-9999.ebuild | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/media-gfx/sxiv/sxiv-9999.ebuild b/media-gfx/sxiv/sxiv-9999.ebuild
index 75f593a1b0f..d6b5f0192b8 100644
--- a/media-gfx/sxiv/sxiv-9999.ebuild
+++ b/media-gfx/sxiv/sxiv-9999.ebuild
@@ -31,28 +31,16 @@ DEPEND="${RDEPEND}"
src_prepare() {
sed -i '/^LDFLAGS/d' Makefile || die
- # disable exif support as required
- if ! use exif; then
- sed \
- -e 's/^.* -DHAVE_GIFLIB/#\0/' \
- -e 's/^.* -lgif/#\0/' \
- -i Makefile || die
- fi
-
- # disable gif support as required
- if ! use gif; then
- sed \
- -e 's/^.* -DHAVE_LIBEXIF/#\0/' \
- -e 's/^.* -lexif/#\0/' \
- -i Makefile || die
- fi
-
tc-export CC
restore_config config.h
default
}
+src_compile() {
+ emake $(usex exif "" NO_LIBEXIF=1) $(usex gif "" NO_GIFLIB=1)
+}
+
src_install() {
emake DESTDIR="${ED}" PREFIX=/usr install
emake -C icon DESTDIR="${ED}" PREFIX=/usr install