summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-12-29 03:57:02 +0000
committerTim Harder <radhermit@gentoo.org>2013-12-29 03:57:02 +0000
commit3db063ddec646466c369c663970af9f1d555f05e (patch)
tree0cad557376951c14f51471b3a815a36e741dc595 /media-gfx/qiv
parentRemove old. (diff)
downloadgentoo-2-3db063ddec646466c369c663970af9f1d555f05e.tar.gz
gentoo-2-3db063ddec646466c369c663970af9f1d555f05e.tar.bz2
gentoo-2-3db063ddec646466c369c663970af9f1d555f05e.zip
Version bump. Install desktop file/icon and add exif, lcms, and magic use flags.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'media-gfx/qiv')
-rw-r--r--media-gfx/qiv/ChangeLog11
-rw-r--r--media-gfx/qiv/metadata.xml5
-rw-r--r--media-gfx/qiv/qiv-2.3.1.ebuild64
3 files changed, 77 insertions, 3 deletions
diff --git a/media-gfx/qiv/ChangeLog b/media-gfx/qiv/ChangeLog
index c356a6ae9504..744f3628290c 100644
--- a/media-gfx/qiv/ChangeLog
+++ b/media-gfx/qiv/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/qiv
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/qiv/ChangeLog,v 1.37 2012/05/28 23:54:50 blueness Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/qiv/ChangeLog,v 1.38 2013/12/29 03:57:02 radhermit Exp $
+
+*qiv-2.3.1 (29 Dec 2013)
+
+ 29 Dec 2013; Tim Harder <radhermit@gentoo.org> +qiv-2.3.1.ebuild,
+ metadata.xml:
+ Version bump. Install desktop file/icon and add exif, lcms, and magic use
+ flags.
28 May 2012; Anthony G. Basile <blueness@gentoo.org> qiv-2.2.4.ebuild:
Keyword ~mips
diff --git a/media-gfx/qiv/metadata.xml b/media-gfx/qiv/metadata.xml
index 9be90a258970..978159afc5ac 100644
--- a/media-gfx/qiv/metadata.xml
+++ b/media-gfx/qiv/metadata.xml
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>graphics</herd>
+ <herd>graphics</herd>
+ <use>
+ <flag name="magic">Use libmagic to determine mimetypes</flag>
+ </use>
</pkgmetadata>
diff --git a/media-gfx/qiv/qiv-2.3.1.ebuild b/media-gfx/qiv/qiv-2.3.1.ebuild
new file mode 100644
index 000000000000..aed038495599
--- /dev/null
+++ b/media-gfx/qiv/qiv-2.3.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/qiv/qiv-2.3.1.ebuild,v 1.1 2013/12/29 03:57:02 radhermit Exp $
+
+EAPI=5
+inherit toolchain-funcs eutils fdo-mime gnome2-utils
+
+DESCRIPTION="Quick Image Viewer"
+HOMEPAGE="http://spiegl.de/qiv/"
+SRC_URI="http://spiegl.de/qiv/download/${P}.tgz"
+
+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 )
+ magic? ( sys-apps/file )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ 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() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}