pkgsrc-WIP-changes archive

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

litehtml: Restore



Module Name:	pkgsrc-wip
Committed By:	Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By:	drixter
Date:		Tue Jun 23 17:14:39 2026 +0200
Changeset:	e2c1c0fb7453dbc85bb654cee74b6dcda2e8a266

Modified Files:
	Makefile
Added Files:
	litehtml/COMMIT_MSG
	litehtml/DESCR
	litehtml/Makefile
	litehtml/PLIST
	litehtml/buildlink3.mk
	litehtml/distinfo
	litehtml/patches/patch-CMakeLists.txt
	litehtml/patches/patch-cmake_litehtmlConfig.cmake

Log Message:
litehtml: Restore

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

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

diffstat:
 Makefile                                          |  1 +
 litehtml/COMMIT_MSG                               | 58 +++++++++++++++++
 litehtml/DESCR                                    |  6 ++
 litehtml/Makefile                                 | 34 ++++++++++
 litehtml/PLIST                                    | 77 +++++++++++++++++++++++
 litehtml/buildlink3.mk                            | 12 ++++
 litehtml/distinfo                                 |  7 +++
 litehtml/patches/patch-CMakeLists.txt             | 28 +++++++++
 litehtml/patches/patch-cmake_litehtmlConfig.cmake | 13 ++++
 9 files changed, 236 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ef6a5acb9b..acbbdd9aca 100644
--- a/Makefile
+++ b/Makefile
@@ -2267,6 +2267,7 @@ SUBDIR+=	lisp-scripts
 SUBDIR+=	lisp-sound
 SUBDIR+=	lissac
 SUBDIR+=	litecoin
+SUBDIR+=	litehtml
 SUBDIR+=	litestream
 SUBDIR+=	lives
 SUBDIR+=	lizardfs
