pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

litehtml: Restore patch which provide .so instead .a libraries



Module Name:	pkgsrc-wip
Committed By:	Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By:	drixter
Date:		Thu Jun 18 11:20:03 2026 +0200
Changeset:	bb0fdcae06cd07dc3d75787328f20738bf9aed79

Modified Files:
	litehtml/PLIST
	litehtml/distinfo
Added Files:
	litehtml/patches/patch-CMakeLists.txt

Log Message:
litehtml: Restore patch which provide .so instead .a libraries

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bb0fdcae06cd07dc3d75787328f20738bf9aed79

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 litehtml/PLIST                        |  4 +++-
 litehtml/distinfo                     |  1 +
 litehtml/patches/patch-CMakeLists.txt | 28 ++++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 1 deletion(-)

diffs:
diff --git a/litehtml/PLIST b/litehtml/PLIST
index f2d027483c..3e851cf0e5 100644
--- a/litehtml/PLIST
+++ b/litehtml/PLIST
@@ -70,6 +70,8 @@ include/litehtml/web_color.h
 lib/cmake/litehtml/litehtmlConfig.cmake
 lib/cmake/litehtml/litehtmlTargets-noconfig.cmake
 lib/cmake/litehtml/litehtmlTargets.cmake
-lib/liblitehtml.a
+lib/liblitehtml.so
+lib/liblitehtml.so.0
+lib/liblitehtml.so.0.0.0
 share/doc/litehtml/LICENSE
 share/doc/litehtml/README.md
diff --git a/litehtml/distinfo b/litehtml/distinfo
index 926d4e45f7..0ad6e6f841 100644
--- a/litehtml/distinfo
+++ b/litehtml/distinfo
@@ -3,4 +3,5 @@ $NetBSD: distinfo,v 1.4 2024/02/10 11:03:14 wiz Exp $
 BLAKE2s (litehtml-0.10.tar.gz) = 921fc2d6edc973d5c9781deedb2ea6c9c3bf9c1220a1a619b4c7b1dca2019aac
 SHA512 (litehtml-0.10.tar.gz) = e561ae14711d740a966255a2d0a392864181829f8fc24891d337b8fd892368e0c34f2be617a5437b034cc42474ad770f63774d4e27640fa43f794b9d03f660fc
 Size (litehtml-0.10.tar.gz) = 820656 bytes
+SHA1 (patch-CMakeLists.txt) = 78417c46188b97d99d05f73ce6f74bf92e55692c
 SHA1 (patch-cmake_litehtmlConfig.cmake) = 0b84f06f87a0c386eefe01d98c8829a122152d98
diff --git a/litehtml/patches/patch-CMakeLists.txt b/litehtml/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..732391b887
--- /dev/null
+++ b/litehtml/patches/patch-CMakeLists.txt
@@ -0,0 +1,28 @@
+$NetBSD$
+
+* create shared library
+* Use PRIVATE instead of PUBLIC keyword since we use
+  dynamic linking and don't want -lgumbo if requesting
+  linkage to litehtml via cmake.
+
+
+--- CMakeLists.txt.orig	2026-06-14 12:09:51.093123674 +0000
++++ CMakeLists.txt
+@@ -162,7 +162,7 @@ else()
+ 	add_compile_options(-Wall -Wextra -Wpedantic -Wfloat-conversion)
+ endif()
+ 
+-add_library(${PROJECT_NAME} ${HEADER_LITEHTML} ${SOURCE_LITEHTML})
++add_library(${PROJECT_NAME} SHARED ${HEADER_LITEHTML} ${SOURCE_LITEHTML})
+ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_LIB_VERSION} SOVERSION ${PROJECT_SO_VERSION})
+ 
+ set_target_properties(${PROJECT_NAME} PROPERTIES
+@@ -179,7 +179,7 @@ target_include_directories(${PROJECT_NAM
+ target_include_directories(${PROJECT_NAME} PRIVATE include/${PROJECT_NAME})
+ 
+ # Gumbo
+-target_link_libraries(${PROJECT_NAME} PUBLIC gumbo)
++target_link_libraries(${PROJECT_NAME} PRIVATE gumbo)
+ 
+ # install and export
+ install(TARGETS ${PROJECT_NAME}


Home | Main Index | Thread Index | Old Index