From 87546917bcbfd2d8db8bdc4717485ff6aac25778 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Sun, 3 Dec 2017 17:56:58 +0100 Subject: [PATCH] PugiXML: new recipe (#1830) * PugiXML: new recipe * version fix * PugiXML: debuginfo * Arch cleanup --- dev-libs/pugixml/pugixml-1.8.1.recipe | 77 +++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 dev-libs/pugixml/pugixml-1.8.1.recipe diff --git a/dev-libs/pugixml/pugixml-1.8.1.recipe b/dev-libs/pugixml/pugixml-1.8.1.recipe new file mode 100644 index 000000000..d671c55cc --- /dev/null +++ b/dev-libs/pugixml/pugixml-1.8.1.recipe @@ -0,0 +1,77 @@ +SUMMARY="An XML processing library" +DESCRIPTION="Pugixml is a C++ XML processing library, which consists of a \ +DOM-like interface with rich traversal/modification capabilities, an \ +extremely fast XML parser which constructs the DOM tree from an XML \ +file/buffer, and an XPath 1.0 implementation for complex data-driven tree \ +queries. Full Unicode support is also available, with Unicode interface \ +variants and conversions between different Unicode encodings (which \ +happen automatically during parsing/saving)." +HOMEPAGE="https://pugixml.org/" +COPYRIGHT="2006-2016 Arseny Kapoulkine" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/zeux/pugixml/releases/download/v1.8.1/pugixml-$portVersion.tar.gz" +CHECKSUM_SHA256="00d974a1308e85ca0677a981adc1b2855cb060923181053fb0abf4e2f37b8f39" +SOURCE_DIR="pugixml-1.8" + +ARCHITECTURES="?x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + pugixml$secondaryArchSuffix = $portVersion compat >= 1 + lib:libpugixml$secondaryArchSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + pugixml${secondaryArchSuffix}_devel = $portVersion + devel:libpugixml$secondaryArchSuffix + " +REQUIRES_devel=" + pugixml$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:cmake + cmd:make + " + +defineDebugInfoPackage pugixml$secondaryArchSuffix \ + $libDir/libpugixml.so.1.8 + +BUILD() +{ + cmake . \ + -DCMAKE_INSTALL_PREFIX:PATH=$prefix \ + -DBUILD_SHARED_LIBS=ON + + make ${jobArgs} +} + +INSTALL() +{ + make install + + # move include dir to correct location + mkdir -p $(dirname $includeDir) + mv $prefix/include $includeDir + + # prepare develop/lib + prepareInstalledDevelLibs libpugixml + + # devel package + packageEntries devel \ + $developDir +} + +TEST() +{ + make test +}