summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-04-25 08:40:28 +0000
committerTim Harder <radhermit@gentoo.org>2014-04-25 08:40:28 +0000
commit921f34fe8aa3337234b21b1a7dfb48c1e1d11675 (patch)
treedb5680858a2c2a58853f7f84bd4e3d75f07b11dd /media-gfx/sxiv
parentVersion bump. (diff)
downloadgentoo-2-921f34fe8aa3337234b21b1a7dfb48c1e1d11675.tar.gz
gentoo-2-921f34fe8aa3337234b21b1a7dfb48c1e1d11675.tar.bz2
gentoo-2-921f34fe8aa3337234b21b1a7dfb48c1e1d11675.zip
Version bump.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'media-gfx/sxiv')
-rw-r--r--media-gfx/sxiv/ChangeLog8
-rw-r--r--media-gfx/sxiv/files/sxiv-1.2-makefile.patch16
-rw-r--r--media-gfx/sxiv/sxiv-1.2.ebuild34
3 files changed, 57 insertions, 1 deletions
diff --git a/media-gfx/sxiv/ChangeLog b/media-gfx/sxiv/ChangeLog
index d4471b2d32a6..81a8a3cebe07 100644
--- a/media-gfx/sxiv/ChangeLog
+++ b/media-gfx/sxiv/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/sxiv
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/sxiv/ChangeLog,v 1.18 2014/01/14 13:53:25 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/sxiv/ChangeLog,v 1.19 2014/04/25 08:40:27 radhermit Exp $
+
+*sxiv-1.2 (25 Apr 2014)
+
+ 25 Apr 2014; Tim Harder <radhermit@gentoo.org> +sxiv-1.2.ebuild,
+ +files/sxiv-1.2-makefile.patch:
+ Version bump.
14 Jan 2014; Agostino Sarubbo <ago@gentoo.org> sxiv-1.1.1.ebuild:
Stable for x86, wrt bug #495706
diff --git a/media-gfx/sxiv/files/sxiv-1.2-makefile.patch b/media-gfx/sxiv/files/sxiv-1.2-makefile.patch
new file mode 100644
index 000000000000..333f4cd54b24
--- /dev/null
+++ b/media-gfx/sxiv/files/sxiv-1.2-makefile.patch
@@ -0,0 +1,16 @@
+--- sxiv-1.2/Makefile
++++ sxiv-1.2/Makefile
+@@ -3,10 +3,9 @@
+ PREFIX = /usr/local
+ MANPREFIX = $(PREFIX)/share/man
+
+-CC = gcc
+-CFLAGS = -std=c99 -Wall -pedantic -O2
+-CPPFLAGS = -I$(PREFIX)/include -D_XOPEN_SOURCE=500 -DHAVE_GIFLIB
+-LDFLAGS = -L$(PREFIX)/lib
++CC ?= gcc
++CFLAGS += -std=c99 -Wall -pedantic -O2
++CPPFLAGS += -D_XOPEN_SOURCE=500 -DHAVE_GIFLIB
+ LIBS = -lX11 -lImlib2 -lgif
+
+ SRC = commands.c exif.c image.c main.c options.c thumbs.c util.c window.c
diff --git a/media-gfx/sxiv/sxiv-1.2.ebuild b/media-gfx/sxiv/sxiv-1.2.ebuild
new file mode 100644
index 000000000000..8f0e3cc5e90d
--- /dev/null
+++ b/media-gfx/sxiv/sxiv-1.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/sxiv/sxiv-1.2.ebuild,v 1.1 2014/04/25 08:40:27 radhermit Exp $
+
+EAPI=5
+
+inherit eutils savedconfig toolchain-funcs
+
+DESCRIPTION="Simple (or small or suckless) X Image Viewer"
+HOMEPAGE="https://github.com/muennich/sxiv/"
+SRC_URI="https://github.com/muennich/sxiv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="media-libs/giflib
+ media-libs/imlib2[X]
+ x11-libs/libX11"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ tc-export CC
+
+ restore_config config.h
+}
+
+src_install() {
+ emake DESTDIR="${ED}" PREFIX=/usr install
+ dodoc README.md
+
+ save_config config.h
+}