summaryrefslogtreecommitdiff
path: root/media-gfx/qiv/qiv-2.3.2.ebuild
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-07-01 11:01:17 -0400
committerTim Harder <radhermit@gentoo.org>2018-07-01 11:06:48 -0400
commita15772b28d2913de0f5c6b192e867f99c10962ac (patch)
tree1c569d8a105f45956eb1ae1ce5734fe194f4304a /media-gfx/qiv/qiv-2.3.2.ebuild
parent817596ce56f338b4b8386bb6aa458bd590bafa73 (diff)
downloadgentoo-a15772b28d2913de0f5c6b192e867f99c10962ac.tar.gz
gentoo-a15772b28d2913de0f5c6b192e867f99c10962ac.tar.xz
media-gfx/qiv: version bump to 2.3.2
Closes: https://bugs.gentoo.org/582404
Diffstat (limited to 'media-gfx/qiv/qiv-2.3.2.ebuild')
-rw-r--r--media-gfx/qiv/qiv-2.3.2.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/media-gfx/qiv/qiv-2.3.2.ebuild b/media-gfx/qiv/qiv-2.3.2.ebuild
new file mode 100644
index 00000000000..0b0984e667e
--- /dev/null
+++ b/media-gfx/qiv/qiv-2.3.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop gnome2-utils toolchain-funcs xdg-utils vcs-snapshot
+
+DESCRIPTION="Quick Image Viewer"
+HOMEPAGE="http://spiegl.de/qiv/ https://bitbucket.org/ciberandy/qiv"
+SRC_URI="https://bitbucket.org/ciberandy/qiv/get/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86"
+IUSE="exif lcms magic"
+
+RDEPEND=">=x11-libs/gtk+-2.12:2
+ media-libs/imlib2[X]
+ exif? ( media-libs/libexif )
+ lcms? (
+ media-libs/lcms:2
+ media-libs/tiff:0
+ virtual/jpeg:0
+ )
+ magic? ( sys-apps/file )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-optional-tiff.patch )
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \
+ Makefile || die
+
+ if ! use exif ; then
+ sed -i 's/^EXIF =/#\0/' Makefile || die
+ fi
+
+ if ! use lcms ; then
+ sed -i 's/^LCMS =/#\0/' Makefile || die
+ fi
+
+ if ! use magic ; then
+ sed -i 's/^MAGIC =/#\0/' Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin qiv
+ doman qiv.1
+ dodoc Changelog contrib/qiv-command.example README README.TODO
+
+ domenu qiv.desktop
+ doicon qiv.png
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}