diff --git a/litehtml/COMMIT_MSG b/litehtml/COMMIT_MSG
new file mode 100644
index 0000000000..cc7a6490c3
--- /dev/null
+++ b/litehtml/COMMIT_MSG
@@ -0,0 +1,58 @@
+www/litehtml: Update v0.10
+
+
+What's Changed
+Refactoring for zero warnings by @tordex in #288
+Add specifying a working directory for tests by @u-235 in #289
+Linux container: added support for borders style by @tordex in #290
+Fixed: Negative top margin changes block height #284 by @tordex in #292
+Fix windows build issues. by @tordex in #294
+fix min/max compilation errors on Windows by @stasoid in #299
+-Wpedantic in g++ makes lots of warnings by @m32 in #300
+Common cairo container by @tordex in #302
+flex: bug in processing box-sizing in flex items (#295) by @tordex in #303
+Support standard HTML character encodings by @stasoid in #305
+Implement "prescan the byte stream to determine its encoding" by @stasoid in #307
+Gradients support by @tordex in #312
+Fix: one brake tag is 'eaten' in line with double break by @tordex in #313
+Support for default value of the var() function. by @tordex in #316
+container_cairo_pango: select font from list of available fonts by @tordex in #317
+Fixed compiler warnings produced by gcc/clang at -Wall -Wextra levels by @kobalicek in #321
+Add standard-compliant CSS parser by @stasoid in #322
+fix type selector case-sensitivity issue by @stasoid in #323
+Fix crash in html_tag::draw_background() when is_root & clip is nullptr by @asmaloney in #324
+Modernize some code based on static analysis by @asmaloney in #331
+{haiku} Fix debug output in LiteHtmlView::draw_borders() by @asmaloney in #337
+{style} Prefer brace list returns by @asmaloney in #340
+{style} Use "= default" where possible by @asmaloney in #341
+Ensure border style is initialized by @asmaloney in #342
+Add media query tests, support images in test_container by @stasoid in #348
+Tracking of mouse enter/leave events on elements via a new document_container::on_mouse_event function by @tordex in #361
+Move tests to the another repository by @tordex in #363
+Add support for the "appearance" CSS property by @juddc in #367
+update to gumbo-parser 0.12.3 by @txgk in #382
+Support for text-decoration CSS properties by @tordex in #391
+Fixed memory leaks and possible crashes by @tordex in #393
+Optimizing remove_whitespace performance by @solomonwzs in #398
+feat: Implements image click event and optimized click event logic. by @NiuGuohui in #390
+Support 'text-emphasis' css properties. by @NiuGuohui in #395
+fix: issue with border radius for inline elements calculating by @tordex in #399
+Includes refactoring using clangd by @tordex in #400
+fixed: elements with 'position:fixed' have issue with draw by @tordex in #401
+Some small fixes by @tordex in #403
+Added documentation by @tordex in #406
+Conic gradient support for the container_cairo by @tordex in #407
+Fix: url fragment is not processed correctly by @tordex in #410
+fix: incorrect baseline calculation and list markers position by @tordex in #414
+Allow building with Clang using MSVC ABI by @cristianadam in #418
+Enable processing pixel lengths as float by @DRKV333 in #415
+Fix the issue where on_button_cancel does not work when hovering by @NiuGuohui in #421
+Improve flex layout free space distribution by @DRKV333 in #422
+Fix: incorrect hover position for vertically algned elements by @tordex in #431
+Support for elements scrolling by @tordex in #442
+Fix: incorect rendering of blocks with own formatting context by @tordex in #444
+Floating engine refactor by @tordex in #457
+Fix flex item with percentage max-width collapsing below its main size (#459) by @kleuter in #460
+Fix: crash in encoding detection with clang (#454) by @tordex in #462
+Rebuild the render tree in media_changed() so display changes across breakpoints take effect by @kleuter in #461
+Do not justify the last line of a block by @tordex in #464
diff --git a/litehtml/DESCR b/litehtml/DESCR
new file mode 100644
index 0000000000..c47912e069
--- /dev/null
+++ b/litehtml/DESCR
@@ -0,0 +1,6 @@
+litehtml is a lightweight HTML rendering engine with CSS2/CSS3
+support. litehtml does not depend on any image/drawing/font
+library as it does not draw any text, pictures or other
+graphics itself. The consumer of the library can use any
+library to draw images, fonts and any other graphics. HTML
+elements are just placed into the right position by litehtml.
diff --git a/litehtml/Makefile b/litehtml/Makefile
new file mode 100644
index 0000000000..124e275fdb
--- /dev/null
+++ b/litehtml/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.7 2025/01/05 22:37:07 wiz Exp $
+
+DISTNAME=	litehtml-0.10
+CATEGORIES=	www
+MASTER_SITES=	${MASTER_SITE_GITHUB:=litehtml/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	drixter%e-utp.net@localhost
+HOMEPAGE=	http://www.litehtml.com/
+COMMENT=	Fast and lightweight HTML/CSS rendering engine
+LICENSE=	modified-bsd
+
+USE_LANGUAGES=		c c++
+USE_CC_FEATURES=	c99
+USE_CXX_FEATURES=	c++11
+
+CMAKE_CONFIGURE_ARGS+=	-DEXTERNAL_GUMBO=ON
+# Turn off testing since it installs gtest
+CMAKE_CONFIGURE_ARGS+=	-DLITEHTML_BUILD_TESTING:BOOL=OFF
+
+CMAKE_USE_GNU_INSTALL_DIRS=	no
+
+INSTALLATION_DIRS+=	share/doc/${PKGBASE}
+
+# conform with the BSD license when distributing
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/LICENSE \
+		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/README.md \
+		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../devel/cmake/build.mk"
+.include "../../www/gumbo-parser/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/litehtml/PLIST b/litehtml/PLIST
new file mode 100644
index 0000000000..3e851cf0e5
--- /dev/null
+++ b/litehtml/PLIST
@@ -0,0 +1,77 @@
+@comment $NetBSD$
+include/litehtml/background.h
+include/litehtml/borders.h
+include/litehtml/codepoint.h
+include/litehtml/css_length.h
+include/litehtml/css_margins.h
+include/litehtml/css_offsets.h
+include/litehtml/css_parser.h
+include/litehtml/css_position.h
+include/litehtml/css_properties.h
+include/litehtml/css_selector.h
+include/litehtml/css_tokenizer.h
+include/litehtml/document.h
+include/litehtml/document_container.h
+include/litehtml/el_anchor.h
+include/litehtml/el_base.h
+include/litehtml/el_before_after.h
+include/litehtml/el_body.h
+include/litehtml/el_break.h
+include/litehtml/el_cdata.h
+include/litehtml/el_comment.h
+include/litehtml/el_div.h
+include/litehtml/el_font.h
+include/litehtml/el_image.h
+include/litehtml/el_link.h
+include/litehtml/el_para.h
+include/litehtml/el_script.h
+include/litehtml/el_space.h
+include/litehtml/el_style.h
+include/litehtml/el_table.h
+include/litehtml/el_td.h
+include/litehtml/el_text.h
+include/litehtml/el_title.h
+include/litehtml/el_tr.h
+include/litehtml/element.h
+include/litehtml/encodings.h
+include/litehtml/flex_item.h
+include/litehtml/flex_line.h
+include/litehtml/font_description.h
+include/litehtml/formatting_context.h
+include/litehtml/gradient.h
+include/litehtml/html.h
+include/litehtml/html_microsyntaxes.h
+include/litehtml/html_tag.h
+include/litehtml/iterators.h
+include/litehtml/line_box.h
+include/litehtml/litehtml.h
+include/litehtml/master_css.h
+include/litehtml/media_query.h
+include/litehtml/num_cvt.h
+include/litehtml/os_types.h
+include/litehtml/render_block.h
+include/litehtml/render_block_context.h
+include/litehtml/render_flex.h
+include/litehtml/render_image.h
+include/litehtml/render_inline.h
+include/litehtml/render_inline_context.h
+include/litehtml/render_item.h
+include/litehtml/render_table.h
+include/litehtml/scroll_view.h
+include/litehtml/string_id.h
+include/litehtml/style.h
+include/litehtml/stylesheet.h
+include/litehtml/table.h
+include/litehtml/types.h
+include/litehtml/url.h
+include/litehtml/url_path.h
+include/litehtml/utf8_strings.h
+include/litehtml/web_color.h
+lib/cmake/litehtml/litehtmlConfig.cmake
+lib/cmake/litehtml/litehtmlTargets-noconfig.cmake
+lib/cmake/litehtml/litehtmlTargets.cmake
+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/buildlink3.mk b/litehtml/buildlink3.mk
new file mode 100644
index 0000000000..e2ad3c3aaf
--- /dev/null
+++ b/litehtml/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.2 2024/02/10 11:03:14 wiz Exp $
+
+BUILDLINK_TREE+=	litehtml
+
+.if !defined(LITEHTML_BUILDLINK3_MK)
+LITEHTML_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.litehtml+=	litehtml>=0.9
+BUILDLINK_PKGSRCDIR.litehtml?=		../../www/litehtml
+.endif	# LITEHTML_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-litehtml
diff --git a/litehtml/distinfo b/litehtml/distinfo
new file mode 100644
index 0000000000..0ad6e6f841
--- /dev/null
+++ b/litehtml/distinfo
@@ -0,0 +1,7 @@
+$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}
diff --git a/litehtml/patches/patch-cmake_litehtmlConfig.cmake b/litehtml/patches/patch-cmake_litehtmlConfig.cmake
new file mode 100644
index 0000000000..84531f98c8
--- /dev/null
+++ b/litehtml/patches/patch-cmake_litehtmlConfig.cmake
@@ -0,0 +1,13 @@
+$NetBSD: patch-cmake_litehtmlConfig.cmake,v 1.1 2022/11/30 10:24:35 nros Exp $
+
+* The gumbo package does not install cmake packages so this line breaks
+  find_package(litehtml) . This line is not needed when litehtml is used
+  as a shared library.
+
+--- cmake/litehtmlConfig.cmake.orig	2021-09-03 06:59:31.000000000 +0000
++++ cmake/litehtmlConfig.cmake
+@@ -1,3 +1,3 @@
+ include(CMakeFindDependencyMacro)
+-find_dependency(gumbo)
++#find_dependency(gumbo)
+ include(${CMAKE_CURRENT_LIST_DIR}/litehtmlTargets.cmake)


Home | Main Index | Thread Index | Old Index