From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BF576139695 for ; Thu, 23 Feb 2017 00:42:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4ABE0E0C9E; Thu, 23 Feb 2017 00:42:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17636E0C9E for ; Thu, 23 Feb 2017 00:42:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D29C834155D for ; Thu, 23 Feb 2017 00:42:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA672513C for ; Thu, 23 Feb 2017 00:42:41 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1487810537.97034d0bb0641faa7ac9b928f94660d098ae529e.radhermit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/pqiv/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/pqiv/metadata.xml media-gfx/pqiv/pqiv-2.7.4-r1.ebuild X-VCS-Directories: media-gfx/pqiv/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 97034d0bb0641faa7ac9b928f94660d098ae529e X-VCS-Branch: master Date: Thu, 23 Feb 2017 00:42:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3b34b65b-36fa-445a-8f4e-5606dc7fb0e5 X-Archives-Hash: 9f658c4cfeb15cdbb4947044bd4f76d3 commit: 97034d0bb0641faa7ac9b928f94660d098ae529e Author: Tim Harder gentoo org> AuthorDate: Thu Feb 23 00:35:52 2017 +0000 Commit: Tim Harder gentoo org> CommitDate: Thu Feb 23 00:42:17 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97034d0b media-gfx/pqiv: add archive use flag and fix backend loading (bug #603506) media-gfx/pqiv/metadata.xml | 3 ++ media-gfx/pqiv/pqiv-2.7.4-r1.ebuild | 77 +++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/media-gfx/pqiv/metadata.xml b/media-gfx/pqiv/metadata.xml index 8db07c2cca..cb5fbcd275 100644 --- a/media-gfx/pqiv/metadata.xml +++ b/media-gfx/pqiv/metadata.xml @@ -12,4 +12,7 @@ phillipberndt/pqiv + + Enable support for images in archives and cbX comic book files + diff --git a/media-gfx/pqiv/pqiv-2.7.4-r1.ebuild b/media-gfx/pqiv/pqiv-2.7.4-r1.ebuild new file mode 100644 index 0000000000..ebedd6e373 --- /dev/null +++ b/media-gfx/pqiv/pqiv-2.7.4-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit linux-info flag-o-matic toolchain-funcs fdo-mime + +DESCRIPTION="Modern rewrite of Quick Image Viewer" +HOMEPAGE="https://github.com/phillipberndt/pqiv http://www.pberndt.com/Programme/Linux/pqiv/" +SRC_URI="https://github.com/phillipberndt/pqiv/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="archive ffmpeg imagemagick kernel_linux libav pdf postscript" + +RDEPEND=" + >=dev-libs/glib-2.8:2 + >=x11-libs/cairo-1.6 + x11-libs/gtk+:3 + archive? ( app-arch/libarchive:0= ) + ffmpeg? ( + !libav? ( media-video/ffmpeg:0= ) + libav? ( media-video/libav:0= ) + ) + imagemagick? ( media-gfx/imagemagick:0= ) + pdf? ( app-text/poppler:0= ) + postscript? ( app-text/libspectre:0= ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + if use kernel_linux; then + CONFIG_CHECK="~INOTIFY_USER" + linux-info_pkg_setup + fi +} + +src_prepare() { + default + sed -i \ + -e "s:/lib/:/$(get_libdir)/:g" \ + GNUmakefile || die + + # bug #603506 + append-ldflags -Wl,--disable-new-dtags +} + +src_configure() { + local backends="gdkpixbuf" + use archive && backends="${backends},archive,archive_cbx" + use ffmpeg || use libav && backends="${backends},libav" + use imagemagick && backends="${backends},wand" + use pdf && backends="${backends},poppler" + use postscript && backends="${backends},spectre" + + ./configure \ + --backends-build=shared \ + --backends=${backends} \ + --prefix="${EPREFIX}/usr" \ + --destdir="${ED}" \ + || die +} + +src_compile() { + tc-export CC + emake VERBOSE=1 CFLAGS="${CFLAGS}" +} + +pkg_postinst() { + fdo-mime_desktop_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +}