diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/xml-security-c |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/xml-security-c')
5 files changed, 115 insertions, 0 deletions
diff --git a/dev-libs/xml-security-c/Manifest b/dev-libs/xml-security-c/Manifest new file mode 100644 index 000000000000..bab920612332 --- /dev/null +++ b/dev-libs/xml-security-c/Manifest @@ -0,0 +1,7 @@ +AUX xml-security-c-1.6.1-nss-compilation-fix.patch 498 SHA256 5873240498e46d2372737829321b7b1b4615abbceeb756264ac9e63c2a556563 SHA512 cef34103931356f68a250a89f195e4ad0e67a116c6d0de2ab07407f607d70bec0c1e8d57d9eefa47c8bee7f5750668963409a4d740cead239b7ad16665515bb2 WHIRLPOOL a2ab8affe176916ef23424fc1195386d610c30f6a7f75926b89945b8432514705f1b4c5b2ebec2a83b39c92a7dd8dc8fa905a614bdc767328fff66f0a2c1f6ee +AUX xml-security-c-1.7.3-fix-c++14.patch 1182 SHA256 975085f00fd93d44b5246b220ec52d8827292a90a0ceb1f0fe6b3057d7b8063f SHA512 b1a0154b1a973e8ae4f4687c319694b2b6d22dc20385c2e74e27bf00a1887734075da27e10a48d3204d72d35baa55aaba1965984b75512097a0cc38b192211a1 WHIRLPOOL 45195f1ae96dedb5a5e1ac52bfb995311a5ac99f5247de37c2ce0689a3739f0bbe1f8e7b1fde192c21615a6731082b2d7ecc25364a88e3ef7ea9347bdb21b80c +DIST xml-security-c-1.7.3.tar.gz 909320 SHA256 e5226e7319d44f6fd9147a13fb853f5c711b9e75bf60ec273a0ef8a190592583 SHA512 ea46709d6706edf345e19132d9998774e50dc7b5947a7b4a55e3627998f5ac66f976fdff0a5015ef3cee73c03c04f3c4cf993efd397082491c2000c6548b89d2 WHIRLPOOL 5aba039916ffabdb6394c5a97ce10027a546cbba9b7978bfde06db22ee48e6820a42db9d1e1095fc2ef7235cb2e6f948bbe3fd6dcaf5e99f16316111a28a717b +EBUILD xml-security-c-1.7.3.ebuild 963 SHA256 6078eaf321cbf8967e277149212dcf73539510b1869f308d66db9ce72cee0020 SHA512 25370e42290a4d3787af196930b106030ec66d5ffef0277bcfe1afa08b8b853ea929a17e021a1c51ca1c69df38c74c0ca1fff17eee75a0a09e0a3c4658136ba1 WHIRLPOOL 6c3ace6f4912e605eab0093fec8c84665ba5ba04a59deb8261318d993864f732e5219790fbfea977b94addbfdd860b888b3ff99f6bb37b68a9436ebc3238771a +MISC ChangeLog 3351 SHA256 73906e31305ebdd196ca109684dac4687c263e63d3c4b788fb63fe6a9a91657d SHA512 83254509571df7072df28ecf4edc24bef7fc51dcaa6961c77f1578ff43b860bbfdc4d456512de4d7b9998290fa558cca30cd3962be64d6f6e53edc31e0e2cf4c WHIRLPOOL 6f6b8c760cb3be02ec06114a9708ccc45c976c0030f06afe7a68e94b8aa16cd994ca8a980d98cbbda4ee57460adc1eb763838fe74fb0ae52893fdedb534f7df0 +MISC ChangeLog-2015 2542 SHA256 8eb699206ebd5136618fc953e3cb7bc454b8e240d7c9d612b95436bd92f8f4d4 SHA512 37b065a04780bc2faf9a826a06f961070609233582cac836c99530f054796991ed3851a8f1d8c88902e3fb027eedcb48eb9f217d85bf88411aa01933e2a78f3f WHIRLPOOL 94b9def6244fcee73645c6f87d6c5956c770a8f0ef2d3e45b93c3cae8de3191f87d29afa68a7b65489359730b54d386d4cbf61ac4932e3cb4a427b0784ff50ef +MISC metadata.xml 483 SHA256 59a2dfe25200a0c73027bef94495867cb2928970a70561920e0a88d47e71f7ab SHA512 307df4870d40181dfa0fb62b5791a457ae5c1c4b5f752bcfcd3d6224a3f437ebbc17dad8892b8728ef8be152f2a463814404143e0caf92489c6221c1bf216ef2 WHIRLPOOL eae65503717a86548025658e1e91a39e0e728836b1482ae060cdda6fea23d84bc68d0176714688d28470acd746dc35808f6ba499cc88158448ef4490943708e3 diff --git a/dev-libs/xml-security-c/files/xml-security-c-1.6.1-nss-compilation-fix.patch b/dev-libs/xml-security-c/files/xml-security-c-1.6.1-nss-compilation-fix.patch new file mode 100644 index 000000000000..1635d6b80339 --- /dev/null +++ b/dev-libs/xml-security-c/files/xml-security-c-1.6.1-nss-compilation-fix.patch @@ -0,0 +1,13 @@ +diff --git a/xsec/tools/xtest/xtest.cpp b/xsec/tools/xtest/xtest.cpp +index ec40cb2..9cd389e 100644 +--- a/xsec/tools/xtest/xtest.cpp ++++ b/xsec/tools/xtest/xtest.cpp +@@ -2566,7 +2566,7 @@ int main(int argc, char **argv) { + } + #endif + #if defined(XSEC_HAVE_NSS) +- else if (stricmp(argv[paramCount], "--nss") == 0 || stricmp(argv[paramCount], "-n") == 0) { ++ else if (_stricmp(argv[paramCount], "--nss") == 0 || _stricmp(argv[paramCount], "-n") == 0) { + g_useNSS = true; + paramCount++; + } diff --git a/dev-libs/xml-security-c/files/xml-security-c-1.7.3-fix-c++14.patch b/dev-libs/xml-security-c/files/xml-security-c-1.7.3-fix-c++14.patch new file mode 100644 index 000000000000..40783bf21b29 --- /dev/null +++ b/dev-libs/xml-security-c/files/xml-security-c-1.7.3-fix-c++14.patch @@ -0,0 +1,36 @@ +Fix building with C++14, which errors out due to bool -> T* conversions +See also: https://bugs.gentoo.org/show_bug.cgi?id=594234 + +--- a/xsec/enc/OpenSSL/OpenSSLCryptoSymmetricKey.hpp ++++ b/xsec/enc/OpenSSL/OpenSSLCryptoSymmetricKey.hpp +@@ -151,7 +151,7 @@ + SymmetricKeyMode mode = MODE_CBC, + const unsigned char * iv = NULL, + const unsigned char* tag = NULL, +- unsigned int taglen = NULL); ++ unsigned int taglen = 0); + + /** + * \brief Continue an decrypt operation using this key. +--- a/xsec/enc/XSECCryptoSymmetricKey.hpp ++++ b/xsec/enc/XSECCryptoSymmetricKey.hpp +@@ -185,7 +185,7 @@ + SymmetricKeyMode mode = MODE_CBC, + const unsigned char* iv = NULL, + const unsigned char* tag = NULL, +- unsigned int taglen = NULL) = 0; ++ unsigned int taglen = 0) = 0; + + /** + * \brief Continue a decrypt operation using this key. +--- a/xsec/tools/checksig/InteropResolver.cpp ++++ b/xsec/tools/checksig/InteropResolver.cpp +@@ -645,7 +645,7 @@ + + } + +- return false; ++ return NULL; + + } + diff --git a/dev-libs/xml-security-c/metadata.xml b/dev-libs/xml-security-c/metadata.xml new file mode 100644 index 000000000000..507ea2f59d11 --- /dev/null +++ b/dev-libs/xml-security-c/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cpp@gentoo.org</email> + <name>Gentoo C++ Project</name> + </maintainer> + <use> + <flag name="xalan">Enable support for XSLT and XPath parsing + by <pkg>dev-libs/xalan-c</pkg></flag> + <flag name="nss">Use <pkg>dev-libs/nss</pkg> for certain crypto + operations (configureable at runtime)</flag> + </use> +</pkgmetadata> diff --git a/dev-libs/xml-security-c/xml-security-c-1.7.3.ebuild b/dev-libs/xml-security-c/xml-security-c-1.7.3.ebuild new file mode 100644 index 000000000000..19b14771f99b --- /dev/null +++ b/dev-libs/xml-security-c/xml-security-c-1.7.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Apache C++ XML security libraries" +HOMEPAGE="http://santuario.apache.org/" +SRC_URI="mirror://apache/santuario/c-library/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="debug examples libressl nss static-libs xalan" + +RDEPEND=">=dev-libs/xerces-c-3.1 + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + nss? ( dev-libs/nss ) + xalan? ( dev-libs/xalan-c )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( CHANGELOG.txt NOTICE.txt ) +PATCHES=( + "${FILESDIR}/${PN}-1.6.1-nss-compilation-fix.patch" + "${FILESDIR}/${PN}-1.7.3-fix-c++14.patch" +) + +src_configure() { + econf \ + --with-openssl \ + $(use_enable static-libs static) \ + $(use_enable debug) \ + $(use_with xalan) \ + $(use_with nss) +} + +src_install() { + default + if use examples ; then + docinto examples + dodoc xsec/samples/*.cpp + fi +} |