From nobody Thu Nov 03 08:03:54 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N2x963twRz4hJBg; Thu, 3 Nov 2022 08:03:54 +0000 (UTC) (envelope-from git@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 4N2x963Snfz43h5; Thu, 3 Nov 2022 08:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667462634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QX4NzF+0LcVONQoOOvqcYeXFH4SXEI4FqaWfxycL6+Y=; b=paD6FB++uolHoDoL9u7tKclelUGl9q51mfk/rOGeHM7UAhPHqX5gPATdyHKi8bSl39Fdb6 OZIdEWd6ZL++Kza3hpYiqNwUm0fi9xVOpDgHMxwU5/64Pdm5nmdp5E/dsI54soJzl9aiyl 0jX0rsL/FbxEyDxR1LAaTeQvebUL7U8RTeb07uR/iWfywNgJaADHwYLzsgVvWi66hM0Ie/ SUeoKua6gWEsMnY+2jMag++VRqvJNTDVS10S0bGfrruV7UIKNPV8yGbZs61KxCKffXY5Tx BrTUh9mBpqMCoTQ2ugfPjxw+ST61MWfQzUWYtma4v1xNXhjezQ7tGyjo8uc+Sw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N2x962Z1MzT4Q; Thu, 3 Nov 2022 08:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A383sVA037770; Thu, 3 Nov 2022 08:03:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A383ssE037769; Thu, 3 Nov 2022 08:03:54 GMT (envelope-from git) Date: Thu, 3 Nov 2022 08:03:54 GMT Message-Id: <202211030803.2A383ssE037769@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 575671763c03 - main - textproc/libfyaml: New port: YAML parser and emitter List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 575671763c0352d951d303ce687194ac7d4a737d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667462634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QX4NzF+0LcVONQoOOvqcYeXFH4SXEI4FqaWfxycL6+Y=; b=aVnKN7jyZgdsQm8lpEwudJVkTnYlpB4s0L04VtJElAK/sEvtKGrKzU6LW2r6CS3X/io7Xu 0dPTo7Mp3IRP+GvxrxRQvLGZTh8CtNpLSoNTNRmyiXGRo6a1K51tt0dZAvgYTj61V1XCCj 0zL1czieZBhxjM66mwvLqn7weNOjnOrCO4oK1s4STQaLumpj/fGnsle0DwbyXWSFoB4RJG 8k7ggoVCB7KNKZqd28r4UEonE8AfPG/vAqDAXzqNOxmjDgO6bDpH3+M6/njlhryH3gXVda UMdR/lAHq2zXYNrLqzypeG/aTVrn2R1W8Gn41J0MntlNgyXldmdnkQf2o4i9Mw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667462634; a=rsa-sha256; cv=none; b=a1+ZJTi3tr7p7OYgggg3dYdUDo+N1aMmqeES0iygzrgwlpn89FLhLxoTL19cS5vVLZffvk B/8a25y+iR/RyeffVGk31qQjS7IuPeVwyYzg7Tb3oMPIGT15GfSWj0K2QYYLA7YqZikHP7 BpwFLr73L6IW2objWAPUOpzLFg31mzojRZdNHeXeGV7P1agjk0BrrGJ1uzzz2D19aPuudG W8a6UoeeHWkacV0K1IF4H8MwMxyPOqUKwKNoiWLZNd8t5754//kiRPhgwDU/A2YrKRCikp SoZansS/1zZWNoZXJYc9SNDD+k+JqjV/iAOLyCPppy8i5f1Zas3KV7mGLlXzrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=575671763c0352d951d303ce687194ac7d4a737d commit 575671763c0352d951d303ce687194ac7d4a737d Author: Yuri Victorovich AuthorDate: 2022-11-03 07:47:13 +0000 Commit: Yuri Victorovich CommitDate: 2022-11-03 08:03:48 +0000 textproc/libfyaml: New port: YAML parser and emitter --- textproc/Makefile | 1 + textproc/libfyaml/Makefile | 27 ++++++++++++++++++++++ textproc/libfyaml/distinfo | 3 +++ textproc/libfyaml/files/patch-include_libfyaml.h | 11 +++++++++ textproc/libfyaml/files/patch-src_lib_fy-atom.c | 10 ++++++++ textproc/libfyaml/files/patch-src_lib_fy-ctype.h | 11 +++++++++ textproc/libfyaml/files/patch-src_lib_fy-diag.c | 10 ++++++++ textproc/libfyaml/files/patch-src_lib_fy-event.c | 10 ++++++++ textproc/libfyaml/files/patch-src_lib_fy-token.c | 10 ++++++++ textproc/libfyaml/files/patch-src_lib_fy-utf8.h | 11 +++++++++ .../files/patch-src_valgrind_fy-valgrind.h | 11 +++++++++ textproc/libfyaml/pkg-descr | 5 ++++ textproc/libfyaml/pkg-plist | 20 ++++++++++++++++ 13 files changed, 140 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index bdb0e80fb0b5..ca4784525275 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -374,6 +374,7 @@ SUBDIR += libepubgen SUBDIR += libextractor SUBDIR += libexttextcat + SUBDIR += libfyaml SUBDIR += libfo SUBDIR += libfolia SUBDIR += libgepub diff --git a/textproc/libfyaml/Makefile b/textproc/libfyaml/Makefile new file mode 100644 index 000000000000..5b8413947212 --- /dev/null +++ b/textproc/libfyaml/Makefile @@ -0,0 +1,27 @@ +PORTNAME= libfyaml +DISTVERSION= 0.7.12 +CATEGORIES= textproc +MASTER_SITES= https://github.com/pantoniou/libfyaml/releases/download/v${DISTVERSION}/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= YAML parser and emitter +WWW= https://github.com/pantoniou/libfyaml + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= git:devel/git \ + bash:shells/bash + +USES= gmake libtool shebangfix # will change to cmake soon +USE_LDCONFIG= yes + +SHEBANG_FILES= test/testemitter.test + +GNU_CONFIGURE= yes + +INSTALL_TARGET= install-strip + +TEST_TARGET= check # one test fails, see https://github.com/pantoniou/libfyaml/issues/60 + +.include diff --git a/textproc/libfyaml/distinfo b/textproc/libfyaml/distinfo new file mode 100644 index 000000000000..f6262e8791a5 --- /dev/null +++ b/textproc/libfyaml/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1667456423 +SHA256 (libfyaml-0.7.12.tar.gz) = 485342c6920e9fdc2addfe75e5c3e0381793f18b339ab7393c1b6edf78bf8ca8 +SIZE (libfyaml-0.7.12.tar.gz) = 757218 diff --git a/textproc/libfyaml/files/patch-include_libfyaml.h b/textproc/libfyaml/files/patch-include_libfyaml.h new file mode 100644 index 000000000000..d84aae2b34ec --- /dev/null +++ b/textproc/libfyaml/files/patch-include_libfyaml.h @@ -0,0 +1,11 @@ +--- include/libfyaml.h.orig 2022-11-03 06:41:20 UTC ++++ include/libfyaml.h +@@ -37,7 +37,7 @@ extern "C" { + #include + #include + #include +-#include ++#include + + #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) + #include diff --git a/textproc/libfyaml/files/patch-src_lib_fy-atom.c b/textproc/libfyaml/files/patch-src_lib_fy-atom.c new file mode 100644 index 000000000000..b12017c78e45 --- /dev/null +++ b/textproc/libfyaml/files/patch-src_lib_fy-atom.c @@ -0,0 +1,10 @@ +--- src/lib/fy-atom.c.orig 2022-11-03 06:41:50 UTC ++++ src/lib/fy-atom.c +@@ -17,7 +17,6 @@ + #include + #include + #include +-#include + #include + + #include diff --git a/textproc/libfyaml/files/patch-src_lib_fy-ctype.h b/textproc/libfyaml/files/patch-src_lib_fy-ctype.h new file mode 100644 index 000000000000..6c5d3ab48806 --- /dev/null +++ b/textproc/libfyaml/files/patch-src_lib_fy-ctype.h @@ -0,0 +1,11 @@ +--- src/lib/fy-ctype.h.orig 2022-11-03 06:42:22 UTC ++++ src/lib/fy-ctype.h +@@ -13,7 +13,7 @@ + #endif + + #include +-#include ++#include + #include + #include + diff --git a/textproc/libfyaml/files/patch-src_lib_fy-diag.c b/textproc/libfyaml/files/patch-src_lib_fy-diag.c new file mode 100644 index 000000000000..dcab757d0e90 --- /dev/null +++ b/textproc/libfyaml/files/patch-src_lib_fy-diag.c @@ -0,0 +1,10 @@ +--- src/lib/fy-diag.c.orig 2022-11-03 06:42:38 UTC ++++ src/lib/fy-diag.c +@@ -17,7 +17,6 @@ + #include + #include + #include +-#include + #include + #include + diff --git a/textproc/libfyaml/files/patch-src_lib_fy-event.c b/textproc/libfyaml/files/patch-src_lib_fy-event.c new file mode 100644 index 000000000000..17ccc07545fe --- /dev/null +++ b/textproc/libfyaml/files/patch-src_lib_fy-event.c @@ -0,0 +1,10 @@ +--- src/lib/fy-event.c.orig 2022-11-03 06:40:46 UTC ++++ src/lib/fy-event.c +@@ -17,7 +17,6 @@ + #include + #include + #include +-#include + + #include + diff --git a/textproc/libfyaml/files/patch-src_lib_fy-token.c b/textproc/libfyaml/files/patch-src_lib_fy-token.c new file mode 100644 index 000000000000..850b7c22c215 --- /dev/null +++ b/textproc/libfyaml/files/patch-src_lib_fy-token.c @@ -0,0 +1,10 @@ +--- src/lib/fy-token.c.orig 2022-11-03 06:42:10 UTC ++++ src/lib/fy-token.c +@@ -17,7 +17,6 @@ + #include + #include + #include +-#include + + #include + diff --git a/textproc/libfyaml/files/patch-src_lib_fy-utf8.h b/textproc/libfyaml/files/patch-src_lib_fy-utf8.h new file mode 100644 index 000000000000..5d463c736280 --- /dev/null +++ b/textproc/libfyaml/files/patch-src_lib_fy-utf8.h @@ -0,0 +1,11 @@ +--- src/lib/fy-utf8.h.orig 2022-11-03 06:40:27 UTC ++++ src/lib/fy-utf8.h +@@ -13,7 +13,7 @@ + #endif + + #include +-#include ++#include + #include + + #include diff --git a/textproc/libfyaml/files/patch-src_valgrind_fy-valgrind.h b/textproc/libfyaml/files/patch-src_valgrind_fy-valgrind.h new file mode 100644 index 000000000000..2c4e9257e522 --- /dev/null +++ b/textproc/libfyaml/files/patch-src_valgrind_fy-valgrind.h @@ -0,0 +1,11 @@ +--- src/valgrind/fy-valgrind.h.orig 2022-11-03 06:38:06 UTC ++++ src/valgrind/fy-valgrind.h +@@ -19,7 +19,7 @@ + #include + #include + #include +-#include ++#include + #include + + enum fy_valgrind_tool { diff --git a/textproc/libfyaml/pkg-descr b/textproc/libfyaml/pkg-descr new file mode 100644 index 000000000000..380a393f142b --- /dev/null +++ b/textproc/libfyaml/pkg-descr @@ -0,0 +1,5 @@ +libfyaml is a fully feature complete YAML parser and emitter, supporting the +latest YAML spec and passing the full YAML testsuite. + +It is designed to be very efficient, avoiding copies of data, and has no +artificial limits like the 1024 character limit for implicit keys. diff --git a/textproc/libfyaml/pkg-plist b/textproc/libfyaml/pkg-plist new file mode 100644 index 000000000000..de314fc14575 --- /dev/null +++ b/textproc/libfyaml/pkg-plist @@ -0,0 +1,20 @@ +bin/fy-compose +bin/fy-dump +bin/fy-filter +bin/fy-join +bin/fy-testsuite +bin/fy-tool +bin/fy-ypath +include/libfyaml.h +lib/libfyaml.a +lib/libfyaml.so +lib/libfyaml.so.0 +lib/libfyaml.so.0.0.0 +libdata/pkgconfig/libfyaml.pc +man/man1/fy-compose.1.gz +man/man1/fy-dump.1.gz +man/man1/fy-filter.1.gz +man/man1/fy-join.1.gz +man/man1/fy-testsuite.1.gz +man/man1/fy-tool.1.gz +man/man1/fy-ypath.1.gz