svn commit: r408308 - in head/textproc: . miller miller/files
Kurt Jaeger
pi at FreeBSD.org
Sat Feb 6 18:09:53 UTC 2016
Author: pi
Date: Sat Feb 6 18:09:51 2016
New Revision: 408308
URL: https://svnweb.freebsd.org/changeset/ports/408308
Log:
New port: textproc/miller
Miller is like sed, awk, cut, join, and sort for name-indexed data such
as CSV.
With Miller you get to use named fields without needing to count
positional indices.
WWW: http://johnkerl.org/miller/doc/
PR: 206785
Requested by: jungleboogie0 at gmail.com
Added:
head/textproc/miller/
head/textproc/miller/Makefile (contents, props changed)
head/textproc/miller/distinfo (contents, props changed)
head/textproc/miller/files/
head/textproc/miller/files/extra-patch-c_Makefile (contents, props changed)
head/textproc/miller/files/extra-patch-libtool (contents, props changed)
head/textproc/miller/pkg-descr (contents, props changed)
Modified:
head/textproc/Makefile
Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile Sat Feb 6 17:55:52 2016 (r408307)
+++ head/textproc/Makefile Sat Feb 6 18:09:51 2016 (r408308)
@@ -471,6 +471,7 @@
SUBDIR += mguesser
SUBDIR += mi-aspell
SUBDIR += mifluz
+ SUBDIR += miller
SUBDIR += minised
SUBDIR += mk-aspell
SUBDIR += mkcatalog
Added: head/textproc/miller/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/miller/Makefile Sat Feb 6 18:09:51 2016 (r408308)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME= miller
+PORTVERSION= 3.3.2
+DISTVERSIONPREFIX=v
+CATEGORIES= textproc
+
+MAINTAINER= jungleboogie0+mlr at gmail.com
+COMMENT= Sed/awk/cut/join/sort for name-indexed data such as CSV
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+USES= autoreconf libtool
+USE_GITHUB= yes
+GH_ACCOUNT= johnkerl
+GNU_CONFIGURE= yes
+
+PLIST_FILES= bin/mlr man/man1/mlr.1.gz
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
+BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
+.endif
+
+post-configure:
+ ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-c_Makefile
+ ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-libtool
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
+ ${REINPLACE_CMD} -e 's|flex|${LOCALBASE}/bin/flex|' \
+ ${WRKSRC}/c/dsls/Makefile
+.endif
+
+.include <bsd.port.post.mk>
Added: head/textproc/miller/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/miller/distinfo Sat Feb 6 18:09:51 2016 (r408308)
@@ -0,0 +1,2 @@
+SHA256 (johnkerl-miller-v3.3.2_GH0.tar.gz) = 77cbec3f41b60361ce1c7b6dd7fa4d253c7ba169db270565862f523ca965eb96
+SIZE (johnkerl-miller-v3.3.2_GH0.tar.gz) = 3205282
Added: head/textproc/miller/files/extra-patch-c_Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/miller/files/extra-patch-c_Makefile Sat Feb 6 18:09:51 2016 (r408308)
@@ -0,0 +1,30 @@
+--- c/Makefile.orig 2016-01-31 11:19:35 UTC
++++ c/Makefile
+@@ -370,7 +370,7 @@ mlr_LDADD = \
+ lib/libmlr.la \
+ dsls/libfdsl.la \
+ dsls/libpdsl.la \
+- -lm
++ -lm -lc
+
+
+ # Other executable variants
+@@ -483,15 +483,15 @@ clean-noinstPROGRAMS:
+
+ mlr$(EXEEXT): $(mlr_OBJECTS) $(mlr_DEPENDENCIES) $(EXTRA_mlr_DEPENDENCIES)
+ @rm -f mlr$(EXEEXT)
+- $(AM_V_CCLD)$(LINK) $(mlr_OBJECTS) $(mlr_LDADD) $(LIBS)
++ $(AM_V_CCLD)$(LINK) $(mlr_OBJECTS) $(mlr_LDADD) $(LIBS) -lc
+
+ mlrg$(EXEEXT): $(mlrg_OBJECTS) $(mlrg_DEPENDENCIES) $(EXTRA_mlrg_DEPENDENCIES)
+ @rm -f mlrg$(EXEEXT)
+- $(AM_V_CCLD)$(mlrg_LINK) $(mlrg_OBJECTS) $(mlrg_LDADD) $(LIBS)
++ $(AM_V_CCLD)$(mlrg_LINK) $(mlrg_OBJECTS) $(mlrg_LDADD) $(LIBS) -lc
+
+ mlrp$(EXEEXT): $(mlrp_OBJECTS) $(mlrp_DEPENDENCIES) $(EXTRA_mlrp_DEPENDENCIES)
+ @rm -f mlrp$(EXEEXT)
+- $(AM_V_CCLD)$(mlrp_LINK) $(mlrp_OBJECTS) $(mlrp_LDADD) $(LIBS)
++ $(AM_V_CCLD)$(mlrp_LINK) $(mlrp_OBJECTS) $(mlrp_LDADD) $(LIBS) -lc
+
+ mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
Added: head/textproc/miller/files/extra-patch-libtool
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/miller/files/extra-patch-libtool Sat Feb 6 18:09:51 2016 (r408308)
@@ -0,0 +1,13 @@
+--- libtool.orig 2016-01-31 11:54:21 UTC
++++ libtool
+@@ -7514,10 +7514,6 @@ func_mode_link ()
+ # These systems don't actually have a C library (as such)
+ test X-lc = "X$arg" && continue
+ ;;
+- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
+- # Do not include libc due to us having libc/libc_r.
+- test X-lc = "X$arg" && continue
+- ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ func_append deplibs " System.ltframework"
Added: head/textproc/miller/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/miller/pkg-descr Sat Feb 6 18:09:51 2016 (r408308)
@@ -0,0 +1,7 @@
+Miller is like sed, awk, cut, join, and sort for name-indexed data such
+as CSV.
+
+With Miller you get to use named fields without needing to count
+positional indices.
+
+WWW: http://johnkerl.org/miller/doc/
More information about the svn-ports-all
mailing list