From f19619765b89f8670d494f305b7335aa209cb7d2 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 30 Aug 2015 10:17:50 +0200 Subject: [PATCH] New package: pugixml-1.6 --- common/shlibs | 1 + .../patches/patch-scripts_CMakeLists.patch | 26 +++++++++++++++++++ .../patches/patch-src_pugiconfig.patch | 11 ++++++++ srcpkgs/pugixml/template | 23 ++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 srcpkgs/pugixml/patches/patch-scripts_CMakeLists.patch create mode 100644 srcpkgs/pugixml/patches/patch-src_pugiconfig.patch create mode 100644 srcpkgs/pugixml/template diff --git a/common/shlibs b/common/shlibs index efa39392e3d..d17bd64a48c 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2144,3 +2144,4 @@ libqtelegram-ae.so.1 libqtelegram-ae-5.0_1 libtelegramqml.so.1 TelegramQML-0.8.0_1 libglog.so.0 glog-0.3.4_1 libzita-convolver.so.3 zita-convolver-3.1.0_1 +libpugixml.so.1 pugixml-1.6_1 diff --git a/srcpkgs/pugixml/patches/patch-scripts_CMakeLists.patch b/srcpkgs/pugixml/patches/patch-scripts_CMakeLists.patch new file mode 100644 index 00000000000..9d1f7d2a3db --- /dev/null +++ b/srcpkgs/pugixml/patches/patch-scripts_CMakeLists.patch @@ -0,0 +1,26 @@ +--- scripts/CMakeLists.txt.orig 2015-03-25 03:19:09 UTC ++++ scripts/CMakeLists.txt +@@ -16,19 +16,16 @@ if(DEFINED BUILD_DEFINES) + add_definitions(${BUILD_DEFINES}) + endif() + +-if(BUILD_SHARED_LIBS) +- add_library(pugixml SHARED ${SOURCES}) +-else() +- add_library(pugixml STATIC ${SOURCES}) +-endif() ++add_library(pugixml SHARED ${SOURCES}) ++add_library(pugixml_static STATIC ${SOURCES}) + + set_target_properties(pugixml PROPERTIES VERSION 1.6 SOVERSION 1) ++set_target_properties(pugixml_static PROPERTIES OUTPUT_NAME pugixml) + +-install(TARGETS pugixml EXPORT pugixml-config ++install(TARGETS pugixml pugixml_static + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) + + install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) +-install(EXPORT pugixml-config DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pugixml) diff --git a/srcpkgs/pugixml/patches/patch-src_pugiconfig.patch b/srcpkgs/pugixml/patches/patch-src_pugiconfig.patch new file mode 100644 index 00000000000..bee679acaa5 --- /dev/null +++ b/srcpkgs/pugixml/patches/patch-src_pugiconfig.patch @@ -0,0 +1,11 @@ +--- src/pugiconfig.hpp.orig 2015-08-18 17:07:06 UTC ++++ src/pugiconfig.hpp +@@ -41,7 +41,7 @@ + // #define PUGIXML_HEADER_ONLY + + // Uncomment this to enable long long support +-// #define PUGIXML_HAS_LONG_LONG ++#define PUGIXML_HAS_LONG_LONG + + #endif + diff --git a/srcpkgs/pugixml/template b/srcpkgs/pugixml/template new file mode 100644 index 00000000000..6bcf6686712 --- /dev/null +++ b/srcpkgs/pugixml/template @@ -0,0 +1,23 @@ +# Template file for 'pugixml' +pkgname=pugixml +version=1.6 +revision=1 +build_style=cmake +hostmakedepends="cmake" +short_desc="Light-weight, simple and fast XML parser for C++ with XPath support" +maintainer="Enno Boland " +license="MIT" +homepage="http://pugixml.org/" +distfiles="http://github.com/zeux/pugixml/releases/download/v1.6/pugixml-$version.tar.gz" +checksum=473705c496d45ee6a74f73622b175dfb5dde0de372c4dc61a5acb964516cd9de +build_wrksrc="scripts" + +pugixml-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}