diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2020-12-04 09:40:18 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2020-12-04 09:40:31 +0100 |
commit | ca3bd1792fd88a6cff69175382f84a45c20e07c1 (patch) | |
tree | c45b4ac3a0119b02ece380bb9798bae70d529e02 /x11-misc/grsync | |
parent | www-plugins/chrome-binary-plugins: automated update (89.0.4343.0) (diff) | |
download | gentoo-ca3bd1792fd88a6cff69175382f84a45c20e07c1.tar.gz gentoo-ca3bd1792fd88a6cff69175382f84a45c20e07c1.tar.bz2 gentoo-ca3bd1792fd88a6cff69175382f84a45c20e07c1.zip |
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>
Diffstat (limited to 'x11-misc/grsync')
-rw-r--r-- | x11-misc/grsync/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/grsync/files/grsync-1.3.0-desktop.patch | 24 | ||||
-rw-r--r-- | x11-misc/grsync/files/grsync-1.3.0-nested_func.patch | 21 | ||||
-rw-r--r-- | x11-misc/grsync/grsync-1.3.0.ebuild | 36 | ||||
-rw-r--r-- | x11-misc/grsync/metadata.xml | 3 |
5 files changed, 85 insertions, 0 deletions
diff --git a/x11-misc/grsync/Manifest b/x11-misc/grsync/Manifest index a342125ea8a5..3dddff176658 100644 --- a/x11-misc/grsync/Manifest +++ b/x11-misc/grsync/Manifest @@ -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 diff --git a/x11-misc/grsync/files/grsync-1.3.0-desktop.patch b/x11-misc/grsync/files/grsync-1.3.0-desktop.patch new file mode 100644 index 000000000000..5cdc49194371 --- /dev/null +++ b/x11-misc/grsync/files/grsync-1.3.0-desktop.patch @@ -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 diff --git a/x11-misc/grsync/files/grsync-1.3.0-nested_func.patch b/x11-misc/grsync/files/grsync-1.3.0-nested_func.patch new file mode 100644 index 000000000000..6d135674bac8 --- /dev/null +++ b/x11-misc/grsync/files/grsync-1.3.0-nested_func.patch @@ -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); diff --git a/x11-misc/grsync/grsync-1.3.0.ebuild b/x11-misc/grsync/grsync-1.3.0.ebuild new file mode 100644 index 000000000000..a941d3f0832e --- /dev/null +++ b/x11-misc/grsync/grsync-1.3.0.ebuild @@ -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) +} diff --git a/x11-misc/grsync/metadata.xml b/x11-misc/grsync/metadata.xml index dc71e24a084b..269ca1f3751e 100644 --- a/x11-misc/grsync/metadata.xml +++ b/x11-misc/grsync/metadata.xml @@ -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> |