aboutsummaryrefslogtreecommitdiff
path: root/textproc/libxml++
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2022-06-28 11:32:34 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2022-06-28 11:32:34 +0000
commitedda35495236e91396238b98d4993dbaa83aa7b7 (patch)
treed750d74810021fcb3d222d5be88edae4843c9368 /textproc/libxml++
parent4dbbcdb4467e0d519773687f3ccf328a70ea98de (diff)
Diffstat (limited to 'textproc/libxml++')
-rw-r--r--textproc/libxml++/Makefile21
-rw-r--r--textproc/libxml++/distinfo3
-rw-r--r--textproc/libxml++/files/patch-libxml++.pc.in8
-rw-r--r--textproc/libxml++/files/patch-meson.build20
-rw-r--r--textproc/libxml++/pkg-descr8
-rw-r--r--textproc/libxml++/pkg-plist47
6 files changed, 107 insertions, 0 deletions
diff --git a/textproc/libxml++/Makefile b/textproc/libxml++/Makefile
new file mode 100644
index 000000000000..08de080c00d4
--- /dev/null
+++ b/textproc/libxml++/Makefile
@@ -0,0 +1,21 @@
+# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
+
+PORTNAME= libxml++
+PORTVERSION= 5.0.1
+CATEGORIES= textproc
+MASTER_SITES= GNOME
+PKGNAMESUFFIX= ${PORTVERSION:R:S/.//}
+
+MAINTAINER= jcfyecrayz@liamekaens.com
+COMMENT= XML API for C++
+
+LICENSE= LGPL21+
+
+USES= gnome meson pkgconfig tar:xz
+USE_GNOME= libxml2
+USE_LDCONFIG= yes
+MESON_ARGS= -Ddefault_library=both
+
+PLIST_SUB= VERSION=${PORTVERSION:R} API_VERSION=${PORTVERSION:R}
+
+.include <bsd.port.mk>
diff --git a/textproc/libxml++/distinfo b/textproc/libxml++/distinfo
new file mode 100644
index 000000000000..cd64f5750e53
--- /dev/null
+++ b/textproc/libxml++/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1622112113
+SHA256 (libxml++-5.0.1.tar.xz) = 15c38307a964fa6199f4da6683a599eb7e63cc89198545b36349b87cf9aa0098
+SIZE (libxml++-5.0.1.tar.xz) = 779760
diff --git a/textproc/libxml++/files/patch-libxml++.pc.in b/textproc/libxml++/files/patch-libxml++.pc.in
new file mode 100644
index 000000000000..f59451ca7ce1
--- /dev/null
+++ b/textproc/libxml++/files/patch-libxml++.pc.in
@@ -0,0 +1,8 @@
+--- libxml++.pc.in.orig 2021-05-27 10:36:45 UTC
++++ libxml++.pc.in
+@@ -16,4 +16,4 @@ Libs: -L${libdir} -lxml++@MSVC_TOOLSET_VER@-@LIBXMLXX_
+ URL: https://libxmlplusplus.github.io/libxmlplusplus/
+ Requires: @LIBXMLXX_MODULES@
+ Libs: -L${libdir} -lxml++@MSVC_TOOLSET_VER@-@LIBXMLXX_API_VERSION@ @LIBXML2_LIB_NO_PKGCONFIG@
+-Cflags: -I${includedir}/@LIBXMLXX_MODULE_NAME@ -I${libdir}/@LIBXMLXX_MODULE_NAME@/include
++Cflags: -I${includedir}/@LIBXMLXX_MODULE_NAME@ -I${includedir}/@LIBXMLXX_MODULE_NAME@/include
diff --git a/textproc/libxml++/files/patch-meson.build b/textproc/libxml++/files/patch-meson.build
new file mode 100644
index 000000000000..7f1709a768ef
--- /dev/null
+++ b/textproc/libxml++/files/patch-meson.build
@@ -0,0 +1,20 @@
+--- meson.build.orig 2021-05-27 10:36:45 UTC
++++ meson.build
+@@ -44,7 +44,7 @@ is_msvc = cpp_compiler.get_id() == 'msvc'
+
+ cpp_compiler = meson.get_compiler('cpp')
+ is_msvc = cpp_compiler.get_id() == 'msvc'
+-python3 = import('python').find_installation('python3')
++python3 = import('python').find_installation()
+
+ python_version = python3.language_version()
+ python_version_req = '>= 3.5'
+@@ -290,7 +290,7 @@ configure_file(
+ install_dir: install_pkgconfigdir,
+ )
+
+-install_includeconfigdir = install_libdir / xmlxx_pcname / 'include'
++install_includeconfigdir = install_includedir / xmlxx_pcname / 'include'
+ xmlxxconfig_h = configure_file(
+ input: 'libxml++config.h.meson',
+ output: 'libxml++config.h',
diff --git a/textproc/libxml++/pkg-descr b/textproc/libxml++/pkg-descr
new file mode 100644
index 000000000000..75e7756bdd61
--- /dev/null
+++ b/textproc/libxml++/pkg-descr
@@ -0,0 +1,8 @@
+libxml++ is a C++ interface for working with XML files, using libxml
+(gnome-xml) to parse and write the actual XML files. It has a simple
+but complete API.
+
+libxml++-5.0 (ABI version 5.0) does not depend on glibmm, is not as
+good at handling UTF-8 strings, but has fewer dependencies.
+
+WWW: http://libxmlplusplus.sourceforge.net/
diff --git a/textproc/libxml++/pkg-plist b/textproc/libxml++/pkg-plist
new file mode 100644
index 000000000000..b5f1c87df671
--- /dev/null
+++ b/textproc/libxml++/pkg-plist
@@ -0,0 +1,47 @@
+include/libxml++-%%API_VERSION%%/include/libxml++config.h
+include/libxml++-%%API_VERSION%%/libxml++/attribute.h
+include/libxml++-%%API_VERSION%%/libxml++/attributedeclaration.h
+include/libxml++-%%API_VERSION%%/libxml++/attributenode.h
+include/libxml++-%%API_VERSION%%/libxml++/document.h
+include/libxml++-%%API_VERSION%%/libxml++/dtd.h
+include/libxml++-%%API_VERSION%%/libxml++/exceptions/exception.h
+include/libxml++-%%API_VERSION%%/libxml++/exceptions/internal_error.h
+include/libxml++-%%API_VERSION%%/libxml++/exceptions/parse_error.h
+include/libxml++-%%API_VERSION%%/libxml++/exceptions/validity_error.h
+include/libxml++-%%API_VERSION%%/libxml++/exceptions/wrapped_exception.h
+include/libxml++-%%API_VERSION%%/libxml++/io/istreamparserinputbuffer.h
+include/libxml++-%%API_VERSION%%/libxml++/io/ostreamoutputbuffer.h
+include/libxml++-%%API_VERSION%%/libxml++/io/outputbuffer.h
+include/libxml++-%%API_VERSION%%/libxml++/io/parserinputbuffer.h
+include/libxml++-%%API_VERSION%%/libxml++/keepblanks.h
+include/libxml++-%%API_VERSION%%/libxml++/libxml++.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/cdatanode.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/commentnode.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/contentnode.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/element.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/entitydeclaration.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/entityreference.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/node.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/processinginstructionnode.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/textnode.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/xincludeend.h
+include/libxml++-%%API_VERSION%%/libxml++/nodes/xincludestart.h
+include/libxml++-%%API_VERSION%%/libxml++/noncopyable.h
+include/libxml++-%%API_VERSION%%/libxml++/parsers/domparser.h
+include/libxml++-%%API_VERSION%%/libxml++/parsers/parser.h
+include/libxml++-%%API_VERSION%%/libxml++/parsers/saxparser.h
+include/libxml++-%%API_VERSION%%/libxml++/parsers/textreader.h
+include/libxml++-%%API_VERSION%%/libxml++/relaxngschema.h
+include/libxml++-%%API_VERSION%%/libxml++/schemabase.h
+include/libxml++-%%API_VERSION%%/libxml++/ustring.h
+include/libxml++-%%API_VERSION%%/libxml++/validators/dtdvalidator.h
+include/libxml++-%%API_VERSION%%/libxml++/validators/relaxngvalidator.h
+include/libxml++-%%API_VERSION%%/libxml++/validators/schemavalidatorbase.h
+include/libxml++-%%API_VERSION%%/libxml++/validators/validator.h
+include/libxml++-%%API_VERSION%%/libxml++/validators/xsdvalidator.h
+include/libxml++-%%API_VERSION%%/libxml++/xsdschema.h
+lib/libxml++-%%VERSION%%.a
+lib/libxml++-%%VERSION%%.so
+lib/libxml++-%%VERSION%%.so.1
+lib/libxml++-%%VERSION%%.so.1.0.0
+libdata/pkgconfig/libxml++-%%API_VERSION%%.pc