New package: pugixml-1.6

This commit is contained in:
Enno Boland 2015-08-30 10:17:50 +02:00
parent 495813d260
commit f19619765b
4 changed files with 61 additions and 0 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

23
srcpkgs/pugixml/template Normal file
View File

@ -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 <gottox@voidlinux.eu>"
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"
}
}