diff options
author | Martin Väth <martin@mvath.de> | 2013-10-18 22:40:33 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2015-10-11 10:48:59 +0200 |
commit | 2013b6b4cf1cf0cb907dc902068d5a24d6081f03 (patch) | |
tree | 6281f57d48396b27d570a5307c033fd7dd05a1e3 /media-gfx/pqiv | |
parent | Bump firewall-mv (diff) | |
download | mv-2013b6b4cf1cf0cb907dc902068d5a24d6081f03.tar.gz mv-2013b6b4cf1cf0cb907dc902068d5a24d6081f03.tar.bz2 mv-2013b6b4cf1cf0cb907dc902068d5a24d6081f03.zip |
Add pqiv[gtk2]. Bump noscript
Diffstat (limited to 'media-gfx/pqiv')
-rw-r--r-- | media-gfx/pqiv/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/pqiv/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/pqiv/files/pqiv-2.0-ldflags.patch | 11 | ||||
-rw-r--r-- | media-gfx/pqiv/metadata.xml | 14 | ||||
-rw-r--r-- | media-gfx/pqiv/pqiv-2.0.ebuild | 50 |
5 files changed, 84 insertions, 0 deletions
diff --git a/media-gfx/pqiv/ChangeLog b/media-gfx/pqiv/ChangeLog new file mode 100644 index 00000000..7ea570bb --- /dev/null +++ b/media-gfx/pqiv/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for media-gfx/pqiv +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/pqiv/ChangeLog,v 1.37 2013/09/08 05:09:05 radhermit Exp $ + +*pqiv-2.0 (18 Oct 2013) + + 18 Oct 2013; Martin Väth <martin@mvath.de>: + Bump from tree to allow optional gtk:2 dependency. Remove previous history. diff --git a/media-gfx/pqiv/Manifest b/media-gfx/pqiv/Manifest new file mode 100644 index 00000000..30ccc027 --- /dev/null +++ b/media-gfx/pqiv/Manifest @@ -0,0 +1 @@ +DIST pqiv-2.0.tar.gz 39749 SHA256 6e1cd46df9b398b7d27d9f6179475cd7f525b6db44f5d72d8607746ae0ce35c0 SHA512 810022f8a8c4e07371b99a81b4cf179e33dadaed7bf124b85b3808e2a404514308161ac2b33310366db2cebb49436ac9847560239e04c9f5f2f4158e9d84353c WHIRLPOOL 056f011477e6ad36c2a7848d3d9b25f64b10691919df427a7da839c941923bd744f4786750cb96d8bdd9dedce99becb09db462fe041ecce62b1580b8b1bf4d51 diff --git a/media-gfx/pqiv/files/pqiv-2.0-ldflags.patch b/media-gfx/pqiv/files/pqiv-2.0-ldflags.patch new file mode 100644 index 00000000..a141e53b --- /dev/null +++ b/media-gfx/pqiv/files/pqiv-2.0-ldflags.patch @@ -0,0 +1,11 @@ +--- pqiv-2.0/Makefile.orig ++++ pqiv-2.0/Makefile +@@ -28,7 +28,7 @@ + endif + + pqiv$(EXECUTABLE_EXTENSION): pqiv.c lib/strnatcmp.o +- $(CROSS)$(CC) $(PQIV_WARNING_FLAGS) -std=gnu99 -o $@ `$(CROSS)pkg-config --cflags $(LIBS)` $+ `$(CROSS)pkg-config --libs $(LIBS)` $(CFLAGS) ++ $(CROSS)$(CC) $(PQIV_WARNING_FLAGS) -std=gnu99 -o $@ `$(CROSS)pkg-config --cflags $(LIBS)` $+ `$(CROSS)pkg-config --libs $(LIBS)` $(CFLAGS) $(LDFLAGS) + + lib/strnatcmp.o: lib/strnatcmp.c + $(CROSS)$(CC) -c -o $@ $+ $(CFLAGS) diff --git a/media-gfx/pqiv/metadata.xml b/media-gfx/pqiv/metadata.xml new file mode 100644 index 00000000..1dadc3ec --- /dev/null +++ b/media-gfx/pqiv/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>graphics</herd> + <upstream> + <maintainer> + <email>phillip.berndt@googlemail.com</email> + <name>Phillip Berndt</name> + </maintainer> + </upstream> + <use> + <flag name="gtk2">Use gtk:2 instead of gtk:3</flag> + </use> +</pkgmetadata> diff --git a/media-gfx/pqiv/pqiv-2.0.ebuild b/media-gfx/pqiv/pqiv-2.0.ebuild new file mode 100644 index 00000000..5f3220bf --- /dev/null +++ b/media-gfx/pqiv/pqiv-2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit linux-info toolchain-funcs eutils + +DESCRIPTION="Modern rewrite of Quick Image Viewer" +HOMEPAGE="http://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="gtk2 kernel_linux" + +RDEPEND="dev-libs/glib:2 + x11-libs/cairo + gtk2? ( x11-libs/gtk+:2 ) + !gtk2? ( x11-libs/gtk+:3 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + if use kernel_linux; then + CONFIG_CHECK="~INOTIFY_USER" + linux-info_pkg_setup + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch + epatch_user +} + +src_configure() { + local gtkver=3 + ! use gtk2 || gtkver=2 + ./configure --gtk-version=${gtkver} --prefix=/usr --destdir="${D}" || die +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" +} + +src_install() { + default + dodoc README.markdown +} |