Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2017 12:37:54 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433223 - in head/sysutils: . fsearch fsearch/files
Message-ID:  <201702031237.v13CbsY1071723@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Fri Feb  3 12:37:54 2017
New Revision: 433223
URL: https://svnweb.freebsd.org/changeset/ports/433223

Log:
  Add a port of FSearch, search utility focusing on performance and advanced
  features, based on GTK+3.
  
  WWW: http://www.fsearch.org/
  
  Because GitHub releases (tarballs) are not fetched with correct modification
  time, set TIMESTAMP to 1476634045 which corresponds to commit cd0f03c tagged
  as this release.

Added:
  head/sysutils/fsearch/
  head/sysutils/fsearch/Makefile   (contents, props changed)
  head/sysutils/fsearch/distinfo   (contents, props changed)
  head/sysutils/fsearch/files/
  head/sysutils/fsearch/files/patch-src_string__utils.c   (contents, props changed)
  head/sysutils/fsearch/files/patch-src_string__utils.h   (contents, props changed)
  head/sysutils/fsearch/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Fri Feb  3 12:35:51 2017	(r433222)
+++ head/sysutils/Makefile	Fri Feb  3 12:37:54 2017	(r433223)
@@ -323,6 +323,7 @@
     SUBDIR += froxlor
     SUBDIR += fsbackup
     SUBDIR += fsc
+    SUBDIR += fsearch
     SUBDIR += fstyp
     SUBDIR += fswatch-mon
     SUBDIR += ftwin

Added: head/sysutils/fsearch/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fsearch/Makefile	Fri Feb  3 12:37:54 2017	(r433223)
@@ -0,0 +1,32 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	fsearch
+DISTVERSION=	0.1beta1
+CATEGORIES=	sysutils
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Search utility focusing on performance and advanced features
+
+LICENSE=	GPLv2+
+LICENSE_FILES=	${WRKSRC}/License
+
+BUILD_DEPENDS=	${LOCALBASE}/share/aclocal/ax_check_compile_flag.m4:devel/autoconf-archive
+LIB_DEPENDS=	libpcre.so:devel/pcre
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cboxdoerfer
+
+USES=		autoreconf gettext gmake pkgconfig
+GNU_CONFIGURE=	yes
+USE_GNOME=	cairo gdkpixbuf2 gtk30 intltool
+
+PLIST_FILES=	bin/fsearch \
+		share/applications/fsearch.desktop \
+		share/locale/de/LC_MESSAGES/fsearch.mo
+
+post-patch:
+	@${GREP} -Rl linux/limits\\.h ${WRKSRC}/src | ${XARGS} \
+		${REINPLACE_CMD} -e '/linux\/limits\.h/d'
+
+.include <bsd.port.mk>

Added: head/sysutils/fsearch/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fsearch/distinfo	Fri Feb  3 12:37:54 2017	(r433223)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1476634045
+SHA256 (cboxdoerfer-fsearch-0.1beta1_GH0.tar.gz) = 39daf6261e86b1485945e570a5100af0015512b86e8d55003fdbb58556355ea2
+SIZE (cboxdoerfer-fsearch-0.1beta1_GH0.tar.gz) = 71282

Added: head/sysutils/fsearch/files/patch-src_string__utils.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fsearch/files/patch-src_string__utils.c	Fri Feb  3 12:37:54 2017	(r433223)
@@ -0,0 +1,41 @@
+--- src/string_utils.c.orig	2016-10-16 16:07:25 UTC
++++ src/string_utils.c
+@@ -17,6 +17,7 @@
+    */
+ 
+ #define _GNU_SOURCE
++#include <glib.h>
+ #include <stdlib.h>
+ #include <ctype.h>
+ #include <stdint.h>
+@@ -52,9 +53,6 @@ fourbyte_strstr(const unsigned char *h, 
+     return *h ? (char *)h-3 : 0;
+ }
+ 
+-#define MAX(a,b) ((a)>(b)?(a):(b))
+-#define MIN(a,b) ((a)<(b)?(a):(b))
+-
+ #define BITOP(a,b,op) \
+     ((a)[(size_t)(b)/(8*sizeof *(a))] op (size_t)1<<((size_t)(b)%(8*sizeof *(a))))
+ 
+@@ -220,3 +218,20 @@ fsearch_strstr (const char *haystack,
+ {
+     return my_strstr (haystack, needle);
+ }
++
++int
++strverscmp (const char *s1,
++            const char *s2)
++{
++    gchar *tmp1, *tmp2;
++    gint ret;
++
++    tmp1 = g_utf8_collate_key_for_filename(s1, -1);
++    tmp2 = g_utf8_collate_key_for_filename(s2, -1);
++
++    ret = strcmp(tmp1, tmp2);
++
++    g_free(tmp1);
++    g_free(tmp2);
++    return ret;
++}

Added: head/sysutils/fsearch/files/patch-src_string__utils.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fsearch/files/patch-src_string__utils.h	Fri Feb  3 12:37:54 2017	(r433223)
@@ -0,0 +1,10 @@
+--- src/string_utils.h.orig	2016-10-16 16:07:25 UTC
++++ src/string_utils.h
+@@ -28,3 +28,7 @@ const char *
+ fsearch_strcasestr (const char *haystack,
+                     const char *needle,
+                     size_t needle_len);
++
++int
++strverscmp (const char *s1,
++            const char *s2);

Added: head/sysutils/fsearch/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fsearch/pkg-descr	Fri Feb  3 12:37:54 2017	(r433223)
@@ -0,0 +1,11 @@
+FSearch is a fast file search utility, inspired by Everything Search
+Engine.  It is written in C and based on GTK+3.  It features:
+
+  - Instant (as you type) results
+  - Wildcard support and regular expression support
+  - Filter support (only search for files, folders or everything)
+  - Include and exclude specific folders to be indexed
+  - Fast sort by file name, path, size, or modification time
+  - Customizable interface
+
+WWW: http://www.fsearch.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702031237.v13CbsY1071723>