pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www
Module Name: pkgsrc
Committed By: nros
Date: Wed Nov 30 10:24:35 UTC 2022
Modified Files:
pkgsrc/www: Makefile
Added Files:
pkgsrc/www/litehtml: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/www/litehtml/patches: patch-CMakeLists.txt
patch-cmake_litehtmlConfig.cmake
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.1650 -r1.1651 pkgsrc/www/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/www/litehtml/DESCR pkgsrc/www/litehtml/Makefile \
pkgsrc/www/litehtml/PLIST pkgsrc/www/litehtml/buildlink3.mk \
pkgsrc/www/litehtml/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/litehtml/patches/patch-CMakeLists.txt \
pkgsrc/www/litehtml/patches/patch-cmake_litehtmlConfig.cmake
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/Makefile
diff -u pkgsrc/www/Makefile:1.1650 pkgsrc/www/Makefile:1.1651
--- pkgsrc/www/Makefile:1.1650 Mon Nov 28 14:14:06 2022
+++ pkgsrc/www/Makefile Wed Nov 30 10:24:35 2022
@@ -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
Added files:
Index: pkgsrc/www/litehtml/DESCR
diff -u /dev/null pkgsrc/www/litehtml/DESCR:1.1
--- /dev/null Wed Nov 30 10:24:35 2022
+++ pkgsrc/www/litehtml/DESCR Wed Nov 30 10:24:35 2022
@@ -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.
Index: pkgsrc/www/litehtml/Makefile
diff -u /dev/null pkgsrc/www/litehtml/Makefile:1.1
--- /dev/null Wed Nov 30 10:24:35 2022
+++ pkgsrc/www/litehtml/Makefile Wed Nov 30 10:24:35 2022
@@ -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"
Index: pkgsrc/www/litehtml/PLIST
diff -u /dev/null pkgsrc/www/litehtml/PLIST:1.1
--- /dev/null Wed Nov 30 10:24:35 2022
+++ pkgsrc/www/litehtml/PLIST Wed Nov 30 10:24:35 2022
@@ -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
Index: pkgsrc/www/litehtml/buildlink3.mk
diff -u /dev/null pkgsrc/www/litehtml/buildlink3.mk:1.1
--- /dev/null Wed Nov 30 10:24:35 2022
+++ pkgsrc/www/litehtml/buildlink3.mk Wed Nov 30 10:24:35 2022
@@ -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
Index: pkgsrc/www/litehtml/distinfo
diff -u /dev/null pkgsrc/www/litehtml/distinfo:1.1
--- /dev/null Wed Nov 30 10:24:35 2022
+++ pkgsrc/www/litehtml/distinfo Wed Nov 30 10:24:35 2022
@@ -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
Index: pkgsrc/www/litehtml/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/www/litehtml/patches/patch-CMakeLists.txt:1.1
--- /dev/null Wed Nov 30 10:24:35 2022
+++ pkgsrc/www/litehtml/patches/patch-CMakeLists.txt Wed Nov 30 10:24:35 2022
@@ -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}
Index: pkgsrc/www/litehtml/patches/patch-cmake_litehtmlConfig.cmake
diff -u /dev/null pkgsrc/www/litehtml/patches/patch-cmake_litehtmlConfig.cmake:1.1
--- /dev/null Wed Nov 30 10:24:35 2022
+++ pkgsrc/www/litehtml/patches/patch-cmake_litehtmlConfig.cmake Wed Nov 30 10:24:35 2022
@@ -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