x11-plugins/fsviewer: fix compilation with gcc5, EAPI6 update
authorBernard Cafarelli <voyageur@gentoo.org>
Thu, 14 Apr 2016 09:41:25 +0000 (11:41 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 14 Apr 2016 09:42:04 +0000 (11:42 +0200)
Package-Manager: portage-2.2.28

x11-plugins/fsviewer/files/fsviewer-0.2.6-configure.patch
x11-plugins/fsviewer/files/fsviewer-0.2.6-gcc5.patch [new file with mode: 0644]
x11-plugins/fsviewer/fsviewer-0.2.6-r2.ebuild [new file with mode: 0644]

index 61640e0cda75237e758a4892de09e20f505725ce..2d1759fefce5806ac92f40dddc3ab43ce713ebc8 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.orig  2007-10-13 23:54:47.000000000 +0200
-+++ configure.ac       2015-09-02 21:10:40.829519545 +0200
+--- fsviewer-app-0.2.6.orig/configure.ac       2007-10-13 23:54:47.000000000 +0200
++++ fsviewer-app-0.2.6/configure.ac    2015-09-02 21:10:40.829519545 +0200
 @@ -26,15 +26,15 @@
  dnl look for X windows first so further libs check
  AC_PATH_X 
diff --git a/x11-plugins/fsviewer/files/fsviewer-0.2.6-gcc5.patch b/x11-plugins/fsviewer/files/fsviewer-0.2.6-gcc5.patch
new file mode 100644 (file)
index 0000000..2a53262
--- /dev/null
@@ -0,0 +1,11 @@
+--- fsviewer-app-0.2.6.orig/src/list.h
++++ fsviewer-app-0.2.6/src/list.h
+@@ -29,7 +29,7 @@
+ #ifndef __LIST_H_
+ #define __LIST_H_
+-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
++#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && (__GNUC__ < 5)
+ # define INLINE inline
+ #else
+ # define INLINE
diff --git a/x11-plugins/fsviewer/fsviewer-0.2.6-r2.ebuild b/x11-plugins/fsviewer/fsviewer-0.2.6-r2.ebuild
new file mode 100644 (file)
index 0000000..0185fc1
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools multilib
+
+MY_P=${PN}-app-${PV}
+
+DESCRIPTION="A file system viewer for Window Maker"
+HOMEPAGE="http://www.bayernline.de/~gscholz/linux/fsviewer/"
+SRC_URI="http://www.bayernline.de/~gscholz/linux/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls"
+
+RDEPEND=">=x11-wm/windowmaker-0.95.2
+       x11-libs/libXft
+       x11-libs/libXpm
+       x11-libs/libX11"
+DEPEND="${RDEPEND}
+       x11-proto/xproto
+       nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+       "${FILESDIR}"/${P}-configure.patch
+       "${FILESDIR}"/${P}-gcc5.patch
+       "${FILESDIR}"/${P}-wmaker-0.95_support.patch
+       "${FILESDIR}"/${P}-fix_title_bar.patch
+)
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable nls) \
+               --with-appspath=/usr/$(get_libdir)/GNUstep
+}
+
+src_install() {
+       default
+       dosym /usr/$(get_libdir)/GNUstep/FSViewer.app/FSViewer /usr/bin/FSViewer
+}