From d91becd012739e4da90aa0aba2c9dd8358507d8b Mon Sep 17 00:00:00 2001 From: tnn Date: Sat, 3 Oct 2015 16:28:55 +0000 Subject: Import syncthing-gtk-0.7.5.1 as net/syncthing-gtk. GTK3 & python based GUI for Syncthing. --- net/syncthing-gtk/DESCR | 1 + net/syncthing-gtk/Makefile | 42 +++++++ net/syncthing-gtk/PLIST | 183 +++++++++++++++++++++++++++++++ net/syncthing-gtk/distinfo | 6 + net/syncthing-gtk/patches/patch-setup.py | 20 ++++ 5 files changed, 252 insertions(+) create mode 100644 net/syncthing-gtk/DESCR create mode 100644 net/syncthing-gtk/Makefile create mode 100644 net/syncthing-gtk/PLIST create mode 100644 net/syncthing-gtk/distinfo create mode 100644 net/syncthing-gtk/patches/patch-setup.py (limited to 'net') diff --git a/net/syncthing-gtk/DESCR b/net/syncthing-gtk/DESCR new file mode 100644 index 00000000000..87268cb7520 --- /dev/null +++ b/net/syncthing-gtk/DESCR @@ -0,0 +1 @@ +GTK3 & python based GUI for Syncthing. diff --git a/net/syncthing-gtk/Makefile b/net/syncthing-gtk/Makefile new file mode 100644 index 00000000000..e7e82bec217 --- /dev/null +++ b/net/syncthing-gtk/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1 2015/10/03 16:28:55 tnn Exp $ + +DISTNAME= syncthing-gtk-0.7.5.1 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_GITHUB:=syncthing/} +GITHUB_PROJECT= syncthing-gtk +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/syncthing/syncthing-gtk +COMMENT= GTK3 & python based GUI for Syncthing +LICENSE= gnu-gpl-v2 + +DEPENDS+= syncthing>=0.11.0:../../net/syncthing +DEPENDS+= psmisc-[0-9]*:../../sysutils/psmisc # for killall + +PYTHON_VERSIONS_ACCEPTED= 27 +PYTHON_VERSIONED_DEPENDENCIES= dateutil + +REPLACE_PYTHON+= *.py scripts/*.py syncthing_gtk/*.py + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= pre-build +SUBST_MESSAGE.paths= Fixing hard-coded paths +SUBST_FILES.paths= scripts/syncthing-gtk +SUBST_FILES.paths+= syncthing-gtk.desktop +SUBST_FILES.paths+= syncthing_gtk/app.py +SUBST_FILES.paths+= syncthing_gtk/uisettingsdialog.py +SUBST_FILES.paths+= syncthing_gtk/wizard.py +SUBST_SED.paths= -e 's|/usr/share/syncthing-gtk|${PREFIX}/share/syncthing-gtk|' + +.include "../../devel/py-gobject3/buildlink3.mk" +BUILDLINK_API_DEPENDS.librsvg+= librsvg>=2.40.9nb2 # for introspection +.include "../../graphics/librsvg/buildlink3.mk" +.include "../../lang/python/application.mk" +.include "../../lang/python/versioned_dependencies.mk" +.include "../../lang/python/egg.mk" +.include "../../graphics/hicolor-icon-theme/buildlink3.mk" +# XXX --single-version-externally-managed comes from egg.mk, setup.py does not understand this +_PYSETUPTOOLSINSTALLARGS:=${_PYSETUPTOOLSINSTALLARGS:N--single-version-externally-managed} +.include "../../sysutils/desktop-file-utils/desktopdb.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/syncthing-gtk/PLIST b/net/syncthing-gtk/PLIST new file mode 100644 index 00000000000..ca0be170645 --- /dev/null +++ b/net/syncthing-gtk/PLIST @@ -0,0 +1,183 @@ +@comment $NetBSD: PLIST,v 1.1 2015/10/03 16:28:55 tnn Exp $ +bin/syncthing-gtk +${PYSITELIB}/syncthing_gtk/__init__.py +${PYSITELIB}/syncthing_gtk/__init__.pyc +${PYSITELIB}/syncthing_gtk/__init__.pyo +${PYSITELIB}/syncthing_gtk/aboutdialog.py +${PYSITELIB}/syncthing_gtk/aboutdialog.pyc +${PYSITELIB}/syncthing_gtk/aboutdialog.pyo +${PYSITELIB}/syncthing_gtk/app.py +${PYSITELIB}/syncthing_gtk/app.pyc +${PYSITELIB}/syncthing_gtk/app.pyo +${PYSITELIB}/syncthing_gtk/configuration.py +${PYSITELIB}/syncthing_gtk/configuration.pyc +${PYSITELIB}/syncthing_gtk/configuration.pyo +${PYSITELIB}/syncthing_gtk/daemon.py +${PYSITELIB}/syncthing_gtk/daemon.pyc +${PYSITELIB}/syncthing_gtk/daemon.pyo +${PYSITELIB}/syncthing_gtk/daemonoutputdialog.py +${PYSITELIB}/syncthing_gtk/daemonoutputdialog.pyc +${PYSITELIB}/syncthing_gtk/daemonoutputdialog.pyo +${PYSITELIB}/syncthing_gtk/daemonprocess.py +${PYSITELIB}/syncthing_gtk/daemonprocess.pyc +${PYSITELIB}/syncthing_gtk/daemonprocess.pyo +${PYSITELIB}/syncthing_gtk/daemonsettings.py +${PYSITELIB}/syncthing_gtk/daemonsettings.pyc +${PYSITELIB}/syncthing_gtk/daemonsettings.pyo +${PYSITELIB}/syncthing_gtk/deviceeditor.py +${PYSITELIB}/syncthing_gtk/deviceeditor.pyc +${PYSITELIB}/syncthing_gtk/deviceeditor.pyo +${PYSITELIB}/syncthing_gtk/editordialog.py +${PYSITELIB}/syncthing_gtk/editordialog.pyc +${PYSITELIB}/syncthing_gtk/editordialog.pyo +${PYSITELIB}/syncthing_gtk/fakerevealer.py +${PYSITELIB}/syncthing_gtk/fakerevealer.pyc +${PYSITELIB}/syncthing_gtk/fakerevealer.pyo +${PYSITELIB}/syncthing_gtk/finddaemondialog.py +${PYSITELIB}/syncthing_gtk/finddaemondialog.pyc +${PYSITELIB}/syncthing_gtk/finddaemondialog.pyo +${PYSITELIB}/syncthing_gtk/foldereditor.py +${PYSITELIB}/syncthing_gtk/foldereditor.pyc +${PYSITELIB}/syncthing_gtk/foldereditor.pyo +${PYSITELIB}/syncthing_gtk/iddialog.py +${PYSITELIB}/syncthing_gtk/iddialog.pyc +${PYSITELIB}/syncthing_gtk/iddialog.pyo +${PYSITELIB}/syncthing_gtk/identicon.py +${PYSITELIB}/syncthing_gtk/identicon.pyc +${PYSITELIB}/syncthing_gtk/identicon.pyo +${PYSITELIB}/syncthing_gtk/ignoreeditor.py +${PYSITELIB}/syncthing_gtk/ignoreeditor.pyc +${PYSITELIB}/syncthing_gtk/ignoreeditor.pyo +${PYSITELIB}/syncthing_gtk/infobox.py +${PYSITELIB}/syncthing_gtk/infobox.pyc +${PYSITELIB}/syncthing_gtk/infobox.pyo +${PYSITELIB}/syncthing_gtk/nautilusplugin.py +${PYSITELIB}/syncthing_gtk/nautilusplugin.pyc +${PYSITELIB}/syncthing_gtk/nautilusplugin.pyo +${PYSITELIB}/syncthing_gtk/notifications.py +${PYSITELIB}/syncthing_gtk/notifications.pyc +${PYSITELIB}/syncthing_gtk/notifications.pyo +${PYSITELIB}/syncthing_gtk/ribar.py +${PYSITELIB}/syncthing_gtk/ribar.pyc +${PYSITELIB}/syncthing_gtk/ribar.pyo +${PYSITELIB}/syncthing_gtk/statusicon.py +${PYSITELIB}/syncthing_gtk/statusicon.pyc +${PYSITELIB}/syncthing_gtk/statusicon.pyo +${PYSITELIB}/syncthing_gtk/stdownloader.py +${PYSITELIB}/syncthing_gtk/stdownloader.pyc +${PYSITELIB}/syncthing_gtk/stdownloader.pyo +${PYSITELIB}/syncthing_gtk/timermanager.py +${PYSITELIB}/syncthing_gtk/timermanager.pyc +${PYSITELIB}/syncthing_gtk/timermanager.pyo +${PYSITELIB}/syncthing_gtk/tools.py +${PYSITELIB}/syncthing_gtk/tools.pyc +${PYSITELIB}/syncthing_gtk/tools.pyo +${PYSITELIB}/syncthing_gtk/uibuilder.py +${PYSITELIB}/syncthing_gtk/uibuilder.pyc +${PYSITELIB}/syncthing_gtk/uibuilder.pyo +${PYSITELIB}/syncthing_gtk/uisettingsdialog.py +${PYSITELIB}/syncthing_gtk/uisettingsdialog.pyc +${PYSITELIB}/syncthing_gtk/uisettingsdialog.pyo +${PYSITELIB}/syncthing_gtk/watcher.py +${PYSITELIB}/syncthing_gtk/watcher.pyc +${PYSITELIB}/syncthing_gtk/watcher.pyo +${PYSITELIB}/syncthing_gtk/windows.py +${PYSITELIB}/syncthing_gtk/windows.pyc +${PYSITELIB}/syncthing_gtk/windows.pyo +${PYSITELIB}/syncthing_gtk/wizard.py +${PYSITELIB}/syncthing_gtk/wizard.pyc +${PYSITELIB}/syncthing_gtk/wizard.pyo +share/applications/syncthing-gtk.desktop +share/icons/hicolor/128x128/apps/syncthing-gtk.png +share/icons/hicolor/16x16/apps/si-idle.png +share/icons/hicolor/16x16/apps/si-syncing-0.png +share/icons/hicolor/16x16/apps/si-syncing-1.png +share/icons/hicolor/16x16/apps/si-syncing-10.png +share/icons/hicolor/16x16/apps/si-syncing-11.png +share/icons/hicolor/16x16/apps/si-syncing-2.png +share/icons/hicolor/16x16/apps/si-syncing-3.png +share/icons/hicolor/16x16/apps/si-syncing-4.png +share/icons/hicolor/16x16/apps/si-syncing-5.png +share/icons/hicolor/16x16/apps/si-syncing-6.png +share/icons/hicolor/16x16/apps/si-syncing-7.png +share/icons/hicolor/16x16/apps/si-syncing-8.png +share/icons/hicolor/16x16/apps/si-syncing-9.png +share/icons/hicolor/16x16/apps/si-unknown.png +share/icons/hicolor/16x16/apps/syncthing-gtk.png +share/icons/hicolor/24x24/apps/si-idle.png +share/icons/hicolor/24x24/apps/si-syncing-0.png +share/icons/hicolor/24x24/apps/si-syncing-1.png +share/icons/hicolor/24x24/apps/si-syncing-10.png +share/icons/hicolor/24x24/apps/si-syncing-11.png +share/icons/hicolor/24x24/apps/si-syncing-2.png +share/icons/hicolor/24x24/apps/si-syncing-3.png +share/icons/hicolor/24x24/apps/si-syncing-4.png +share/icons/hicolor/24x24/apps/si-syncing-5.png +share/icons/hicolor/24x24/apps/si-syncing-6.png +share/icons/hicolor/24x24/apps/si-syncing-7.png +share/icons/hicolor/24x24/apps/si-syncing-8.png +share/icons/hicolor/24x24/apps/si-syncing-9.png +share/icons/hicolor/24x24/apps/si-unknown.png +share/icons/hicolor/24x24/apps/syncthing-gtk.png +share/icons/hicolor/256x256/apps/syncthing-gtk.png +share/icons/hicolor/32x32/apps/si-idle.png +share/icons/hicolor/32x32/apps/si-syncing-0.png +share/icons/hicolor/32x32/apps/si-syncing-1.png +share/icons/hicolor/32x32/apps/si-syncing-10.png +share/icons/hicolor/32x32/apps/si-syncing-11.png +share/icons/hicolor/32x32/apps/si-syncing-2.png +share/icons/hicolor/32x32/apps/si-syncing-3.png +share/icons/hicolor/32x32/apps/si-syncing-4.png +share/icons/hicolor/32x32/apps/si-syncing-5.png +share/icons/hicolor/32x32/apps/si-syncing-6.png +share/icons/hicolor/32x32/apps/si-syncing-7.png +share/icons/hicolor/32x32/apps/si-syncing-8.png +share/icons/hicolor/32x32/apps/si-syncing-9.png +share/icons/hicolor/32x32/apps/si-unknown.png +share/icons/hicolor/32x32/apps/syncthing-gtk.png +share/icons/hicolor/64x64/apps/syncthing-gtk-error.png +share/icons/hicolor/64x64/apps/syncthing-gtk.png +share/icons/hicolor/64x64/emblems/emblem-syncthing-active.png +share/icons/hicolor/64x64/emblems/emblem-syncthing-error.png +share/icons/hicolor/64x64/emblems/emblem-syncthing-offline.png +share/icons/hicolor/64x64/emblems/emblem-syncthing.png +share/pixmaps/syncthing-gtk.png +share/syncthing-gtk/about.glade +share/syncthing-gtk/app.glade +share/syncthing-gtk/daemon-output.glade +share/syncthing-gtk/daemon-settings.glade +share/syncthing-gtk/device-edit.glade +share/syncthing-gtk/device-id.glade +share/syncthing-gtk/find-daemon.glade +share/syncthing-gtk/folder-edit.glade +share/syncthing-gtk/icons/add_node.svg +share/syncthing-gtk/icons/add_repo.svg +share/syncthing-gtk/icons/address.svg +share/syncthing-gtk/icons/announce.svg +share/syncthing-gtk/icons/clock.svg +share/syncthing-gtk/icons/compress.svg +share/syncthing-gtk/icons/cpu.svg +share/syncthing-gtk/icons/dl_rate.svg +share/syncthing-gtk/icons/eye.svg +share/syncthing-gtk/icons/folder.svg +share/syncthing-gtk/icons/global.svg +share/syncthing-gtk/icons/home.svg +share/syncthing-gtk/icons/ignore.svg +share/syncthing-gtk/icons/lock.svg +share/syncthing-gtk/icons/ram.svg +share/syncthing-gtk/icons/rescan.svg +share/syncthing-gtk/icons/restart.png +share/syncthing-gtk/icons/settings.png +share/syncthing-gtk/icons/shared.svg +share/syncthing-gtk/icons/show_id.svg +share/syncthing-gtk/icons/shutdown.png +share/syncthing-gtk/icons/st-gtk-logo.png +share/syncthing-gtk/icons/sync.svg +share/syncthing-gtk/icons/thumb_up.svg +share/syncthing-gtk/icons/up_rate.svg +share/syncthing-gtk/icons/version.svg +share/syncthing-gtk/ignore-editor.glade +share/syncthing-gtk/syncthing-plugin-caja.py +share/syncthing-gtk/syncthing-plugin-nautilus.py +share/syncthing-gtk/syncthing-plugin-nemo.py +share/syncthing-gtk/ui-settings.glade diff --git a/net/syncthing-gtk/distinfo b/net/syncthing-gtk/distinfo new file mode 100644 index 00000000000..4a7bf8e21a8 --- /dev/null +++ b/net/syncthing-gtk/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2015/10/03 16:28:55 tnn Exp $ + +SHA1 (syncthing-gtk-0.7.5.1.tar.gz) = 655621e93c30960f3b2ae2a9259580756a183f8e +RMD160 (syncthing-gtk-0.7.5.1.tar.gz) = c2799f219accc2180e46129505c338271ee85ef9 +Size (syncthing-gtk-0.7.5.1.tar.gz) = 486734 bytes +SHA1 (patch-setup.py) = ff8903385570aa2b9b40b8cb41059b16e01370ed diff --git a/net/syncthing-gtk/patches/patch-setup.py b/net/syncthing-gtk/patches/patch-setup.py new file mode 100644 index 00000000000..18f85afac25 --- /dev/null +++ b/net/syncthing-gtk/patches/patch-setup.py @@ -0,0 +1,20 @@ +$NetBSD: patch-setup.py,v 1.1 2015/10/03 16:28:56 tnn Exp $ + +Avoid calling git. + +--- setup.py.orig 2015-02-12 13:40:21.000000000 +0000 ++++ setup.py +@@ -9,13 +9,6 @@ def get_version(): + Returns current package version using git-describe or examining + path. If both methods fails, returns 'unknown'. + """ +- try: +- p = Popen(['git', 'describe', '--tags', '--match', 'v*'], stdout=PIPE) +- version = p.communicate()[0].strip("\n\r \t") +- if p.returncode != 0: +- raise Exception("git-describe failed") +- return version +- except: pass + # Git-describe method failed, try to guess from working directory name + path = os.getcwd().split(os.path.sep) + version = 'unknown' -- cgit v1.2.3