diff options
author | nros <nros@pkgsrc.org> | 2022-11-30 10:24:35 +0000 |
---|---|---|
committer | nros <nros@pkgsrc.org> | 2022-11-30 10:24:35 +0000 |
commit | 786c4a370be108c6bb99dce1d8ee2f00ea6183ca (patch) | |
tree | 5acc89f1cdea7184eaf1f651ba543254b2636f39 | |
parent | 0848c3b846aeab9d8de96366eba47b51e29e01c7 (diff) | |
download | pkgsrc-786c4a370be108c6bb99dce1d8ee2f00ea6183ca.tar.gz |
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.
-rw-r--r-- | www/Makefile | 3 | ||||
-rw-r--r-- | www/litehtml/DESCR | 6 | ||||
-rw-r--r-- | www/litehtml/Makefile | 32 | ||||
-rw-r--r-- | www/litehtml/PLIST | 58 | ||||
-rw-r--r-- | www/litehtml/buildlink3.mk | 12 | ||||
-rw-r--r-- | www/litehtml/distinfo | 7 | ||||
-rw-r--r-- | www/litehtml/patches/patch-CMakeLists.txt | 27 | ||||
-rw-r--r-- | www/litehtml/patches/patch-cmake_litehtmlConfig.cmake | 13 |
8 files changed, 157 insertions, 1 deletions
diff --git a/www/Makefile b/www/Makefile index d7e50d354fe..e7eeba5774d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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+= liferea SUBDIR+= lighttpd SUBDIR+= links SUBDIR+= links-gui +SUBDIR+= litehtml SUBDIR+= litmus SUBDIR+= llgal SUBDIR+= loggerhead diff --git a/www/litehtml/DESCR b/www/litehtml/DESCR new file mode 100644 index 00000000000..c47912e069e --- /dev/null +++ b/www/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/www/litehtml/Makefile b/www/litehtml/Makefile new file mode 100644 index 00000000000..fd4ce7e7de8 --- /dev/null +++ b/www/litehtml/Makefile @@ -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 +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 --git a/www/litehtml/PLIST b/www/litehtml/PLIST new file mode 100644 index 00000000000..9fb8c0e0187 --- /dev/null +++ b/www/litehtml/PLIST @@ -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 --git a/www/litehtml/buildlink3.mk b/www/litehtml/buildlink3.mk new file mode 100644 index 00000000000..58fad99c2f0 --- /dev/null +++ b/www/litehtml/buildlink3.mk @@ -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 --git a/www/litehtml/distinfo b/www/litehtml/distinfo new file mode 100644 index 00000000000..4f66cf03862 --- /dev/null +++ b/www/litehtml/distinfo @@ -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 --git a/www/litehtml/patches/patch-CMakeLists.txt b/www/litehtml/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..e5ab964b00a --- /dev/null +++ b/www/litehtml/patches/patch-CMakeLists.txt @@ -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 --git a/www/litehtml/patches/patch-cmake_litehtmlConfig.cmake b/www/litehtml/patches/patch-cmake_litehtmlConfig.cmake new file mode 100644 index 00000000000..84531f98c8f --- /dev/null +++ b/www/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) |