Index: head/sysutils/angrysearch/Makefile =================================================================== --- head/sysutils/angrysearch/Makefile (revision 538315) +++ head/sysutils/angrysearch/Makefile (revision 538316) @@ -1,29 +1,31 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= angrysearch PORTVERSION= 1.0.2 # untagged, but specified in the setup.py CATEGORIES= sysutils python MAINTAINER= danfe@FreeBSD.org -COMMENT= Quick search GUI tool for Unix systems +COMMENT= Quick search GUI tool for Unix-like systems LICENSE= GPLv2 + +RUN_DEPENDS= xdg-open:devel/xdg-utils USE_GITHUB= yes GH_ACCOUNT= DoTheEvo GH_PROJECT= ANGRYsearch GH_TAGNAME= 6f8fccc USES= python pyqt:5 USE_PYTHON= autoplist distutils noflavors USE_PYQT= core_run gui_run widgets_run post-patch: @${REINPLACE_CMD} -e 's,Linux,${OPSYS}, ; s,linux,${OPSYS:tl}, \ ; s,/usr/share,${PREFIX}/share,' ${WRKSRC}/setup.py \ ${WRKSRC}/angrysearch.desktop .include PATCH_ARGS+= -l Index: head/sysutils/angrysearch/files/patch-scandir.py =================================================================== --- head/sysutils/angrysearch/files/patch-scandir.py (revision 538315) +++ head/sysutils/angrysearch/files/patch-scandir.py (revision 538316) @@ -1,22 +1,20 @@ --- scandir.py.orig 2018-07-28 20:12:38 UTC +++ scandir.py -@@ -428,7 +428,18 @@ elif sys.platform.startswith(('linux', 'darwin')) or ' +@@ -428,6 +428,17 @@ elif sys.platform.startswith(('linux', 'darwin')) or ' ('d_type', ctypes.c_byte), ('d_name', ctypes.c_char * 256), ) -- else: + elif sys.platform.startswith('freebsd') and int(sys.platform[7:]) > 11: + _fields_ = ( + ('d_ino', ctypes.c_uint64), + ('d_off', ctypes.c_uint64), + ('d_reclen', ctypes.c_ushort), + ('d_type', ctypes.c_byte), + ('d_pad0', ctypes.c_byte), + ('d_namlen', ctypes.c_ushort), + ('d_pad1', ctypes.c_ushort), + ('d_name', ctypes.c_char * 256), + ) -+ else: + else: _fields_ = ( ('d_ino', ctypes.c_uint32), # must be uint32, not ulong - ('d_reclen', ctypes.c_ushort),