From nobody Fri Jan 17 12:47:55 2025 X-Original-To: dev-commits-ports-all@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 4YZKJq4FrLz5kx30; Fri, 17 Jan 2025 12:47:55 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YZKJq1kVYz3hlT; Fri, 17 Jan 2025 12:47:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737118075; 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=ErqiOcCMArw8hxr+ju6GIaNf18Xoka1So6UxxMnKgWk=; b=ymHt3cdtzbwRWfUd6cF23T7OaQkar60NCVsmfJgX6SE+ebXZOcwYtQxMi5WY7NiyQTFeF8 UOLiqVPQgnk1ZFazvAeETuOEaWVtZRwCsClvYoTJi3B7at1LVFqTXmvNapcLZxKPDqgQDx 7n0lUBkPI5a/7X7ytdN9KI3b2ZV7I2iMmTPJf7UC3kNzOxlxnK7bas1rStAuQCw419tIeT u7hhQTyTQUnjrXQ0y7wP4hnk0ulmdErtiuM3kiHgYBsksg1nVy7Ibwe1j914JKORgQwi/c BttUpR9GDS4OIkN2GsIx1kAy5Zh0QUZVp/RwArghr0i/s7YuD55eXBbz+5Ki0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737118075; 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=ErqiOcCMArw8hxr+ju6GIaNf18Xoka1So6UxxMnKgWk=; b=oMiVwt745PE7Jg5rHViPb29Hz4WczsNEqRjEfmClax1QXHGkwZXt0UOLuxUdqVEtQPQcTM OJOmj5QqO+SwNH75ToY7ozxvpYXAScAa/vyxLxtvlya8o8vzzfXoSebn8WhWeTJlwA/ESC 3818I34kKorzHMiaHGeXVPw8OWwfQed+tK0KzJC1ACnti7QI0mFDqfahMmq2vWRvCirpuN gOdQaKWBhv+zHtYLcRV1nP20pan+jiUN00OwrbCdJ/BysQ2STEp/3P/8gj2KcyAPlynSKA sCnmmQVooh0ItlPJLNq7puBWpxoj4jKznPEQfSCYJDePnNN1PKhn9zEK297ByA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737118075; a=rsa-sha256; cv=none; b=up3ACuG8dqWhf7xcTTgm2P38WsCRtY4bLveGBlmTZ8YIL8W4NtHKUJ/SiXYr/JyxGZlle+ rzcresu1KevOQ3TO9Q1hvnKylbiM+8RKtr3ya8Ufl+56ReOHKMPwmOF9jYftYUmGbXs4oF WwPGWWLnTa8zluJzMji1EyuNUKkoQ6VxObQiF3ZSxmB0BUFGS5fwo/Jc27zywbM3QgTYY2 P/i080XLP0+6CQmg2Azd/MGqK8d0GHLOsqIhB6lMEbDq83yHfEb+E14ZFQdufnwVPMfJwu wPiyoQnbY446hsLbaxxZSQHL/uabnd6SmfygBJr4sY1xgzGDmTUSEO8WSE5YNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YZKJq1FT9z3Ph; Fri, 17 Jan 2025 12:47:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50HCltxg093666; Fri, 17 Jan 2025 12:47:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50HClttF093663; Fri, 17 Jan 2025 12:47:55 GMT (envelope-from git) Date: Fri, 17 Jan 2025 12:47:55 GMT Message-Id: <202501171247.50HClttF093663@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Robert Clausecker Subject: git: 4b8ab93c8222 - 2025Q1 - www/lexbor: improve port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/2025Q1 X-Git-Reftype: branch X-Git-Commit: 4b8ab93c8222b4691f08af9c336b19d6f011c83d Auto-Submitted: auto-generated The branch 2025Q1 has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=4b8ab93c8222b4691f08af9c336b19d6f011c83d commit 4b8ab93c8222b4691f08af9c336b19d6f011c83d Author: Älven AuthorDate: 2025-01-08 11:55:24 +0000 Commit: Robert Clausecker CommitDate: 2025-01-17 12:45:33 +0000 www/lexbor: improve port + Add option for building EXAMPLES * Always build shared library, remove SHARED option * Use dynamic SOVERSION via PLIST_SUB PR: 283924 MFH: 2025Q1 (cherry picked from commit 97d9bb985218fbacf81ad48e08a811839ba7c50f) --- www/lexbor/Makefile | 14 +++++++--- www/lexbor/pkg-plist | 72 +++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 79 insertions(+), 7 deletions(-) diff --git a/www/lexbor/Makefile b/www/lexbor/Makefile index 4a01b07cb821..24537aba95eb 100644 --- a/www/lexbor/Makefile +++ b/www/lexbor/Makefile @@ -1,6 +1,7 @@ PORTNAME= lexbor DISTVERSIONPREFIX= v DISTVERSION= 2.4.0 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= alster@vinterdalen.se @@ -15,19 +16,24 @@ USES= cmake:testing USE_GITHUB= yes USE_LDCONFIG= yes +PLIST_SUB= SOVERSION=${DISTVERSION} + CMAKE_TESTING_ON= LEXBOR_BUILD_TESTS -OPTIONS_DEFINE= ASAN HEADERS SHARED STATIC -OPTIONS_DEFAULT= HEADERS SHARED STATIC +OPTIONS_DEFINE= ASAN EXAMPLES HEADERS STATIC +OPTIONS_DEFAULT= HEADERS STATIC OPTIONS_SUB= yes ASAN_DESC= Enable Address Sanitizer if possible HEADERS_DESC= Install library headers (.h files) -SHARED_DESC= Create a shared library ASAN_CMAKE_BOOL= LEXBOR_BUILD_WITH_ASAN +EXAMPLES_CMAKE_BOOL= LEXBOR_BUILD_EXAMPLES HEADERS_CMAKE_BOOL= LEXBOR_INSTALL_HEADERS -SHARED_CMAKE_BOOL= LEXBOR_BUILD_SHARED STATIC_CMAKE_BOOL= LEXBOR_BUILD_STATIC +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + .include diff --git a/www/lexbor/pkg-plist b/www/lexbor/pkg-plist index cc079486c1b1..90c372398edb 100644 --- a/www/lexbor/pkg-plist +++ b/www/lexbor/pkg-plist @@ -263,8 +263,74 @@ %%HEADERS%%include/lexbor/utils/http.h %%HEADERS%%include/lexbor/utils/utils.h %%HEADERS%%include/lexbor/utils/warc.h -%%SHARED%%lib/liblexbor.so -%%SHARED%%lib/liblexbor.so.2 -%%SHARED%%lib/liblexbor.so.2.4.0 +lib/liblexbor.so +lib/liblexbor.so.2 +lib/liblexbor.so.%%SOVERSION%% %%STATIC%%lib/liblexbor_static.a +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/StyleSheet.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/base.h +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/selectors/list_easy_way.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/selectors/list_fast_way.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/syntax/simple_colorize.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/syntax/structure_parse_file.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/syntax/tokenizer/chunks_stdin.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/syntax/tokenizer/from_file.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/css/syntax/tokenizer/print_raw.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/buffer/decode/decode.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/buffer/decode/decoder.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/buffer/decode/validate.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/buffer/encode/encode.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/buffer/encode/encoder.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/buffer/encode/validate.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/buffer/from_to.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/data_by_name.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/single/decode/decode.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/single/decode/decoder.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/single/decode/validate.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/single/encode/encode.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/single/encode/encoder.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/single/encode/validate.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/encoding/single/from_to.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/base.h +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/document_parse.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/document_parse_chunk.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/document_title.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/element_attributes.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/element_create.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/element_innerHTML.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/elements_by_attr.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/elements_by_class_name.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/elements_by_tag_name.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/encoding.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/html2sexpr.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/parse.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/parse_chunk.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/tokenizer/callback.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/tokenizer/simple.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/tokenizer/tag_attributes.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/html/tokenizer/text.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/punycode/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/punycode/decode.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/punycode/encode.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/selectors/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/selectors/easy_way.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/selectors/normal_way.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/selectors/unique_nodes.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/styles/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/styles/attribute_style.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/styles/base.h +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/styles/events_insert.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/styles/stylesheet.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/styles/walk.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/unicode/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/unicode/idna_to_ascii.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/unicode/normalization_form.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/unicode/normalization_form_stdin.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/url/CMakeLists.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/url/parse.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lexbor/url/relative.c %%HEADERS%%@dir include/lexbor/html/tree/insertion_mode