mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-misc/grsync: 1.3.0 bump
Now supports GTK+3 Fix compilation with clang Fix desktop file Closes: https://bugs.gentoo.org/742788 Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST grsync-1.2.6.tar.gz 333540 BLAKE2B 20719580309aba5737b74e85629b21b9715ceb8d97bd00d1840a5eda0e04316439d90999b7b787cdf8b368fff90ba489dcfc3b91992dd599f7ae05f4a565f1e7 SHA512 a7aac0cf264c968d50896156730dc0b925045def6e513adf1f2783e19fd1cdd423aa69480963479b95927fb4e863f110f3fc0439661ef7cfcacc7376fe95ff1d
|
||||
DIST grsync-1.2.8.tar.gz 352885 BLAKE2B fc63db9b2739bc7a253b64cb1820a7c51c7408ebbe5bb950672b6ab08942726467a4966eea3da67c7c7e21e0acc703a06183d58e2fbcd1ec38370257b57bad63 SHA512 7feee6c405b20f147641e9a9a114645a7132345fcfc33c656a190aba0d2b7fedcd40f98328dfb0b123f38d8648d041a2f53cabbae0b8d53a243d3a6029bf0963
|
||||
DIST grsync-1.3.0.tar.gz 304725 BLAKE2B 4e58eb7db8082b733468b95db995a2e7f7f970cebe2b3eb614e0a828d2fb34bc20fc2163f8bca7d5d87e648cfe0dd45a0cd22319d6504e9bd491a6da462ee8a3 SHA512 2d2d9e7910f18e061c5259f51510cd5e3c14c1c15b649618ea096777531780c2d5821a7bb415cd762a695302146b4835d793d31c032667431e227ac11a7aa108
|
||||
|
||||
24
x11-misc/grsync/files/grsync-1.3.0-desktop.patch
Normal file
24
x11-misc/grsync/files/grsync-1.3.0-desktop.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff -Naur grsync-1.3.0.orig/configure.in grsync-1.3.0/configure.in
|
||||
--- grsync-1.3.0.orig/configure.in 2020-05-28 10:16:05.000000000 +0200
|
||||
+++ grsync-1.3.0/configure.in 2020-12-04 09:30:40.082105813 +0100
|
||||
@@ -30,7 +30,7 @@
|
||||
GTK_API_VERSION="2.0"
|
||||
fi
|
||||
pkg_modules="gtk+-$GTK_API_VERSION >= 2.16.0"
|
||||
-OTHER_DESKTOP_ENTRIES="Icon=grsync.png"
|
||||
+OTHER_DESKTOP_ENTRIES="Icon=grsync"
|
||||
MIMEINFO_XMLNS="xmlns='http://www.freedesktop.org/standards/shared-mime-info'"
|
||||
MIME_OSSOCAT=""
|
||||
|
||||
diff -Naur grsync-1.3.0.orig/grsync.desktop.in grsync-1.3.0/grsync.desktop.in
|
||||
--- grsync-1.3.0.orig/grsync.desktop.in 2015-09-11 13:21:28.000000000 +0200
|
||||
+++ grsync-1.3.0/grsync.desktop.in 2020-12-04 09:30:50.473110946 +0100
|
||||
@@ -4,7 +4,7 @@
|
||||
Terminal=false
|
||||
Type=Application
|
||||
MimeType=application/x-grsync-session;
|
||||
-Categories=Application;System;
|
||||
+Categories=System;
|
||||
GenericName=Synchronize files with rsync
|
||||
GenericName[fr]=Interface GTK pour rsync
|
||||
GenericName[it]=Sincronizza file con rsync
|
||||
21
x11-misc/grsync/files/grsync-1.3.0-nested_func.patch
Normal file
21
x11-misc/grsync/files/grsync-1.3.0-nested_func.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff -Naur grsync-1.3.0.orig/src/callbacks.c grsync-1.3.0/src/callbacks.c
|
||||
--- grsync-1.3.0.orig/src/callbacks.c 2020-11-23 14:52:42.000000000 +0100
|
||||
+++ grsync-1.3.0/src/callbacks.c 2020-12-04 09:18:27.573776667 +0100
|
||||
@@ -40,12 +40,12 @@
|
||||
gboolean more = FALSE, first = TRUE;
|
||||
|
||||
|
||||
-void dialog_set_labels_selectable(GtkWidget *dialog) {
|
||||
- void _set_label_selectable(gpointer data, gpointer user_data) {
|
||||
- GtkWidget *widget = GTK_WIDGET(data);
|
||||
- if (GTK_IS_LABEL(widget)) gtk_label_set_selectable(GTK_LABEL(widget), TRUE);
|
||||
- }
|
||||
+void _set_label_selectable(gpointer data, gpointer user_data) {
|
||||
+ GtkWidget *widget = GTK_WIDGET(data);
|
||||
+ if (GTK_IS_LABEL(widget)) gtk_label_set_selectable(GTK_LABEL(widget), TRUE);
|
||||
+}
|
||||
|
||||
+void dialog_set_labels_selectable(GtkWidget *dialog) {
|
||||
GtkWidget *area = gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog));
|
||||
GtkContainer *box = (GtkContainer *) area;
|
||||
GList *children = gtk_container_get_children(box);
|
||||
36
x11-misc/grsync/grsync-1.3.0.ebuild
Normal file
36
x11-misc/grsync/grsync-1.3.0.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit autotools xdg
|
||||
|
||||
DESCRIPTION="A gtk frontend to rsync"
|
||||
HOMEPAGE="http://www.opbyte.it/grsync/"
|
||||
SRC_URI="http://www.opbyte.it/release/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="+gtk3"
|
||||
|
||||
DEPEND="
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? ( >=x11-libs/gtk+-2.16:2 )"
|
||||
RDEPEND="${DEPEND}
|
||||
net-misc/rsync"
|
||||
BDEPEND="virtual/pkgconfig
|
||||
dev-util/intltool"
|
||||
|
||||
DOCS="AUTHORS NEWS README"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-desktop.patch
|
||||
"${FILESDIR}"/${P}-nested_func.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-unity $(use_enable gtk3)
|
||||
}
|
||||
@@ -5,4 +5,7 @@
|
||||
<email>voyageur@gentoo.org</email>
|
||||
<name>Bernard Cafarelli</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="gtk3">Link against <pkg>x11-libs/gtk+</pkg>:3 instead of <pkg>x11-libs/gtk+</pkg>:2</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user