Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/file-roller/, app-arch/file-roller/files/
Date: Sat, 19 Dec 2015 22:44:36
Message-Id: 1450565054.a13b62985794eea5611c6a765d6b585e5807dd51.sping@gentoo
1 commit: a13b62985794eea5611c6a765d6b585e5807dd51
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 19 22:39:08 2015 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 19 22:44:14 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a13b6298
7
8 app-arch/file-roller: Apply bugfix patch accepted upstream
9
10 https://bugzilla.gnome.org/show_bug.cgi?id=757793
11
12 Package-Manager: portage-2.2.26
13
14 app-arch/file-roller/file-roller-3.16.4-r1.ebuild | 94 ++++++++++++++++++++++
15 .../files/file-roller-3.16.4-bug-757793.patch | 25 ++++++
16 2 files changed, 119 insertions(+)
17
18 diff --git a/app-arch/file-roller/file-roller-3.16.4-r1.ebuild b/app-arch/file-roller/file-roller-3.16.4-r1.ebuild
19 new file mode 100644
20 index 0000000..d58e1fe
21 --- /dev/null
22 +++ b/app-arch/file-roller/file-roller-3.16.4-r1.ebuild
23 @@ -0,0 +1,94 @@
24 +# Copyright 1999-2015 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI="5"
29 +GCONF_DEBUG="no"
30 +GNOME2_LA_PUNT="yes"
31 +
32 +inherit eutils gnome2 readme.gentoo
33 +
34 +DESCRIPTION="Archive manager for GNOME"
35 +HOMEPAGE="https://wiki.gnome.org/Apps/FileRoller"
36 +
37 +LICENSE="GPL-2+ CC-BY-SA-3.0"
38 +SLOT="0"
39 +IUSE="nautilus packagekit"
40 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
41 +
42 +# gdk-pixbuf used extensively in the source
43 +# cairo used in eggtreemultidnd.c
44 +# pango used in fr-window
45 +RDEPEND="
46 + >=app-arch/libarchive-3:=
47 + >=dev-libs/glib-2.36:2
48 + >=dev-libs/json-glib-0.14
49 + >=x11-libs/gtk+-3.13.2:3
50 + >=x11-libs/libnotify-0.4.3:=
51 + sys-apps/file
52 + x11-libs/cairo
53 + x11-libs/gdk-pixbuf:2
54 + x11-libs/pango
55 + nautilus? ( >=gnome-base/nautilus-3 )
56 + packagekit? ( app-admin/packagekit-base )
57 +"
58 +DEPEND="${RDEPEND}
59 + dev-util/desktop-file-utils
60 + >=dev-util/intltool-0.40.0
61 + dev-util/itstool
62 + sys-devel/gettext
63 + virtual/pkgconfig
64 +"
65 +# eautoreconf needs:
66 +# gnome-base/gnome-common
67 +
68 +DISABLE_AUTOFORMATTING="yes"
69 +DOC_CONTENTS="
70 +${PN} is a frontend for several archiving utilities. If you want a
71 +particular archive format support, see ${HOMEPAGE}
72 +and install the relevant package. For example:
73 +7-zip - app-arch/p7zip
74 +ace - app-arch/unace
75 +arj - app-arch/arj
76 +cpio - app-arch/cpio
77 +deb - app-arch/dpkg
78 +iso - app-cdr/cdrtools
79 +jar,zip - app-arch/zip and app-arch/unzip
80 +lha - app-arch/lha
81 +lzop - app-arch/lzop
82 +rar - app-arch/unrar or app-arch/unar
83 +rpm - app-arch/rpm
84 +unstuff - app-arch/stuffit
85 +zoo - app-arch/zoo"
86 +
87 +src_prepare() {
88 + # File providing Gentoo package names for various archivers
89 + cp -f "${FILESDIR}"/3.6.0-packages.match data/packages.match || die
90 + gnome2_src_prepare
91 +
92 + # https://bugzilla.gnome.org/show_bug.cgi?id=757793
93 + epatch "${FILESDIR}"/${P}-bug-757793.patch
94 +}
95 +
96 +src_configure() {
97 + DOCS="AUTHORS ChangeLog HACKING MAINTAINERS NEWS README* TODO"
98 + # --disable-debug because enabling it adds -O0 to CFLAGS
99 + gnome2_src_configure \
100 + --disable-run-in-place \
101 + --disable-static \
102 + --disable-debug \
103 + --enable-magic \
104 + --enable-libarchive \
105 + $(use_enable nautilus nautilus-actions) \
106 + $(use_enable packagekit)
107 +}
108 +
109 +src_install() {
110 + gnome2_src_install
111 + readme.gentoo_create_doc
112 +}
113 +
114 +pkg_postinst() {
115 + gnome2_pkg_postinst
116 + readme.gentoo_print_elog
117 +}
118
119 diff --git a/app-arch/file-roller/files/file-roller-3.16.4-bug-757793.patch b/app-arch/file-roller/files/file-roller-3.16.4-bug-757793.patch
120 new file mode 100644
121 index 0000000..9256c1d
122 --- /dev/null
123 +++ b/app-arch/file-roller/files/file-roller-3.16.4-bug-757793.patch
124 @@ -0,0 +1,25 @@
125 +From b9308bac8f93c047d0ce7a3b52e9b5f09adf2c86 Mon Sep 17 00:00:00 2001
126 +From: Sebastian Pipping <sebastian@×××××××.org>
127 +Date: Sun, 6 Dec 2015 15:23:31 +0100
128 +Subject: [PATCH] Stop mis-treating p7zip 15.09 as pre-4.55 (#757793)
129 +
130 +---
131 + src/fr-command-7z.c | 2 +-
132 + 1 file changed, 1 insertion(+), 1 deletion(-)
133 +
134 +diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
135 +index fc33d4d..1befbf5 100644
136 +--- a/src/fr-command-7z.c
137 ++++ b/src/fr-command-7z.c
138 +@@ -98,7 +98,7 @@ list__process_line (char *line,
139 + strncpy (version, ver_start, ver_len);
140 + version[ver_len] = 0;
141 +
142 +- if (strcmp (version, "4.55") < 0)
143 ++ if ((strcmp (version, "4.55") < 0) && (ver_len > 1) && (version[1] == '.'))
144 + self->old_style = TRUE;
145 + else
146 + self->old_style = FALSE;
147 +--
148 +2.6.3
149 +