summaryrefslogtreecommitdiff
path: root/media-gfx/xzgv
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/xzgv')
-rw-r--r--media-gfx/xzgv/Manifest6
-rw-r--r--media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch35
-rw-r--r--media-gfx/xzgv/metadata.xml11
-rw-r--r--media-gfx/xzgv/xzgv-0.9.1.ebuild33
4 files changed, 85 insertions, 0 deletions
diff --git a/media-gfx/xzgv/Manifest b/media-gfx/xzgv/Manifest
new file mode 100644
index 000000000000..889055c0f8f3
--- /dev/null
+++ b/media-gfx/xzgv/Manifest
@@ -0,0 +1,6 @@
+AUX xzgv-0.9-asneeded-and-cflags.patch 976 SHA256 8021010c76d56d5e1ee26285dd9e483ae9b50bcf02b4043aff8ada75bc27003e SHA512 05fa8d01d86e5a3e4be7c7226ce21e041f80e9ea8beeaf57f9e4624237b87e39447c07019e8b6530681ed8583c370737f50583941ed939195553ce81110742af WHIRLPOOL 9bbc8727231747d9147c62e339645421d98335aceb0fc4ac2648f5f8d51b817e9e59899fd4abeeb316d772fe86dcaecb5dff1aa8cf4ed4ec41bff229040bb9ce
+DIST xzgv-0.9.1.tar.gz 163419 SHA256 f0b25ecb138d3f53ddc436679f9f7da03b48b503aaad6f271944ff6db91804e6 SHA512 e57d0eb3f34bc63cb9f2d033856eefdeb6363ce55589b8bc52a8c253e211a4e36d3c0691b4559581d4052810fde445c6ec1832b964c40c5365c3869ce72f7361 WHIRLPOOL 19d0cb71cb4313ee5d3e90c5ce4377a5e6a4b7471c30eb511926e06a6fe8410594ce3587bc499204000095731ff2d5aaa7295f91d9123e77a0beb5a02a0c34e4
+EBUILD xzgv-0.9.1.ebuild 672 SHA256 273e33d3bcaeb14d1e13570217a84787fb8a3c03075630fbe9bb44eea26b2b8f SHA512 991be7ef2638495e84110c449fa7d0bcba7703e6f3fbb25e64f6935454bd24782ffe22513657550f2fc7db0332488abbda23e790be0010eafe9dca6a721cd748 WHIRLPOOL c327e6ea08fd8f34cf73f39b7948bc701de108b1836592dc8931f8f962d78354c8783ba8a4ddc80366f1261034fab9723672383b1435d297b227f11e4732a071
+MISC ChangeLog 2573 SHA256 1ec87e9ba92d8378f42efa0e3d41d7fa1cebb4ddee18962cc2455d62f39bc192 SHA512 afa9b1f703f90300b6a91c00f8b87fd8fa26e3af940513ab1ffe295727a6a96305ead39343eab1822154db15a59dc9be4dd20cbd4bf0fbd9cb672035ac0986d9 WHIRLPOOL 52f07ae53cf57c0d62565e474304a2a0849246a50d33860fcb3022b57cf74542009c2e8791b7c3a761473129de3525051f96fa7798476d8d81b64961b3bb6b94
+MISC ChangeLog-2015 1645 SHA256 4eb6bdf9e6a7f802b4822f35eda365d6608f6b7cde414a21ba26554c40eda739 SHA512 62494df2885b76b59c8b0a67f39c5bd93f000c7fc095027e46cede6c7a4ef02d6e25b2582708f9eaccde6f74631274eb68138d9fec2ce2330f30c60414f4f1dd WHIRLPOOL 8fe84e6df86b4172ea7fd52581735982660a7b1a790e8024749509525db9e88d34fc20983a4dcddbbe62d9c65513b2dc515eef3054f6997a72e6d70a4b94c430
+MISC metadata.xml 333 SHA256 2bd7ffac7ac807c251a7c589488ec1eaf05d7c6ebad800c3a875fd801fe2ecfd SHA512 06f260fee9abc0645a167fe1e3b7ff17bd6d1d4dfdecc94d98a4a3341434b51cc037a837554c0377c137a45e62315853b93f6b81249938005a7272f496351b43 WHIRLPOOL 04c49c02ede877de346c51bf3eb225485bd34b9341c2739f2c337fb17f1f97ad3648f2663c3b9b3b42fb2c9a594e28116166fb8af5899ee20be9b988c4a34d9f
diff --git a/media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch b/media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch
new file mode 100644
index 000000000000..8b3c671dbf8a
--- /dev/null
+++ b/media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch
@@ -0,0 +1,35 @@
+http://bugs.gentoo.org/500692
+
+--- config.mk
++++ config.mk
+@@ -7,7 +7,7 @@
+ # This is likely to be what you'll want for most systems:
+ #
+ CC=gcc
+-CFLAGS=-O2 -Wall
++CFLAGS+=-Wall
+
+ # Set the awk interpreter to use for a script used while compiling.
+ # (This should be a `new' awk, such as gawk or mawk.)
+--- src/Makefile
++++ src/Makefile
+@@ -9,8 +9,8 @@
+ # This gets definitions for CC, CFLAGS, BINDIR etc.
+ include ../config.mk
+
+-CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`
+-LDFLAGS+=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0`
++CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0` `pkg-config --cflags x11`
++LIBS=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0` `pkg-config --libs x11` -lm
+
+ all: xzgv
+
+@@ -23,7 +23,7 @@
+ backend.o
+
+ xzgv: $(OBJS)
+- $(CC) $(LDFLAGS) -o xzgv $(OBJS)
++ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o xzgv
+
+ installdirs:
+ /bin/sh ../mkinstalldirs $(BINDIR)
diff --git a/media-gfx/xzgv/metadata.xml b/media-gfx/xzgv/metadata.xml
new file mode 100644
index 000000000000..6016eec00608
--- /dev/null
+++ b/media-gfx/xzgv/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xzgv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/xzgv/xzgv-0.9.1.ebuild b/media-gfx/xzgv/xzgv-0.9.1.ebuild
new file mode 100644
index 000000000000..283f5de88d59
--- /dev/null
+++ b/media-gfx/xzgv/xzgv-0.9.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Fast and simple GTK+ image viewer"
+HOMEPAGE="https://sourceforge.net/projects/xzgv"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ sys-apps/texinfo
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P/.1}-asneeded-and-cflags.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+ emake -C doc CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake PREFIX="${D}/usr" install
+ dodoc AUTHORS NEWS README TODO
+}