pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www add litehtml version 0.6 to pkgsrc-current



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d506c275d5e3
branches:  trunk
changeset: 389087:d506c275d5e3
user:      nros <nros%pkgsrc.org@localhost>
date:      Wed Nov 30 10:24:35 2022 +0000

description:
add litehtml version 0.6 to pkgsrc-current

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.

diffstat:

 www/Makefile                                          |   3 +-
 www/litehtml/DESCR                                    |   6 +
 www/litehtml/Makefile                                 |  32 ++++++++++
 www/litehtml/PLIST                                    |  58 +++++++++++++++++++
 www/litehtml/buildlink3.mk                            |  12 +++
 www/litehtml/distinfo                                 |   7 ++
 www/litehtml/patches/patch-CMakeLists.txt             |  27 ++++++++
 www/litehtml/patches/patch-cmake_litehtmlConfig.cmake |  13 ++++
 8 files changed, 157 insertions(+), 1 deletions(-)

diffs (200 lines):

diff -r 470eb315f6c5 -r d506c275d5e3 www/Makefile
--- a/www/Makefile      Wed Nov 30 10:19:25 2022 +0000
+++ b/www/Makefile      Wed Nov 30 10:24:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1650 2022/11/28 14:14:06 nros Exp $
+# $NetBSD: Makefile,v 1.1651 2022/11/30 10:24:35 nros Exp $
 #
 
 COMMENT=       Packages related to the World Wide Web
@@ -211,6 +211,7 @@
 SUBDIR+=       lighttpd
 SUBDIR+=       links
 SUBDIR+=       links-gui
+SUBDIR+=       litehtml
 SUBDIR+=       litmus
 SUBDIR+=       llgal
 SUBDIR+=       loggerhead
diff -r 470eb315f6c5 -r d506c275d5e3 www/litehtml/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/litehtml/DESCR        Wed Nov 30 10:24:35 2022 +0000
@@ -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 -r 470eb315f6c5 -r d506c275d5e3 www/litehtml/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/litehtml/Makefile     Wed Nov 30 10:24:35 2022 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2022/11/30 10:24:35 nros Exp $
+
+DISTNAME=      litehtml-0.6
+CATEGORIES=    www
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=litehtml/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.litehtml.com/
+COMMENT=       Fast and lightweight HTML/CSS rendering engine
+LICENSE=       modified-bsd
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+=   -DEXTERNAL_GUMBO=ON
+# Turn off testing since it installs gtest
+CMAKE_ARGS+=   -DBUILD_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 "../../www/gumbo-parser/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 470eb315f6c5 -r d506c275d5e3 www/litehtml/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/litehtml/PLIST        Wed Nov 30 10:24:35 2022 +0000
@@ -0,0 +1,58 @@
+@comment $NetBSD: PLIST,v 1.1 2022/11/30 10:24:35 nros Exp $
+include/litehtml/attributes.h
+include/litehtml/background.h
+include/litehtml/borders.h
+include/litehtml/box.h
+include/litehtml/codepoint.h
+include/litehtml/context.h
+include/litehtml/css_length.h
+include/litehtml/css_margins.h
+include/litehtml/css_offsets.h
+include/litehtml/css_position.h
+include/litehtml/css_selector.h
+include/litehtml/document.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/html.h
+include/litehtml/html_tag.h
+include/litehtml/iterators.h
+include/litehtml/litehtml.h
+include/litehtml/media_query.h
+include/litehtml/num_cvt.h
+include/litehtml/os_types.h
+include/litehtml/style.h
+include/litehtml/stylesheet.h
+include/litehtml/table.h
+include/litehtml/tstring_view.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 -r 470eb315f6c5 -r d506c275d5e3 www/litehtml/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/litehtml/buildlink3.mk        Wed Nov 30 10:24:35 2022 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/11/30 10:24:35 nros Exp $
+
+BUILDLINK_TREE+=       litehtml
+
+.if !defined(LITEHTML_BUILDLINK3_MK)
+LITEHTML_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.litehtml+=       litehtml>=0.6
+BUILDLINK_PKGSRCDIR.litehtml?=         ../../www/litehtml
+.endif # LITEHTML_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -litehtml
diff -r 470eb315f6c5 -r d506c275d5e3 www/litehtml/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/litehtml/distinfo     Wed Nov 30 10:24:35 2022 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2022/11/30 10:24:35 nros Exp $
+
+BLAKE2s (litehtml-0.6.tar.gz) = 058e1f3d949d5d6969a09148303557e5823c0ee7fbdfb6f7bcce22db49165d50
+SHA512 (litehtml-0.6.tar.gz) = b774ed96e53780865e789875f571f96ebce1cd2ff0c05a06ae68a67aec44375cc282c07f77fc87131d422aceddba32bbf3e8e498c870883d8e042adb30834c39
+Size (litehtml-0.6.tar.gz) = 347790 bytes
+SHA1 (patch-CMakeLists.txt) = a34e567186404f1d93d6ed9baffbc78eb270919f
+SHA1 (patch-cmake_litehtmlConfig.cmake) = 0b84f06f87a0c386eefe01d98c8829a122152d98
diff -r 470eb315f6c5 -r d506c275d5e3 www/litehtml/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/litehtml/patches/patch-CMakeLists.txt Wed Nov 30 10:24:35 2022 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2022/11/30 10:24:35 nros Exp $
+
+* 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        2022-04-05 20:49:06.000000000 +0000
++++ CMakeLists.txt
+@@ -131,7 +131,7 @@ set(TEST_LITEHTML
+ set(PROJECT_LIB_VERSION ${PROJECT_MAJOR}.${PROJECT_MINOR}.0)
+ set(PROJECT_SO_VERSION ${PROJECT_MAJOR})
+ 
+-add_library(${PROJECT_NAME} ${SOURCE_LITEHTML})
++add_library(${PROJECT_NAME} SHARED ${SOURCE_LITEHTML})
+ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_LIB_VERSION} SOVERSION ${PROJECT_SO_VERSION})
+ 
+ set_target_properties(${PROJECT_NAME} PROPERTIES
+@@ -153,7 +153,7 @@ if (LITEHTML_UTF8)
+ endif()
+ 
+ # Gumbo
+-target_link_libraries(${PROJECT_NAME} PUBLIC gumbo)
++target_link_libraries(${PROJECT_NAME} PRIVATE gumbo)
+ 
+ # install and export
+ install(TARGETS ${PROJECT_NAME}
diff -r 470eb315f6c5 -r d506c275d5e3 www/litehtml/patches/patch-cmake_litehtmlConfig.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/litehtml/patches/patch-cmake_litehtmlConfig.cmake     Wed Nov 30 10:24:35 2022 +0000
@@ -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