From owner-svn-ports-head@freebsd.org Tue Jan 26 15:47:47 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D35C94F3276; Tue, 26 Jan 2021 15:47:47 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DQB2W5hKDz4Z3y; Tue, 26 Jan 2021 15:47:47 +0000 (UTC) (envelope-from fernape@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B67E643AE; Tue, 26 Jan 2021 15:47:47 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10QFlliN047068; Tue, 26 Jan 2021 15:47:47 GMT (envelope-from fernape@FreeBSD.org) Received: (from fernape@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10QFllNP047067; Tue, 26 Jan 2021 15:47:47 GMT (envelope-from fernape@FreeBSD.org) Message-Id: <202101261547.10QFllNP047067@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fernape set sender to fernape@FreeBSD.org using -f From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Date: Tue, 26 Jan 2021 15:47:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r562690 - in head/textproc/libcsv: . files X-SVN-Group: ports-head X-SVN-Commit-Author: fernape X-SVN-Commit-Paths: in head/textproc/libcsv: . files X-SVN-Commit-Revision: 562690 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2021 15:47:47 -0000 Author: fernape Date: Tue Jan 26 15:47:47 2021 New Revision: 562690 URL: https://svnweb.freebsd.org/changeset/ports/562690 Log: textproc/libcsv: Makefile fixes and man page corrections PR: 252995 Submitted by: bob@eager.cx Modified: head/textproc/libcsv/Makefile head/textproc/libcsv/files/patch-csv.3 Modified: head/textproc/libcsv/Makefile ============================================================================== --- head/textproc/libcsv/Makefile Tue Jan 26 15:45:41 2021 (r562689) +++ head/textproc/libcsv/Makefile Tue Jan 26 15:47:47 2021 (r562690) @@ -3,7 +3,7 @@ PORTNAME= libcsv PORTVERSION= 3.0.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= textproc MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -12,19 +12,20 @@ COMMENT= Small, simple and fast CSV library LICENSE= LGPL21 -OPTIONS_DEFINE= EXAMPLES PROFILE - -MAKEFILE= Makefile.lib USES= uidfix USE_LDCONFIG= yes +MAKEFILE= Makefile.lib + PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}" -SHLIB_MAJOR= 3 +OPTIONS_DEFINE= EXAMPLES PROFILE -PROFILE_PLIST_SUB= PROFILE="" PROFILE_MAKE_ENV_OFF= WITHOUT_PROFILE=true +PROFILE_PLIST_SUB= PROFILE="" PROFILE_PLIST_SUB_OFF= PROFILE="@comment " + +SHLIB_MAJOR= 3 do-configure: @${SED} -e 's|%%SHLIB_MAJOR%%|${SHLIB_MAJOR}|' \ Modified: head/textproc/libcsv/files/patch-csv.3 ============================================================================== --- head/textproc/libcsv/files/patch-csv.3 Tue Jan 26 15:45:41 2021 (r562689) +++ head/textproc/libcsv/files/patch-csv.3 Tue Jan 26 15:47:47 2021 (r562690) @@ -13,7 +13,7 @@ .LP .fi .ft B -@@ -36,6 +36,9 @@ void csv_free(struct csv_parser *\fIp\fB +@@ -36,6 +36,9 @@ void csv_free(struct csv_parser *\fIp\fB); unsigned char csv_get_delim(struct csv_parser *\fIp\fB); unsigned char csv_get_quote(struct csv_parser *\fIp\fB); @@ -23,7 +23,7 @@ void csv_set_space_func(struct csv_parser *\fIp\fB, int (*\fIf\fB)(unsigned char)); void csv_set_term_func(struct csv_parser *\fIp\fB, int (*\fIf\fB)(unsigned char)); -@@ -75,7 +78,7 @@ The idea behind parsing with \fBlibcsv\f +@@ -75,7 +78,7 @@ The idea behind parsing with \fBlibcsv\fP is straight- end-of-row events. \fBcsv_parse()\fP parses the data provided calling the user-defined callback functions as it reads fields and rows. When complete, \fBcsv_fini()\fP is called to finish processing the current @@ -32,7 +32,7 @@ \fBcsv_free()\fP is then called to free the parser object. \fBcsv_error()\fP and \fBcsv_strerror()\fP provide information about errors encountered by the functions. -@@ -147,8 +150,8 @@ Multiple options can be specified by OR- +@@ -147,8 +150,8 @@ Multiple options can be specified by OR-ing them toget .RE By default \fIcb2\fP is not called when rows that do not contain any fields @@ -43,7 +43,7 @@ be parsed properly while at the same time being able to parse files with rows terminated by multiple characters from resulting in blank rows after each actual row of data (for example, processing a text CSV file -@@ -178,7 +181,7 @@ functions may be called many times durin +@@ -178,7 +181,7 @@ functions may be called many times during a single cal depending on the amount of data being processed in a given call. .PP \fBcsv_parse()\fP returns the number of bytes processed, on a successful @@ -52,7 +52,7 @@ An error can occur, for example, if there is insufficient memory to store the contents of the current field in the entry buffer. An error can also occur if malformed data is encountered while running -@@ -192,7 +195,7 @@ of the error. \fBcsv_error()\fP takes a +@@ -192,7 +195,7 @@ of the error. \fBcsv_error()\fP takes a single argumen .PP .RS .TP @@ -61,7 +61,7 @@ .TP \fBCSV_ENOMEM\fP\ \ \ There was not enough memory while attempting to increase the entry buffer for the current field .TP -@@ -210,7 +213,7 @@ to call the \fBcsv_fini()\fP function. +@@ -210,7 +213,7 @@ to call the \fBcsv_fini()\fP function. This function function with any remaining data in the entry buffer (if there is any) and call the \fIcb2\fP function unless we are already at the end of a row (the last byte processed was a newline character for example). @@ -76,7 +76,7 @@ means to change the characters that the parser will consider the delimiter -and quote characters respetively, cast to unsigned char. \fBcsv_get_delim()\fP and \fBcsv_get_delim()\fP +and quote characters respetively, cast to unsigned char. \fBcsv_get_delim()\fP -+and \fBcsv_set_delim()\fP ++and \fBcsv_get_quote()\fP return the current delimiter and quote characters respectively. When \fBcsv_init()\fP is called the delimiter is set to \fBCSV_COMMA\fP and the quote to \fBCSV_QUOTE\fP. Note that the rest of the CSV conventions still apply @@ -87,7 +87,7 @@ character. Additionally, the \fBcsv_set_space_func()\fP and \fBcsv_set_term_func()\fP allow a user-defined function to be provided which will be used determine -@@ -333,7 +337,7 @@ reflect the most common usage of the for +@@ -333,7 +337,7 @@ reflect the most common usage of the format, namely: .PP .RS .TP @@ -96,7 +96,7 @@ .TP Rows are delimited by newline sequences (see below). .TP -@@ -385,7 +389,7 @@ will be interpreted as 3 fields, equival +@@ -385,7 +389,7 @@ will be interpreted as 3 fields, equivalent to: RFC 4180 limits the allowable characters in a CSV field, \fBlibcsv\fP allows any character to be present in a field provided it adheres to the conventions mentioned above. This makes it possible to @@ -105,7 +105,7 @@ .PP RFC 4180 states that a Carriage Return plus Linefeed combination is used to delimit records, \fBlibcsv\fP allows any combination of Carriage -@@ -409,7 +413,7 @@ would be parsed equivalently to the corr +@@ -409,7 +413,7 @@ would be parsed equivalently to the correct form: .fi This is often desirable as there are some applications that do not adhere to the specifications previously discussed. However, @@ -114,7 +114,7 @@ when a comma or newline is the next non-space character following a quote such as: .nf -@@ -420,7 +424,7 @@ This could either be parsed as a single +@@ -420,7 +424,7 @@ This could either be parsed as a single field containi \fBSally said "Hello", Wally said "Goodbye"\fP @@ -123,7 +123,7 @@ .fi \fBSally said "Hello\fP -@@ -431,7 +435,7 @@ Since the data is malformed, there is no +@@ -431,7 +435,7 @@ Since the data is malformed, there is no way to know i before the comma is meant to be a literal quote or if it signifies the end of the field. This is of course not an issue for properly formed data as all quotes must be escaped. \fBlibcsv\fP will parse this @@ -132,3 +132,9 @@ \fBlibcsv\fP provides a strict mode that will return with a parse error if a quote is seen inside a non-quoted field or if a non-escaped +@@ -566,4 +570,4 @@ Written by Robert Gamble. + Please send questions, comments, bugs, etc. to: + .PP + .ti +8 +-rgamble@users.sourceforge.net ++rgamble99@gmail.com