diff --git a/textproc/pugixml/Makefile b/textproc/pugixml/Makefile new file mode 100644 index 00000000000..0aaf26a8f8d --- /dev/null +++ b/textproc/pugixml/Makefile @@ -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 + +# 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 diff --git a/textproc/pugixml/distinfo b/textproc/pugixml/distinfo new file mode 100644 index 00000000000..fa2a78677b9 --- /dev/null +++ b/textproc/pugixml/distinfo @@ -0,0 +1,2 @@ +SHA256 (pugixml-1.7.tar.gz) = ++ENRvYddp99kqKWEC5OK9PuFhMPEcWxChquWQ6h9co= +SIZE (pugixml-1.7.tar.gz) = 354472 diff --git a/textproc/pugixml/patches/patch-scripts_CMakeLists_txt b/textproc/pugixml/patches/patch-scripts_CMakeLists_txt new file mode 100644 index 00000000000..76f6b44df3c --- /dev/null +++ b/textproc/pugixml/patches/patch-scripts_CMakeLists_txt @@ -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() diff --git a/textproc/pugixml/pkg/DESCR b/textproc/pugixml/pkg/DESCR new file mode 100644 index 00000000000..06617b208b8 --- /dev/null +++ b/textproc/pugixml/pkg/DESCR @@ -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 diff --git a/textproc/pugixml/pkg/PLIST b/textproc/pugixml/pkg/PLIST new file mode 100644 index 00000000000..473b35ecdd8 --- /dev/null +++ b/textproc/pugixml/pkg/PLIST @@ -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}