From owner-dev-commits-ports-all@freebsd.org Mon Sep 27 15:58:41 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 48330668350; Mon, 27 Sep 2021 15:58:41 +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 4HJ6kS2Rqfz3lrD; Mon, 27 Sep 2021 15:58: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 1D8FA136E4; Mon, 27 Sep 2021 15:58: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 18RFwd0F030453; Mon, 27 Sep 2021 15:58:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18RFwdwF030452; Mon, 27 Sep 2021 15:58:39 GMT (envelope-from git) Date: Mon, 27 Sep 2021 15:58:39 GMT Message-Id: <202109271558.18RFwdwF030452@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: b6b97284627f - main - www/llhttp: Update to 6.0.5 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: b6b97284627fc03401f1f3c83b6a025e4b02f2ed 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: Mon, 27 Sep 2021 15:58:41 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b6b97284627fc03401f1f3c83b6a025e4b02f2ed commit b6b97284627fc03401f1f3c83b6a025e4b02f2ed Author: Po-Chuan Hsieh AuthorDate: 2021-09-27 15:37:24 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-27 15:55:51 +0000 www/llhttp: Update to 6.0.5 Changes: https://github.com/nodejs/llhttp/releases --- www/llhttp/Makefile | 7 +--- www/llhttp/distinfo | 6 ++-- www/llhttp/files/CMakeLists.txt | 64 ----------------------------------- www/llhttp/files/patch-CMakeLists.txt | 46 +++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 73 deletions(-) diff --git a/www/llhttp/Makefile b/www/llhttp/Makefile index 8e6de18aa8ff..db89c6965f5b 100644 --- a/www/llhttp/Makefile +++ b/www/llhttp/Makefile @@ -1,9 +1,8 @@ # Created by: Po-Chuan Hsieh PORTNAME= llhttp -PORTVERSION= 6.0.4 +PORTVERSION= 6.0.5 DISTVERSIONPREFIX= release/v -PORTREVISION= 1 CATEGORIES= www MAINTAINER= sunpoet@FreeBSD.org @@ -19,8 +18,4 @@ 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 index f53b9c676117..c18cf6b28087 100644 --- a/www/llhttp/distinfo +++ b/www/llhttp/distinfo @@ -1,3 +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 +TIMESTAMP = 1632664302 +SHA256 (nodejs-llhttp-release-v6.0.5_GH0.tar.gz) = 28d5bc494d379228cd7a9af32dfc518fc9e6c5ad56838cafb63e8062bee06bda +SIZE (nodejs-llhttp-release-v6.0.5_GH0.tar.gz) = 38102 diff --git a/www/llhttp/files/CMakeLists.txt b/www/llhttp/files/CMakeLists.txt deleted file mode 100644 index 2a3bb13a0028..000000000000 --- a/www/llhttp/files/CMakeLists.txt +++ /dev/null @@ -1,64 +0,0 @@ -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_static STATIC) -add_library(llhttp::llhttp ALIAS llhttp) - -target_sources(llhttp PRIVATE ${LLHTTP_SOURCES} ${LLHTTP_HEADERS}) -target_sources(llhttp_static 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 - $ - $ -) -target_include_directories(llhttp_static PUBLIC - $ - $ -) - - -set_target_properties(llhttp PROPERTIES PUBLIC_HEADER ${LLHTTP_HEADERS}) -set_target_properties(llhttp_static PROPERTIES OUTPUT_NAME llhttp) - -install(TARGETS llhttp - EXPORT llhttp - ARCHIVE DESTINATION lib - PUBLIC_HEADER DESTINATION include/ -) -install(TARGETS llhttp_static - ARCHIVE DESTINATION lib -) - -# 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/files/patch-CMakeLists.txt b/www/llhttp/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..a4fdd7981dee --- /dev/null +++ b/www/llhttp/files/patch-CMakeLists.txt @@ -0,0 +1,46 @@ +--- CMakeLists.txt.orig 2021-08-25 00:31:04 UTC ++++ CMakeLists.txt +@@ -9,7 +9,7 @@ set(CMAKE_C_STANDARD 99) + # Options + # + # Generic option +-option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) ++#option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) + + # Source code + set(LLHTTP_SOURCES +@@ -23,9 +23,11 @@ set(LLHTTP_HEADERS + ) + + add_library(llhttp) ++add_library(llhttp_static STATIC) + add_library(llhttp::llhttp ALIAS llhttp) + + target_sources(llhttp PRIVATE ${LLHTTP_SOURCES} ${LLHTTP_HEADERS}) ++target_sources(llhttp_static PRIVATE ${LLHTTP_SOURCES} ${LLHTTP_HEADERS}) + + # On windows with Visual Studio, add a debug postfix so that release + # and debug libraries can coexist. +@@ -37,13 +39,22 @@ target_include_directories(llhttp PUBLIC + $ + $ + ) ++target_include_directories(llhttp_static PUBLIC ++ $ ++ $ ++) + ++ + set_target_properties(llhttp PROPERTIES PUBLIC_HEADER ${LLHTTP_HEADERS}) ++set_target_properties(llhttp_static PROPERTIES OUTPUT_NAME llhttp) + + install(TARGETS llhttp + EXPORT llhttp + ARCHIVE DESTINATION lib + PUBLIC_HEADER DESTINATION include/ ++) ++install(TARGETS llhttp_static ++ ARCHIVE DESTINATION lib + ) + + # This is required to work with FetchContent