public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: gnome-extra/eiciel/, gnome-extra/eiciel/files/
@ 2019-02-23 11:55 Pacho Ramos
  0 siblings, 0 replies; only message in thread
From: Pacho Ramos @ 2019-02-23 11:55 UTC (permalink / raw
  To: gentoo-commits

commit:     766cd1d201c98a15b7ea2e0d01dd50947fcc78c3
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 23 11:54:17 2019 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Feb 23 11:54:47 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766cd1d2

gnome-extra/eiciel: Multiple fixes

- nautilus extension is optional
- Build system takes care of adding -std=c++11 when needed
- Fix xattr header (#655744)
- gvfs looks to not be directly used

Closes: https://bugs.gentoo.org/655744
Closes: https://bugs.gentoo.org/565446
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 gnome-extra/eiciel/eiciel-0.9.12.1-r1.ebuild       | 40 +++++++++++++++++++++
 .../files/eiciel-0.9.12.1-xattr-header.patch       | 41 ++++++++++++++++++++++
 gnome-extra/eiciel/metadata.xml                    |  3 ++
 3 files changed, 84 insertions(+)

diff --git a/gnome-extra/eiciel/eiciel-0.9.12.1-r1.ebuild b/gnome-extra/eiciel/eiciel-0.9.12.1-r1.ebuild
new file mode 100644
index 00000000000..5949d07e856
--- /dev/null
+++ b/gnome-extra/eiciel/eiciel-0.9.12.1-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_EAUTORECONF="yes"
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2
+
+DESCRIPTION="ACL editor for GNOME, with Nautilus extension"
+HOMEPAGE="http://rofi.roger-ferrer.org/eiciel/"
+SRC_URI="http://rofi.roger-ferrer.org/eiciel/download/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nautilus xattr"
+
+RDEPEND="
+	>=sys-apps/acl-2.2.32
+	dev-cpp/gtkmm:3.0
+	nautilus? ( >=gnome-base/nautilus-3 )
+"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	>=sys-devel/gettext-0.18.1
+"
+
+PATCHES=(
+	# attr/xattr.h is deprecated. Use sys/xattr.h instead (from 'master')
+	"${FILESDIR}"/${P}-xattr-header.patch
+)
+
+src_configure() {
+	gnome2_src_configure \
+		--disable-static \
+		--with-gnome-version=3 \
+		$(use_enable nautilus nautilus-extension) \
+		$(use_enable xattr user-attributes)
+}

diff --git a/gnome-extra/eiciel/files/eiciel-0.9.12.1-xattr-header.patch b/gnome-extra/eiciel/files/eiciel-0.9.12.1-xattr-header.patch
new file mode 100644
index 00000000000..1b866f4bb75
--- /dev/null
+++ b/gnome-extra/eiciel/files/eiciel-0.9.12.1-xattr-header.patch
@@ -0,0 +1,41 @@
+From cf7e97ece39994d9c219bf3d4f3f70815e1c0867 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Tue, 15 May 2018 13:40:37 +0200
+Subject: [PATCH] attr/xattr.h is deprecated. Use sys/xattr.h instead
+
+See also:
+http://git.savannah.nongnu.org/cgit/attr.git/commit/?id=7921157890d07858d092f4003ca4c6bae9fd2c38
+---
+ configure.ac          | 2 +-
+ src/xattr_manager.hpp | 5 ++++-
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 040e88f..bc769f3 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -156,7 +156,7 @@ fi
+ 
+ if test x$enable_eua = xyes;
+ then
+-    AC_CHECK_HEADERS([attr/xattr.h], [], AC_MSG_ERROR([This header is mandatory for extended user attributes support]), [])
++    AC_CHECK_HEADERS([sys/xattr.h], [], AC_MSG_ERROR([This header is mandatory for extended user attributes support]), [])
+     AC_DEFINE([ENABLE_USER_XATTR], [1], [Enables user extended attributes support])
+ fi
+ AM_CONDITIONAL(ENABLE_USER_XATTR, test x$enable_eua = xyes)
+diff --git a/src/xattr_manager.hpp b/src/xattr_manager.hpp
+index 5f59e17..3d41443 100644
+--- a/src/xattr_manager.hpp
++++ b/src/xattr_manager.hpp
+@@ -26,7 +26,10 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+ 
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
++#ifndef ENOATTR
++#define ENOATTR ENODATA
++#endif
+ 
+ #include <string>
+ #include <cstring>

diff --git a/gnome-extra/eiciel/metadata.xml b/gnome-extra/eiciel/metadata.xml
index 39980802b1d..0038ff87282 100644
--- a/gnome-extra/eiciel/metadata.xml
+++ b/gnome-extra/eiciel/metadata.xml
@@ -5,4 +5,7 @@
 	<email>gnome@gentoo.org</email>
 	<name>Gentoo GNOME Desktop</name>
 </maintainer>
+<use>
+	<flag name="nautilus">Build gnome-base/nautilus extension</flag>
+</use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-23 11:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-23 11:55 [gentoo-commits] repo/gentoo:master commit in: gnome-extra/eiciel/, gnome-extra/eiciel/files/ Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox