pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Update universalcodegrep to 0.3.0:
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Mon Oct 24 11:49:20 2016 +0200
Changeset: 5a1ee33dd6056b5b535c6be536d746a2e6701426
Modified Files:
universalcodegrep/Makefile
universalcodegrep/distinfo
Log Message:
Update universalcodegrep to 0.3.0:
Major feature/bugfix release of UniversalCodeGrep (ucg).
- 20-30% faster than ucg 0.2.2 on most benchmarks.
- New file inclusion/exclusion options:
- `ack`-style `--ignore-file=FILTER:FILTERARGS`: Files matching FILTER:FILTERARGS (e.g. "ext:txt,cpp") will be ignored.
- `grep`-style `--include=GLOB`: Only files matching GLOB will be searched.
- `grep`-style `--exclude=GLOB`: Files matching GLOB will be ignored.
- `ag`-style `--ignore=GLOB`: Files matching GLOB will be ignored. Note that unlike `ag`'s option, this does not apply to directories).
- Files and directories specified on the command line (including hidden files) are now scanned regardless of ignore settings, and in the case of files, whether they are recognized as text files.
- `--TYPE`- and `--noTYPE`-style options now support unique-prefix matching. E.g., `--py`, `--pyth`, and `--python` all select the Python file type.
- New file type filter: `glob`. E.g. '--type-set=mk:glob:?akefile*'.
- OS X and some *BSDs now supported. Builds and runs on Xcode 6.1/OS X 10.9 through Xcode 8gm/OS X 10.11.
- Now compiles and links with either or both of libpcre and libpcre2, if available. Defaults to using libpcre2 for matching.
- Directory tree traversal now uses more than one thread (two by default). Can be overridden with new "--dirjobs" command-line parameter. Overall performance improvement on all platforms vs. 0.2.2 (e.g., ~25% on Fedora 23 with hot cache).
- New portable function multiversioning infrastructure. Currently used by the following features:
- Line number counting is now done by either a generic or a vectorized (sse2/sse4.2 with/without popcount) version of FileScanner::CountLinesSinceLastMatch(), depending on the host system's ISA extension support. Measurable performance increase; line number counting went from ~6.5% of total cycles to less than 1% on one workload per valgrind/callgrind.
- Added ".awk" as a builtin file type.
- Improved error reporting when directory traversal runs into problems.
- A number of portability improvements related to OSX and PC-BSD support.
- Reduce unnecessary mutex contention, spurious thread wakes in sync_queue<>.
- Scanner threads now use a reusable buffer when reading in files, reducing memory allocations by ~10% (and ~40% fewer bytes allocated) compared to version 0.2.2.
- Refactored FileScanner to be a base class with derived classes handling the particulars of using libpcre or libpcre2 to do the scanning.
- Added a basic diagnostic/debug logging facility.
- ResizableArray now takes an alignment parameter. File buffer allocations are now done on max(ST_BLKSIZE,128k)-byte boundaries.
- Testing/Benchmarking infrastructure expansion and improvements.
- Cygwin now requires AC_USE_SYSTEM_EXTENSIONS for access to get_current_dir_name(). Resolves #76.
- Resolved issue with highlights on wrapped lines sometimes extending the full width of the terminal. Resolves #80.
- Resolved issue where matches spanning an eol (e.g. 'a\s+b' matching 'a\nb') would cause the program to throw an exception and terminate. Resolves #92.
- Resolved segfaults on some systems due to dirname() modifying its parameter. Resolves #96.
- No longer treating PCRE2 reporting no JIT support as an error. Resolves #100.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5a1ee33dd6056b5b535c6be536d746a2e6701426
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
universalcodegrep/Makefile | 10 +++++-----
universalcodegrep/distinfo | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
diffs:
diff --git a/universalcodegrep/Makefile b/universalcodegrep/Makefile
index 0bca67a..0e3c021 100644
--- a/universalcodegrep/Makefile
+++ b/universalcodegrep/Makefile
@@ -1,11 +1,11 @@
# $NetBSD$
-DISTNAME= universalcodegrep-0.2.2
+DISTNAME= universalcodegrep-0.3.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=gvansickle/}
GITHUB_PROJECT= ucg
-#GITHUB_RELEASE= ${PKGVERSION_NOREV}
-GITHUB_TAG= 038e498679dcce932469089ff794176e44d7024c
+GITHUB_RELEASE= ${PKGVERSION_NOREV}
+#GITHUB_TAG= 038e498679dcce932469089ff794176e44d7024c
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://github.com/gvansickle/ucg/
@@ -19,8 +19,8 @@ USE_TOOLS+= autoconf automake pkg-config
NOT_PAX_MPROTECT_SAFE= bin/ucg
-pre-configure:
- cd ${WRKSRC} && autoreconf -fi
+#pre-configure:
+# cd ${WRKSRC} && autoreconf -fi
.include "../../lang/python/application.mk"
.include "../../devel/argp/buildlink3.mk"
diff --git a/universalcodegrep/distinfo b/universalcodegrep/distinfo
index 09e40cb..4e378fe 100644
--- a/universalcodegrep/distinfo
+++ b/universalcodegrep/distinfo
@@ -1,6 +1,6 @@
$NetBSD$
-SHA1 (universalcodegrep-0.2.2-038e498679dcce932469089ff794176e44d7024c.tar.gz) = a389b5e0832663c6773a47cbc7fa59851b29cc79
-RMD160 (universalcodegrep-0.2.2-038e498679dcce932469089ff794176e44d7024c.tar.gz) = 448d52a3a413996aa71d2365c59293cc539080e4
-SHA512 (universalcodegrep-0.2.2-038e498679dcce932469089ff794176e44d7024c.tar.gz) = fe2ec25dde1743ec57539a9aa0a1def2b73fce56266579e20940a19a2696930b115b8cd256d397f98cf7784266e0991781ee02c5a5668fe4336e2cdc43f97a30
-Size (universalcodegrep-0.2.2-038e498679dcce932469089ff794176e44d7024c.tar.gz) = 171356 bytes
+SHA1 (universalcodegrep-0.3.0.tar.gz) = 9b06f306eea205adf0f5ac005d79637240bf6e0d
+RMD160 (universalcodegrep-0.3.0.tar.gz) = e59fdfed0400a14e8dced801b31745313dc896aa
+SHA512 (universalcodegrep-0.3.0.tar.gz) = 5a7a45d46ec16b8946b9308c0b022aeec39dd1ea4825a67cee9855382e5249191c3e9760d270c2d81c9bc348ebf767581b60240e5ef810bf4b9f9e41f96fb93d
+Size (universalcodegrep-0.3.0.tar.gz) = 606500 bytes
Home |
Main Index |
Thread Index |
Old Index