From owner-dev-commits-ports-all@freebsd.org Sun Sep 19 06:06:40 2021 Return-Path: Delivered-To: dev-commits-ports-all@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 38EAD6ABA19; Sun, 19 Sep 2021 06:06:40 +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 4HBxz40vPPz3MYB; Sun, 19 Sep 2021 06:06:40 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 0079118272; Sun, 19 Sep 2021 06:06:40 +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 18J66dX4052223; Sun, 19 Sep 2021 06:06:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18J66dRW052222; Sun, 19 Sep 2021 06:06:39 GMT (envelope-from git) Date: Sun, 19 Sep 2021 06:06:39 GMT Message-Id: <202109190606.18J66dRW052222@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 706aa4d599da - main - www/llhttp: Add llhttp 6.0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 706aa4d599da514c93ec9def7856f313e3dcb8e4 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2021 06:06:40 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=706aa4d599da514c93ec9def7856f313e3dcb8e4 commit 706aa4d599da514c93ec9def7856f313e3dcb8e4 Author: Po-Chuan Hsieh AuthorDate: 2021-09-19 05:25:32 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-19 05:40:28 +0000 www/llhttp: Add llhttp 6.0.4 llhttp is a port of http_parser to llparse. This project aims to: - Make it maintainable - Verifiable - Improving benchmarks where possible WWW: https://llhttp.org/ WWW: https://github.com/nodejs/llhttp --- www/Makefile | 1 + www/llhttp/Makefile | 25 +++++++++++++++++++ www/llhttp/distinfo | 3 +++ www/llhttp/files/CMakeLists.txt | 53 +++++++++++++++++++++++++++++++++++++++++ www/llhttp/pkg-descr | 9 +++++++ www/llhttp/pkg-plist | 4 ++++ 6 files changed, 95 insertions(+) diff --git a/www/Makefile b/www/Makefile index 9f0799516597..70f5e16cf49d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -311,6 +311,7 @@ SUBDIR += linux-opera SUBDIR += litmus SUBDIR += ljdeps + SUBDIR += llhttp SUBDIR += logswan SUBDIR += logtools SUBDIR += ls-qpack diff --git a/www/llhttp/Makefile b/www/llhttp/Makefile new file mode 100644 index 000000000000..10a9a89581d1 --- /dev/null +++ b/www/llhttp/Makefile @@ -0,0 +1,25 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= llhttp +PORTVERSION= 6.0.4 +DISTVERSIONPREFIX= release/v +CATEGORIES= www + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Port of http_parser to llparse + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE-MIT + +USES= cmake + +CMAKE_ON= BUILD_SHARED_LIBS + +GH_ACCOUNT= nodejs +USE_GITHUB= yes + +post-patch: +# https://github.com/nodejs/llhttp/blob/master/CMakeLists.txt + @${CP} ${FILESDIR}/CMakeLists.txt ${WRKSRC}/ + +.include diff --git a/www/llhttp/distinfo b/www/llhttp/distinfo new file mode 100644 index 000000000000..f53b9c676117 --- /dev/null +++ b/www/llhttp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1629364640 +SHA256 (nodejs-llhttp-release-v6.0.4_GH0.tar.gz) = a2dc90e41060f89a7682c4c325e226599139a78e65bb5b79f28d6a52bac267c4 +SIZE (nodejs-llhttp-release-v6.0.4_GH0.tar.gz) = 37328 diff --git a/www/llhttp/files/CMakeLists.txt b/www/llhttp/files/CMakeLists.txt new file mode 100644 index 000000000000..41d2000e993d --- /dev/null +++ b/www/llhttp/files/CMakeLists.txt @@ -0,0 +1,53 @@ +cmake_minimum_required(VERSION 3.5.1) +cmake_policy(SET CMP0069 NEW) + +project(llhttp C) + +set(CMAKE_C_STANDARD 99) + +# +# Options +# +# Generic option +option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) + +# Source code +set(LLHTTP_SOURCES + src/llhttp.c + src/http.c + src/api.c +) + +set(LLHTTP_HEADERS + include/llhttp.h +) + +add_library(llhttp) +add_library(llhttp::llhttp ALIAS llhttp) + +target_sources(llhttp PRIVATE ${LLHTTP_SOURCES} ${LLHTTP_HEADERS}) + +# On windows with Visual Studio, add a debug postfix so that release +# and debug libraries can coexist. +if(MSVC) + set(CMAKE_DEBUG_POSTFIX "d") +endif() + +target_include_directories(llhttp PUBLIC + $ + $ +) + +set_target_properties(llhttp PROPERTIES PUBLIC_HEADER ${LLHTTP_HEADERS}) + +install(TARGETS llhttp + EXPORT llhttp + ARCHIVE DESTINATION lib + PUBLIC_HEADER DESTINATION include/ +) + +# This is required to work with FetchContent +install(EXPORT llhttp + FILE llhttp-config.cmake + NAMESPACE llhttp:: + DESTINATION lib/cmake/llhttp) diff --git a/www/llhttp/pkg-descr b/www/llhttp/pkg-descr new file mode 100644 index 000000000000..3235e30e2239 --- /dev/null +++ b/www/llhttp/pkg-descr @@ -0,0 +1,9 @@ +llhttp is a port of http_parser to llparse. + +This project aims to: +- Make it maintainable +- Verifiable +- Improving benchmarks where possible + +WWW: https://llhttp.org/ +WWW: https://github.com/nodejs/llhttp diff --git a/www/llhttp/pkg-plist b/www/llhttp/pkg-plist new file mode 100644 index 000000000000..2566db4a9842 --- /dev/null +++ b/www/llhttp/pkg-plist @@ -0,0 +1,4 @@ +include/llhttp.h +lib/cmake/llhttp/llhttp-config-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/llhttp/llhttp-config.cmake +lib/libllhttp.so