diff options
author | madpilot <madpilot@FreeBSD.org> | 2019-09-13 23:46:26 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2019-09-13 23:46:26 +0800 |
commit | 6d543ddf328c0f799b3d0de483f954e551d1bf14 (patch) | |
tree | c66207f78457946ae85964d454d8d47c55040241 | |
parent | b8f95f7cf281bc0cc7fbe697c76d5d5e91b46dd3 (diff) | |
download | freebsd-ports-gnome-6d543ddf328c0f799b3d0de483f954e551d1bf14.tar.gz freebsd-ports-gnome-6d543ddf328c0f799b3d0de483f954e551d1bf14.tar.zst freebsd-ports-gnome-6d543ddf328c0f799b3d0de483f954e551d1bf14.zip |
- Update catfish to 1.4.10
- Upstream removed gksu support, escalation now provided by polkit
and/or sudo
- Install man page in correct location and compress it
- Silence some portlint warnings
Extra pathces provided by Olivier Duchateau <duchateau.olivier@gmail.com>
-rw-r--r-- | sysutils/catfish/Makefile | 24 | ||||
-rw-r--r-- | sysutils/catfish/distinfo | 6 | ||||
-rw-r--r-- | sysutils/catfish/files/patch-catfish_CatfishWindow.py | 28 | ||||
-rw-r--r-- | sysutils/catfish/files/patch-catfish__lib_SudoDialog.py | 23 | ||||
-rw-r--r-- | sysutils/catfish/files/patch-catfish__lib_catfishconfig.py | 22 | ||||
-rw-r--r-- | sysutils/catfish/pkg-plist | 12 |
6 files changed, 106 insertions, 9 deletions
diff --git a/sysutils/catfish/Makefile b/sysutils/catfish/Makefile index 50b6f7bc81a0..3482681c7faf 100644 --- a/sysutils/catfish/Makefile +++ b/sysutils/catfish/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= catfish -PORTVERSION= 1.4.8 +PORTVERSION= 1.4.10 CATEGORIES= sysutils MASTER_SITES= XFCE/apps DIST_SUBDIR= xfce4 @@ -14,21 +14,35 @@ LICENSE= GPLv3 RUN_DEPENDS= \ ${PYTHON_PKGNAMEPREFIX}python-distutils-extra>0:devel/py-python-distutils-extra@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \ - gksu:sysutils/gksu + ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} BUILD_DEPENDS= ${RUN_DEPENDS} USES= desktop-file-utils gettext-tools gnome python:2.7 tar:bz2 -NO_ARCH= yes USE_PYTHON= distutils USE_GNOME= gtk30 intltool pygobject3 +NO_ARCH= yes +INSTALLS_ICONS= yes + OPTIONS_DEFINE= DOCS ZEITGEIST -OPTIONS_DEFAULT=ZEITGEIST +OPTIONS_DEFAULT=ZEITGEIST POLKIT +OPTIONS_MULTI= PRIVILEGES +OPTIONS_MULTI_PRIVILEGES= POLKIT SUDO + +POLKIT_DESC= Provide Polkit (pkexec) support +POLKIT_RUN_DEPENDS= pkexec:sysutils/polkit + +SUDO_DESC= Provide sudo support +SUDO_RUN_DEPENDS= sudo:security/sudo ZEITGEIST_DESC= Provide recent search suggestions ZEITGEIST_LIB_DEPENDS= libzeitgeist-2.0.so:sysutils/zeitgeist +post-install: + ${MV} ${STAGEDIR}${PREFIX}/share/man/man1/catfish.1 ${STAGEDIR}${PREFIX}/man/man1/catfish.1 + (cd ${STAGEDIR}${PREFIX}/share && ${RMDIR} -p man/man1) + ${GZIP} ${STAGEDIR}${PREFIX}/man/man1/catfish.1 + .include <bsd.port.pre.mk> PYDISTUTILS_INSTALLARGS= -c -O1 --prefix=${PREFIX} --root=${STAGEDIR} diff --git a/sysutils/catfish/distinfo b/sysutils/catfish/distinfo index c7c4d23c1c4a..53c9f7b34e53 100644 --- a/sysutils/catfish/distinfo +++ b/sysutils/catfish/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1564305030 -SHA256 (xfce4/catfish-1.4.8.tar.bz2) = f3babed77a1059f1894c0ca1792887a6c9c77e76808923c1c6727d5ea59fd84c -SIZE (xfce4/catfish-1.4.8.tar.bz2) = 181027 +TIMESTAMP = 1568376958 +SHA256 (xfce4/catfish-1.4.10.tar.bz2) = 2573a004105031f871c92fed22a0c4b15bb96f2dff6e36c4f2959f56b62e343d +SIZE (xfce4/catfish-1.4.10.tar.bz2) = 213951 diff --git a/sysutils/catfish/files/patch-catfish_CatfishWindow.py b/sysutils/catfish/files/patch-catfish_CatfishWindow.py new file mode 100644 index 000000000000..6121c1d8535f --- /dev/null +++ b/sysutils/catfish/files/patch-catfish_CatfishWindow.py @@ -0,0 +1,28 @@ +--- catfish/CatfishWindow.py.orig 2019-07-27 11:21:22 UTC ++++ catfish/CatfishWindow.py +@@ -22,6 +22,7 @@ import logging + import mimetypes + import os + import subprocess ++import sys + import time + from locale import gettext as _ + from shutil import copy2, rmtree +@@ -738,9 +739,15 @@ class CatfishWindow(Window): + self.update_index_unlock.set_sensitive(False) + + if SudoDialog.prefer_pkexec(): +- self.updatedb_process = SudoDialog.env_spawn('pkexec updatedb', 1) ++ if sys.platform.startswith('linux'): ++ self.updatedb_process = SudoDialog.env_spawn('pkexec updatedb', 1) ++ elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ self.updatedb_process = SudoDialog.env_spawn('pkexec /usr/libexec/locate.updatedb', 1) + else: +- self.updatedb_process = SudoDialog.env_spawn('sudo updatedb', 1) ++ if sys.platform.startswith('linux'): ++ self.updatedb_process = SudoDialog.env_spawn('sudo updatedb', 1) ++ elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ self.updatedb_process = SudoDialog.env_spawn('sudo /usr/libexec/locate.updatedb', 1) + try: + # Check for password prompt or program exit. + self.updatedb_process.expect(".*ssword.*") diff --git a/sysutils/catfish/files/patch-catfish__lib_SudoDialog.py b/sysutils/catfish/files/patch-catfish__lib_SudoDialog.py new file mode 100644 index 000000000000..84829a94cce0 --- /dev/null +++ b/sysutils/catfish/files/patch-catfish__lib_SudoDialog.py @@ -0,0 +1,23 @@ +--- catfish_lib/SudoDialog.py.orig 2019-07-27 11:21:22 UTC ++++ catfish_lib/SudoDialog.py +@@ -18,6 +18,7 @@ + + from gi.repository import Gtk, GdkPixbuf + import os ++import sys + + from locale import gettext as _ + +@@ -316,7 +317,11 @@ class SudoDialog(Gtk.Dialog): + Return True if successful. + ''' + # Set the pexpect variables and spawn the process. +- child = env_spawn('sudo /bin/true', 1) ++ if sys.platform.startswith('linux'): ++ child = env_spawn('sudo /bin/true', 1) ++ elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ child = env_spawn('sudo /usr/bin/true', 1) ++ + try: + # Check for password prompt or program exit. + child.expect([".*ssword.*", pexpect.EOF]) diff --git a/sysutils/catfish/files/patch-catfish__lib_catfishconfig.py b/sysutils/catfish/files/patch-catfish__lib_catfishconfig.py new file mode 100644 index 000000000000..7a0e12220ece --- /dev/null +++ b/sysutils/catfish/files/patch-catfish__lib_catfishconfig.py @@ -0,0 +1,22 @@ +--- catfish_lib/catfishconfig.py.orig 2019-08-11 17:51:09 UTC ++++ catfish_lib/catfishconfig.py +@@ -17,6 +17,7 @@ + # with this program. If not, see <https://www.gnu.org/licenses/>. + + import os ++import sys + + __all__ = [ + 'project_path_not_found', +@@ -29,7 +30,10 @@ __all__ = [ + # files). By default, this is ../data, relative your trunk layout + __catfish_data_directory__ = '../data/' + # Location of locate.db file +-__locate_db_path__ = '/var/lib/mlocate/mlocate.db' ++if sys.platform.startswith('linux'): ++ __locate_db_path__ = '/var/lib/mlocate/mlocate.db' ++elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ __locate_db_path__ = '/var/db/locate.database' + __license__ = 'GPL-3+' + __version__ = '1.4.9' + diff --git a/sysutils/catfish/pkg-plist b/sysutils/catfish/pkg-plist index 2a54be5a4e01..c520fa29022c 100644 --- a/sysutils/catfish/pkg-plist +++ b/sysutils/catfish/pkg-plist @@ -1,7 +1,11 @@ bin/catfish +man/man1/catfish.1.gz %%PYTHON_SITELIBDIR%%/catfish/AboutCatfishDialog.py %%PYTHON_SITELIBDIR%%/catfish/AboutCatfishDialog.pyc %%PYTHON_SITELIBDIR%%/catfish/AboutCatfishDialog.pyo +%%PYTHON_SITELIBDIR%%/catfish/CatfishPrefsDialog.py +%%PYTHON_SITELIBDIR%%/catfish/CatfishPrefsDialog.pyc +%%PYTHON_SITELIBDIR%%/catfish/CatfishPrefsDialog.pyo %%PYTHON_SITELIBDIR%%/catfish/CatfishSearchEngine.py %%PYTHON_SITELIBDIR%%/catfish/CatfishSearchEngine.pyc %%PYTHON_SITELIBDIR%%/catfish/CatfishSearchEngine.pyo @@ -20,6 +24,9 @@ bin/catfish %%PYTHON_SITELIBDIR%%/catfish_lib/CatfishSettings.py %%PYTHON_SITELIBDIR%%/catfish_lib/CatfishSettings.pyc %%PYTHON_SITELIBDIR%%/catfish_lib/CatfishSettings.pyo +%%PYTHON_SITELIBDIR%%/catfish_lib/PrefsDialog.py +%%PYTHON_SITELIBDIR%%/catfish_lib/PrefsDialog.pyc +%%PYTHON_SITELIBDIR%%/catfish_lib/PrefsDialog.pyo %%PYTHON_SITELIBDIR%%/catfish_lib/SudoDialog.py %%PYTHON_SITELIBDIR%%/catfish_lib/SudoDialog.pyc %%PYTHON_SITELIBDIR%%/catfish_lib/SudoDialog.pyo @@ -40,8 +47,12 @@ bin/catfish %%PYTHON_SITELIBDIR%%/catfish_lib/helpers.pyo share/applications/org.xfce.Catfish.desktop %%DATADIR%%/ui/AboutCatfishDialog.ui +%%DATADIR%%/ui/CatfishPreferences.ui %%DATADIR%%/ui/CatfishWindow.ui %%DATADIR%%/ui/about_catfish_dialog.xml +%%DATADIR%%/ui/catfish-wl-headerbar.png +%%DATADIR%%/ui/catfish-wl-titlebar.png +%%DATADIR%%/ui/catfish_preferences.xml %%DATADIR%%/ui/catfish_window.xml %%PORTDOCS%%%%DOCSDIR%%/README share/icons/hicolor/scalable/apps/catfish.svg @@ -93,5 +104,4 @@ share/locale/tr/LC_MESSAGES/catfish.mo share/locale/uk/LC_MESSAGES/catfish.mo share/locale/zh_CN/LC_MESSAGES/catfish.mo share/locale/zh_TW/LC_MESSAGES/catfish.mo -share/man/man1/catfish.1 share/metainfo/catfish.appdata.xml |