From owner-svn-ports-all@freebsd.org Fri Feb 3 12:37:56 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 040A9CCCF1A; Fri, 3 Feb 2017 12:37:56 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6084126D; Fri, 3 Feb 2017 12:37:55 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v13Cbs5X071730; Fri, 3 Feb 2017 12:37:54 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v13CbsY1071723; Fri, 3 Feb 2017 12:37:54 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201702031237.v13CbsY1071723@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Fri, 3 Feb 2017 12:37:54 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 12:37:56 -0000 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 +# $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 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 + #include + #include + #include +@@ -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/