summaryrefslogtreecommitdiff
path: root/media-gfx/gliv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/gliv
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/gliv')
-rw-r--r--media-gfx/gliv/Manifest10
-rw-r--r--media-gfx/gliv/files/gliv-1.9.6-as-needed.patch99
-rw-r--r--media-gfx/gliv/files/gliv-1.9.7-as-needed.patch87
-rw-r--r--media-gfx/gliv/files/gliv-1.9.7-destdir.patch15
-rw-r--r--media-gfx/gliv/gliv-1.9.6.ebuild43
-rw-r--r--media-gfx/gliv/gliv-1.9.7.ebuild43
-rw-r--r--media-gfx/gliv/metadata.xml8
7 files changed, 305 insertions, 0 deletions
diff --git a/media-gfx/gliv/Manifest b/media-gfx/gliv/Manifest
new file mode 100644
index 000000000000..a0d8d320b2f0
--- /dev/null
+++ b/media-gfx/gliv/Manifest
@@ -0,0 +1,10 @@
+AUX gliv-1.9.6-as-needed.patch 2864 SHA256 7a2a5a4016c957f7f7ab21ac905c4b73d54c16c0e489e2daa34e2a759eb21ca3 SHA512 594614f5190f9401d7759c26676a43d6a60cc81ca73e79536f5b4969252189d6a45293069f8426ed5e5ffb5d5c8a3f7e103a6243de6d6f182a20331802d16d01 WHIRLPOOL 022a0aecbc4fa26f40485018cd589f525645037a3a1ce30f03d23dafe46367fc63041ffdea921b94d39bfde4e77cf6a2fa467bc488355a1f97185d95618dd3ba
+AUX gliv-1.9.7-as-needed.patch 2374 SHA256 9a475f1bc27bc2d5d34a3e4f33f0d100f6abcfda4a43a45e05af5ad3431ae98c SHA512 8923b579d87079cffec3db5e5f00cc35c3bd516f1a878bc4d0e916150617a4f06d5ba3604d44dd128110e4398de5ab26ee8eef1d85dac74b4122e589eb6ad19d WHIRLPOOL dc6be8e9f01fe0bf3416b0a12c74a6872726b5c210750e5941a7a6c0a36e51fe13ec24288ab56d70d320c96fdb1bc9243fbec911e785f25c2195b27e4426712f
+AUX gliv-1.9.7-destdir.patch 914 SHA256 228017d88637481eca3b9cd82198ad674fa947bba9268d18977425aa566dbaa7 SHA512 1d83c62b470889260365a5ac24de591a8e817dd9d0d10d68cbf1a7ca27b544f44940b37f316956b5a4d79ce33eafb7c41a8c6cd6d943e35fba8e9fbfd1f0c9ed WHIRLPOOL 010e5dce2ee63438536527ad89c98dadfeee3b5706bd4d5a0f2bcf09f9c2ccba54fd5fa2184450039f57276c149b13193b8ea7219d81109dba2372d9c8844f7a
+DIST gliv-1.9.6.tar.bz2 518971 SHA256 aa0f3c780d5fca1eb393deaa5289c024bf3aba5b4f980fc90d4b444906534830 SHA512 bf6e7108308884d50dc47faec7d65ed27c2ea1521cfc526fb8929675d52b3437276da904c8240c5c227d7bca2d0c268311f4fdc9b2d936fecda33318ad6bce6c WHIRLPOOL 3e1690198a9b09355ac5afaf05ef6984f4f352868d0fd2be0087af3953fbf3a5efa01128e302770ee7df7cff0eea2b843213764207d0a4c3d16d2c25c6f8467b
+DIST gliv-1.9.7.tar.bz2 644305 SHA256 5be6d071927dcb371676a9e4e9e4c54e8b2f4842f04dd63727b9a5032ddbcb69 SHA512 c2276bde4b13d0dc910062e8cdec8836d751ce25e5120f4fd7987c9ba5bd62844a71a5e92c1ccf766393b47f2ff95fc3298051d3729e38696fccc024be388c4e WHIRLPOOL b7fb5fe0dad22cb4d64900227deb757df698b61123d243123e52dfe8f012d1f11952d0171b147f45fa299d4405e97dc331efa340149cc7b2eb2026d184147ab3
+EBUILD gliv-1.9.6.ebuild 908 SHA256 787a9aceb7f966f17189728ed91de8ce0e11a13fd8111d2335415b423cb9b036 SHA512 471c74c5c7210176e82e4d9f006957a670800e83774788af0d27889b178cf2b85978e1c92dc41357d4e306d1ff6e8ab6c1a1c8287da3217f7c85fb80e3d8280e WHIRLPOOL 2bab16a84d31e4d3a0588db86fa2325fec495fac340449442035392b5491f4fce3ea1c85bc022eddad85e3c24fab3b13ad703efbb1b884b266adc7e83a6d62bb
+EBUILD gliv-1.9.7.ebuild 972 SHA256 e63df27b67654d850b3e8a41690fba85575c0d0b4b9408226e37b3daafac4a18 SHA512 b3bfad666ab3aeb0abc354ce92a0f733e4618e5a8bf74b9e5de1b79b0c14e0087222150f3eb9c2d73f49f037b0ca4cedd89ecd020334b7de9cb141765dc7df5f WHIRLPOOL 1b9e86605735501e41f9cb3f67befccc21a460978aa137e437ea5a369900d2b9cf44eb8c9d882f15f130ea5ecce27640aebfc5d3d4974caf6036f1bfe5ae93d2
+MISC ChangeLog 2930 SHA256 74d2db9d22ad335fad1d5dfbb9f020d5147615a769952d3db92b6d105a9b1076 SHA512 a1da031213e6b7131bd586ea602b84e827b29806626103a13496bb5033824ba852313f201229ddc7d4b57c63c8b5f68b64bb859354f9d89efc24c06c6ad7ddd4 WHIRLPOOL af3eb7398472dc3d3e72f6340720ca19b8f39dd194be1c744f995e8418e6429b9796dfeb75cc6a252711e69596cfa884fd85298f551254415244833135e82950
+MISC ChangeLog-2015 5291 SHA256 7e1488730de71d1ee9427c7dee92b419ad3a9a735e7269b37ccf9c36093b2d6e SHA512 97cdca60090fe631f2531cabfbeb5107b385cf971b4322a1eda7cbb80b90cffa6f6b3619f489b94d43d077e95c2c2402742a883942dfbd5626417ddf24e90bee WHIRLPOOL 5861b660c958df49994705981f7eb2bb9a063c8d46ef419d3865af2937bcdb490c927978a674b84d017e514b986302fcf4123547d5b6b9e8c8ef90394eb7104a
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch b/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch
new file mode 100644
index 000000000000..3128b99e4435
--- /dev/null
+++ b/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch
@@ -0,0 +1,99 @@
+--- gliv-1.9.6.orig/configure.ac 2005-09-21 23:05:57.000000000 +0200
++++ gliv-1.9.6/configure.ac 2010-01-03 15:51:41.464539460 +0100
+@@ -16,18 +16,17 @@
+ # Checks for programs.
+ AC_PROG_CC
+ AC_PROG_RANLIB
+-
++AC_USE_SYSTEM_EXTENSIONS
+
+ # Default CFLAGS.
+-if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
+- CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
+-fi
+-CFLAGS="$CFLAGS -I${srcdir}/../lib"
++#if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
++# CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
++#fi
++#CFLAGS="$CFLAGS -I${srcdir}/../lib"
+
+ # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
+ AC_SYS_LARGEFILE
+
+-
+ AC_DEFUN([CHECK_MATH],
+ [OLD_CFLAGS="$CFLAGS"]
+ [CFLAGS="$CFLAGS -w"]
+@@ -127,35 +126,22 @@
+
+ # Checks for X.
+ AC_PATH_XTRA
+-CFLAGS="$X_CFLAGS $CFLAGS"
+-LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
+
+ # Checks for GtkGLExt.
+ PKG_CHECK_MODULES(GTKGLEXT, [gtkglext-1.0 >= 0.7.0])
+-CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
+-LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
+ GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
+
+ # Checks for OpenGL.
+-AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [ogl="yes"],
+- [ogl="no"])
+-
++AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],)
+ if test "x$ogl" = "xno"; then
+ AC_MSG_NOTICE([maybe libGL requires libpthread...])
+- OLD_LDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS -lpthread"
+- AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [],
+- AC_MSG_ERROR([cannot use -lGL]))
++ AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],[-lpthread])
+ fi
+
+ # Checks for gtk.
+ AM_PATH_GTK_2_0([2.6.0], [
+ CFLAGS="$GTK_CFLAGS $CFLAGS"
+- LDFLAGS="$GTK_LIBS $LDFLAGS"
++ LIBS="$LIBS $GTK_LIBS"
+ GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
+ ], [exit 1], [gthread])
+
+@@ -163,9 +149,6 @@
+ ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
+ AM_GNU_GETTEXT_VERSION
+ AM_GNU_GETTEXT
+-CFLAGS="$CFLAGS -I../${srcdir}/intl"
+-LIBS="$LIBS $LIBINTL"
+-
+
+ AC_CONFIG_FILES([
+ Makefile
+--- gliv-1.9.6.orig/src/Makefile.am 2006-11-18 15:21:13.000000000 +0100
++++ gliv-1.9.6/src/Makefile.am 2010-01-03 15:48:45.765539472 +0100
+@@ -64,6 +64,9 @@
+ gliv_LDADD = -L../lib -lreplacements
+ endif
+
++gliv_CFLAGS = @GTKGLEXT_CFLAGS@
++gliv_LDADD = @GTKGLEXT_LIBS@
++
+ AM_CPPFLAGS = -I$(srcdir)/include -D_REENTRANT -D_THREAD_SAFE \
+ -DSYSCONFDIR=\"$(sysconfdir)\"
+
+--- gliv-1.9.6.orig/po/Makefile.in.in 2006-11-18 15:21:13.000000000 +0100
++++ gliv-1.9.6/po/Makefile.in.in 2010-01-03 16:05:43.860539403 +0100
+@@ -29,7 +29,7 @@
+
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+-MKINSTALLDIRS = @MKINSTALLDIRS@
++MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs
+ mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
+
+ GMSGFMT = @GMSGFMT@
+
diff --git a/media-gfx/gliv/files/gliv-1.9.7-as-needed.patch b/media-gfx/gliv/files/gliv-1.9.7-as-needed.patch
new file mode 100644
index 000000000000..6998e5fd988d
--- /dev/null
+++ b/media-gfx/gliv/files/gliv-1.9.7-as-needed.patch
@@ -0,0 +1,87 @@
+--- gliv-1.9.7.orig/configure.ac
++++ gliv-1.9.7/configure.ac
+@@ -17,18 +17,17 @@
+ # Checks for programs.
+ AC_PROG_CC
+ AC_PROG_RANLIB
+-
++AC_USE_SYSTEM_EXTENSIONS
+
+ # Default CFLAGS.
+-if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
+- CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
+-fi
+-CFLAGS="$CFLAGS -I${srcdir}/../lib"
++#if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
++# CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
++#fi
++#CFLAGS="$CFLAGS -I${srcdir}/../lib"
+
+ # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
+ AC_SYS_LARGEFILE
+
+-
+ AC_DEFUN([CHECK_MATH],
+ [OLD_CFLAGS="$CFLAGS"]
+ [CFLAGS="$CFLAGS -w"]
+@@ -128,35 +127,22 @@
+
+ # Checks for X.
+ AC_PATH_XTRA
+-CFLAGS="$X_CFLAGS $CFLAGS"
+-LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
+
+ # Checks for GtkGLExt.
+ PKG_CHECK_MODULES(GTKGLEXT, [gtkglext-1.0 >= 0.7.0])
+-CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
+-LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
+ GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
+
+ # Checks for OpenGL.
+-AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [ogl="yes"],
+- [ogl="no"])
+-
++AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],)
+ if test "x$ogl" = "xno"; then
+ AC_MSG_NOTICE([maybe libGL requires libpthread...])
+- OLD_LDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS -lpthread"
+- AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [],
+- AC_MSG_ERROR([cannot use -lGL]))
++ AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],[-lpthread])
+ fi
+
+ # Checks for gtk.
+ AM_PATH_GTK_2_0([2.6.0], [
+ CFLAGS="$GTK_CFLAGS $CFLAGS"
+- LDFLAGS="$GTK_LIBS $LDFLAGS"
++ LIBS="$LIBS $GTK_LIBS"
+ GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
+ ], [exit 1], [gthread])
+
+@@ -164,9 +150,6 @@
+ ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
+ AM_GNU_GETTEXT_VERSION
+ AM_GNU_GETTEXT
+-CFLAGS="$CFLAGS -I../${srcdir}/intl"
+-LIBS="$LIBS $LIBINTL"
+-
+
+ AC_CONFIG_FILES([ intl/Makefile
+ Makefile
+--- gliv-1.9.7.orig/src/Makefile.am
++++ gliv-1.9.7/src/Makefile.am
+@@ -64,6 +64,9 @@
+ gliv_LDADD = -L../lib -lreplacements
+ endif
+
++gliv_CFLAGS = @GTKGLEXT_CFLAGS@
++gliv_LDADD = @GTKGLEXT_LIBS@
++
+ AM_CPPFLAGS = -I$(srcdir)/include -D_REENTRANT -D_THREAD_SAFE \
+ -DSYSCONFDIR=\"$(sysconfdir)\"
+
diff --git a/media-gfx/gliv/files/gliv-1.9.7-destdir.patch b/media-gfx/gliv/files/gliv-1.9.7-destdir.patch
new file mode 100644
index 000000000000..827c6adb10d8
--- /dev/null
+++ b/media-gfx/gliv/files/gliv-1.9.7-destdir.patch
@@ -0,0 +1,15 @@
+--- gliv-1.9.7/Makefile.am.orig
++++ gliv-1.9.7/Makefile.am
+@@ -31,9 +31,9 @@
+ @echo
+ @if desktop-file-install --help > /dev/null 2>&1; then \
+ echo "Installing the GLiv desktop file with desktop-file-install"; \
+- mkdir -p $(datadir)/{pixmaps,applications} || true; \
+- cp gliv.png $(datadir)/pixmaps/gliv.png || true; \
+- desktop-file-install --vendor=gnome --dir=$(datadir)/applications \
++ mkdir -p $(DESTDIR)$(datadir)/{pixmaps,applications} || true; \
++ cp gliv.png $(DESTDIR)$(datadir)/pixmaps/gliv.png || true; \
++ desktop-file-install --vendor=gnome --dir=$(DESTDIR)$(datadir)/applications \
+ gliv.desktop || true; \
+ else \
+ echo "No desktop-file-install(1), skipping gliv.desktop"; \
diff --git a/media-gfx/gliv/gliv-1.9.6.ebuild b/media-gfx/gliv/gliv-1.9.6.ebuild
new file mode 100644
index 000000000000..d68de9e05556
--- /dev/null
+++ b/media-gfx/gliv/gliv-1.9.6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit eutils autotools
+
+DESCRIPTION="An image viewer that uses OpenGL"
+HOMEPAGE="http://guichaz.free.fr/gliv/"
+SRC_URI="http://guichaz.free.fr/gliv/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND=">=x11-libs/gtk+-2.6:2
+ virtual/opengl
+ >x11-libs/gtkglext-1.0.6
+ nls? ( sys-devel/gettext )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/bison-1.875"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable nls)
+}
+
+src_install() {
+ # Needed if desktop-file-install is present, else we get
+ # sandbox violations.
+ export DESKTOP_FILE_INSTALL_DIR="${D}/usr/share/applications"
+
+ einstall || die "make install failed"
+ dodoc README NEWS THANKS
+}
diff --git a/media-gfx/gliv/gliv-1.9.7.ebuild b/media-gfx/gliv/gliv-1.9.7.ebuild
new file mode 100644
index 000000000000..9d1aac1ef1d3
--- /dev/null
+++ b/media-gfx/gliv/gliv-1.9.7.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools
+
+DESCRIPTION="An image viewer that uses OpenGL"
+HOMEPAGE="http://guichaz.free.fr/gliv/"
+SRC_URI="http://guichaz.free.fr/gliv/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND="
+ >=x11-libs/gtk+-2.6:2
+ virtual/opengl
+ >x11-libs/gtkglext-1.0.6
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )
+"
+
+src_prepare() {
+ # Fix build with gettext-0.19, bug #512624
+ # using gettextize no-interactive example from dev-util/bless package
+ if use nls; then
+ cp $(type -p gettextize) "${T}"/
+ sed -i -e 's:read dummy < /dev/tty::' "${T}/gettextize" || die
+ "${T}"/gettextize -f --no-changelog --intl > /dev/null
+ fi
+
+ epatch "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}/${P}-destdir.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/media-gfx/gliv/metadata.xml b/media-gfx/gliv/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/gliv/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>