1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop toolchain-funcs vcs-snapshot xdg
8 DESCRIPTION="Quick Image Viewer"
9 HOMEPAGE="http://spiegl.de/qiv/ https://bitbucket.org/ciberandy/qiv"
10 SRC_URI="https://bitbucket.org/ciberandy/qiv/get/v${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~mips ~x86"
15 IUSE="exif lcms magic"
19 >=x11-libs/gtk+-2.12:2
20 exif? ( media-libs/libexif )
26 magic? ( sys-apps/file )"
30 PATCHES=( "${FILESDIR}"/${P}-optional-tiff.patch )
36 -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \
40 sed -i 's/^EXIF =/#\0/' Makefile || die
44 sed -i 's/^LCMS =/#\0/' Makefile || die
48 sed -i 's/^MAGIC =/#\0/' Makefile || die
53 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
59 dodoc Changelog contrib/qiv-command.example README README.TODO