import ports/textproc/pugixml, ok landry@
pugixml is a portable and light-weight C++ XML processing library. It features: - DOM-like interface with rich traversal/modification capabilities - Extremely fast non-validating XML parser which constructs the DOM tree from an XML file/buffer - XPath 1.0 implementation for complex data-driven tree queries - Full Unicode support with Unicode interface variants and automatic encoding conversions
This commit is contained in:
parent
9f945ae8ee
commit
acdfca5e0c
33
textproc/pugixml/Makefile
Normal file
33
textproc/pugixml/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2015/11/30 14:32:27 sthen Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= light-weight, simple and fast XML parser for C++
|
||||
|
||||
V= 1.7
|
||||
DISTNAME= pugixml-$V
|
||||
|
||||
SHARED_LIBS += pugixml 0.0 # 1.7
|
||||
|
||||
CATEGORIES= textproc devel
|
||||
|
||||
HOMEPAGE= http://pugixml.org/
|
||||
|
||||
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB += m stdc++
|
||||
|
||||
MASTER_SITES= http://github.com/zeux/pugixml/releases/download/v$V/
|
||||
|
||||
MODULES= devel/cmake
|
||||
|
||||
CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=on
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
WRKSRC= ${WRKDIST}/scripts
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/pugixml/distinfo
Normal file
2
textproc/pugixml/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (pugixml-1.7.tar.gz) = ++ENRvYddp99kqKWEC5OK9PuFhMPEcWxChquWQ6h9co=
|
||||
SIZE (pugixml-1.7.tar.gz) = 354472
|
23
textproc/pugixml/patches/patch-scripts_CMakeLists_txt
Normal file
23
textproc/pugixml/patches/patch-scripts_CMakeLists_txt
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-scripts_CMakeLists_txt,v 1.1.1.1 2015/11/30 14:32:27 sthen Exp $
|
||||
--- scripts/CMakeLists.txt.orig Mon Nov 30 12:58:48 2015
|
||||
+++ scripts/CMakeLists.txt Mon Nov 30 12:58:53 2015
|
||||
@@ -26,9 +26,9 @@ else()
|
||||
endif()
|
||||
|
||||
# Enable C++11 long long for compilers that are capable of it
|
||||
-if(NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS 3.1)
|
||||
- target_compile_features(pugixml PUBLIC cxx_long_long_type)
|
||||
-endif()
|
||||
+#if(NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS 3.1)
|
||||
+# target_compile_features(pugixml PUBLIC cxx_long_long_type)
|
||||
+#endif()
|
||||
|
||||
set_target_properties(pugixml PROPERTIES VERSION 1.7 SOVERSION 1)
|
||||
|
||||
@@ -49,4 +49,4 @@ if(BUILD_TESTS)
|
||||
add_executable(check ${TEST_SOURCES})
|
||||
target_link_libraries(check pugixml)
|
||||
add_custom_command(TARGET check POST_BUILD COMMAND check WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/..)
|
||||
-endif()
|
||||
\ No newline at end of file
|
||||
+endif()
|
12
textproc/pugixml/pkg/DESCR
Normal file
12
textproc/pugixml/pkg/DESCR
Normal file
@ -0,0 +1,12 @@
|
||||
pugixml is a portable and light-weight C++ XML processing library.
|
||||
It features:
|
||||
|
||||
- DOM-like interface with rich traversal/modification capabilities
|
||||
|
||||
- Extremely fast non-validating XML parser which constructs the DOM tree
|
||||
from an XML file/buffer
|
||||
|
||||
- XPath 1.0 implementation for complex data-driven tree queries
|
||||
|
||||
- Full Unicode support with Unicode interface variants and automatic
|
||||
encoding conversions
|
8
textproc/pugixml/pkg/PLIST
Normal file
8
textproc/pugixml/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/11/30 14:32:27 sthen Exp $
|
||||
include/pugiconfig.hpp
|
||||
include/pugixml.hpp
|
||||
lib/cmake/
|
||||
lib/cmake/pugixml/
|
||||
lib/cmake/pugixml/pugixml-config${MODCMAKE_BUILD_SUFFIX}
|
||||
lib/cmake/pugixml/pugixml-config.cmake
|
||||
@lib lib/libpugixml.so.${LIBpugixml_VERSION}
|
Loading…
Reference in New Issue
Block a user