From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-crypt/gpgme/Manifest | 10 +++ app-crypt/gpgme/files/gpgme-1.1.8-et_EE.patch | 11 +++ app-crypt/gpgme/files/gpgme-1.8.0-cmake.patch | 33 +++++++ app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch | 16 ++++ app-crypt/gpgme/gpgme-1.8.0-r2.ebuild | 104 ++++++++++++++++++++++ app-crypt/gpgme/gpgme-1.8.0-r3.ebuild | 107 +++++++++++++++++++++++ app-crypt/gpgme/gpgme-9999.ebuild | 119 ++++++++++++++++++++++++++ app-crypt/gpgme/metadata.xml | 11 +++ 8 files changed, 411 insertions(+) create mode 100644 app-crypt/gpgme/Manifest create mode 100644 app-crypt/gpgme/files/gpgme-1.1.8-et_EE.patch create mode 100644 app-crypt/gpgme/files/gpgme-1.8.0-cmake.patch create mode 100644 app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch create mode 100644 app-crypt/gpgme/gpgme-1.8.0-r2.ebuild create mode 100644 app-crypt/gpgme/gpgme-1.8.0-r3.ebuild create mode 100644 app-crypt/gpgme/gpgme-9999.ebuild create mode 100644 app-crypt/gpgme/metadata.xml (limited to 'app-crypt/gpgme') diff --git a/app-crypt/gpgme/Manifest b/app-crypt/gpgme/Manifest new file mode 100644 index 000000000000..9a7b314cc13d --- /dev/null +++ b/app-crypt/gpgme/Manifest @@ -0,0 +1,10 @@ +AUX gpgme-1.1.8-et_EE.patch 347 SHA256 1c315576b34f1b68b264b3fc5762d0107c444bc76cd58af04c6304551ed8fb64 SHA512 69577d0a1ae9061277cd502d72c2add13b61def4990c09c6181a14b4792745a4e2e467090019ab1ed8d3dc6df6f09b63230d2d21974e0a802a1e976fe5de18d5 WHIRLPOOL 93e3166033d76cabcfbc4109dd2da8da5a4cb35fb612758a210782bccf1fb8f4c7a8569064d621e6d4d03b7ed242362e605c4d642a833b8e3db5b699d526cb21 +AUX gpgme-1.8.0-cmake.patch 1216 SHA256 fb743604a031b9f8be816ccb643a78ed12a660d7cbeb8519387d7f44c7d33c8a SHA512 be2788db4a796fdd21524d20a8bc7ad52f7928fbd6e9945e5a2be048cc6251bf593a3d46623c589cbcd4491a3e5abdfc14b618098113c0e1ddcabdb4e7701f57 WHIRLPOOL ebd9435780cdedb5139cd3ccf7d7f108a16fc70c5698e62ee822333a272dadfc6a86706c59a332bf3412720a1eb197895c185173324d446de0ca2a2189685b81 +AUX gpgme-1.8.0-gcc-7.patch 554 SHA256 53aeee5535a8c22fb8c6540ef7bb60bf0c47b64dd728e228860bba5887c76593 SHA512 3256a04a7dfeb7b3b5a20765b6350454069f2a96d79c786326868513a8b87f5337084a0e2a5afeab0485257b4b360ba2fc9f56f08bbc0c102d75773ba83c44f7 WHIRLPOOL 076d69f78bcef3b8f505f12c84ced95ce7eed59ff597ba1137ac8c85caec45ac244750d53c85ed4bff3dfb1404ad27cd8830ecb29597644dce5da7899706c02f +DIST gpgme-1.8.0.tar.bz2 1298407 SHA256 596097257c2ce22e747741f8ff3d7e24f6e26231fa198a41b2a072e62d1e5d33 SHA512 9f214a44ddc4d602c2a0befc66aa6be9f2c90a24e153b873475867e30eec30e074826b98c11d20b0a2e4cd04e2625ce2545220481225fceb6ca9c51d3208e3de WHIRLPOOL 79ed725e24302d4d738e90739cf3c5e6e9fa89c3e4fef87a4fca569abb7f7b7f0140e62e76161f747b555f49166fd0ccda277dbd6cc46c00ce2797c32d442f7b +EBUILD gpgme-1.8.0-r2.ebuild 2526 SHA256 138cdb23adf656a3aa84aa3d6f54c1893e70787d2e279b7e6f844de9556da7fe SHA512 bb3849e3f0e2de7326c9f9c49114c0ad98827e8d72c3aad7d22e8ced2e65bb505ce79c437808e1b38e0c2d02bb2b26363557be6eb5898d062afedc87e1770a46 WHIRLPOOL 5e8c6dc600a2f8adc19dea6f4ccb6bdb4fc28383029c9e220542ee01d28ee52303a9450b784d59ff035983ac13de51a516b74217aa8de57ea44a999fa150c4f1 +EBUILD gpgme-1.8.0-r3.ebuild 2678 SHA256 1666cf1d3f1d5cd2d9a6c473db058b3ed7cc01617b98717670a4557245171933 SHA512 3b201fbf0d78b94091bee410d12b599c1fc51ff9ca674437bb7dfbcc1bf97084002a02e05b26dd6e48b53483f78b8e2009a01fdaabea4312a4eb1062b8999d72 WHIRLPOOL 7e344a9d66d9636c47b6a200eec3817cc17a5c9ea18e5827402c1df81e08052cecd6713292a81f7157873afc7a50a191dc95c9a8d64410372445fffafdfb7831 +EBUILD gpgme-9999.ebuild 2783 SHA256 7eeff16f2c0705828ab91c7a9703ac9a23bcec5b63bcb2a618497fdeea871d92 SHA512 8a100c6a5760d652fca76f58725599dbdeca8202701435f519c44ab88cd4e2b97685aa9798f21e6449b8bc3a3986df9c113645c5d86d3c382bbb9a7585afaa86 WHIRLPOOL 912aa6889c3ba6fbdbd749b59243bd8269cfa960392df4ebfcd40df874519e8c34b7c94fc86f47f3567c47c42cb5fe71cfcb032d0f12b5319d007e34e27a2281 +MISC ChangeLog 5742 SHA256 8060ac424bf3f337c32009675e575544c8933459b6665747c7335c65440725db SHA512 cdcc4075a86a46782d4b1b8fa60eb6495e60f8dffbed8e641019d05deac0721943512a8485547d3ace85908ced93680b6479fb61864bac073f6aef359177112c WHIRLPOOL df77c632e3cedd8f6dd1ba18106142b49877bc8d196528397c5ac7af22ddf6daa8d031ef5d9cb80f3f2a6d1dd8f51b6d9574977dc132401e5ceea580bb210611 +MISC ChangeLog-2015 32588 SHA256 365de278987394de285f4976fb94e094cdfe3d1e48a838209497301f2b108610 SHA512 4e5621b504fa9f9477adf17db0c36c12c9f56de3283015dc4954c4634202641ae0eb738c2449851bf840edf9a1851261243460102a1ae3d9dbdf3a104586e264 WHIRLPOOL bcb8b98517bbc5a2be7732585375d9e079940f19478f6a09f0ca3c2ea43dd0992aa4f482bc3b8dd3d9d683eae9870334768fa1faf44da22b807f9f160db2859d +MISC metadata.xml 315 SHA256 2090c9e52f91c000c11e53d0215dd327d8274ab13f3a4930340a608afe10c5e8 SHA512 502b5daf04f1b706514aba7d18cd454e1e99f63462159d3f5baebd1617bfa4760c7ea6fae9b7624fae2bc5943f8950211c6f4b326b6b62c3cf7eba4fc1255334 WHIRLPOOL dfd45c75e635ff36c55dd60b7c31a59ea22792fc07f6ba4cf493e99a4d55c3466e86cab704736a6b1547b9fb0b30670e839150f163643b1ebd9d98d6af814576 diff --git a/app-crypt/gpgme/files/gpgme-1.1.8-et_EE.patch b/app-crypt/gpgme/files/gpgme-1.1.8-et_EE.patch new file mode 100644 index 000000000000..293debb5b91d --- /dev/null +++ b/app-crypt/gpgme/files/gpgme-1.1.8-et_EE.patch @@ -0,0 +1,11 @@ +--- gpgme-1.1.8/src/gpgme-config.in 2009-03-08 10:25:48.000000000 +1100 ++++ gpgme-1.1.8/src/gpgme-config.in 2009-03-08 10:35:53.000000000 +1100 +@@ -64,7 +64,7 @@ + while test $# -gt 0; do + case "$1" in + -*=*) +- optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ++ optarg=`echo "$1" | sed 's/[-_[:alnum:]]*=//'` + ;; + *) + optarg= diff --git a/app-crypt/gpgme/files/gpgme-1.8.0-cmake.patch b/app-crypt/gpgme/files/gpgme-1.8.0-cmake.patch new file mode 100644 index 000000000000..09775b868eb6 --- /dev/null +++ b/app-crypt/gpgme/files/gpgme-1.8.0-cmake.patch @@ -0,0 +1,33 @@ +From 572c1aac107125ce62230251713349348373db5a Mon Sep 17 00:00:00 2001 +From: Heiko Becker +Date: Wed, 16 Nov 2016 23:09:45 +0100 +Subject: [PATCH] Remove a forgotten instance of @libsuffix@ + +* lang/cpp/src/GpgmeppConfig.cmake.in.in: Remove a forgotten +instance of @libsuffix@. +-- + +b2c07bd47bd608afa5cc819b60a7b5bb8c9dd96a removed @libsuffix@ from +cmake config files, but missed one instance. + +Signed-off-by: Heiko Becker +--- + lang/cpp/src/GpgmeppConfig.cmake.in.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lang/cpp/src/GpgmeppConfig.cmake.in.in b/lang/cpp/src/GpgmeppConfig.cmake.in.in +index 928d19f..cbe9713 100644 +--- a/lang/cpp/src/GpgmeppConfig.cmake.in.in ++++ b/lang/cpp/src/GpgmeppConfig.cmake.in.in +@@ -63,7 +63,7 @@ add_library(Gpgmepp SHARED IMPORTED) + + set_target_properties(Gpgmepp PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "@resolved_includedir@/gpgme++;@resolved_includedir@" +- INTERFACE_LINK_LIBRARIES "pthread;@resolved_libdir@/libgpgme@libsuffix@;@LIBASSUAN_LIBS@" ++ INTERFACE_LINK_LIBRARIES "pthread;@resolved_libdir@/libgpgme.so;@LIBASSUAN_LIBS@" + IMPORTED_LOCATION "@resolved_libdir@/libgpgmepp.so" + ) + +-- +2.8.0.rc3 + diff --git a/app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch b/app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch new file mode 100644 index 000000000000..9dd3e85cbfb7 --- /dev/null +++ b/app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch @@ -0,0 +1,16 @@ +diff --git a/lang/qt/src/qgpgmenewcryptoconfig.cpp b/lang/qt/src/qgpgmenewcryptoconfig.cpp +index eb3af56..af47594 100644 +--- a/lang/qt/src/qgpgmenewcryptoconfig.cpp ++++ b/lang/qt/src/qgpgmenewcryptoconfig.cpp +@@ -51,2 +51,3 @@ + #include ++#include /* std::mem_fn */ + +diff --git a/lang/qt/src/threadedjobmixin.h b/lang/qt/src/threadedjobmixin.h +index 32b23db..c4f85c2 100644 +--- a/lang/qt/src/threadedjobmixin.h ++++ b/lang/qt/src/threadedjobmixin.h +@@ -53,2 +53,3 @@ + #include ++#include /* std::function */ + diff --git a/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild b/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild new file mode 100644 index 000000000000..ff2d22ee82e3 --- /dev/null +++ b/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) +DISTUTILS_OPTIONAL=1 + +inherit distutils-r1 flag-o-matic ltprune qmake-utils + +DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" +HOMEPAGE="http://www.gnupg.org/related_software/gpgme" +SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="1/11" # subslot = soname major version +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="common-lisp static-libs cxx python qt5" + +COMMON_DEPEND="app-crypt/gnupg + >=dev-libs/libassuan-2.0.2 + >=dev-libs/libgpg-error-1.17 + python? ( ${PYTHON_DEPS} ) + qt5? ( dev-qt/qtcore:5 )" + #doc? ( app-doc/doxygen[dot] ) +DEPEND="${COMMON_DEPEND} + python? ( dev-lang/swig ) + qt5? ( dev-qt/qttest:5 )" +RDEPEND="${COMMON_DEPEND} + cxx? ( + !kde-apps/gpgmepp + !kde-apps/kdepimlibs:4 + )" + +REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.8-et_EE.patch + "${FILESDIR}"/${P}-cmake.patch +) + +do_python() { + if use python; then + pushd lang/python > /dev/null || die + distutils-r1_src_${EBUILD_PHASE} + popd > /dev/null + fi +} + +src_prepare() { + default + do_python +} + +src_configure() { + local languages=() + use common-lisp && languages+=( "cl" ) + use cxx && languages+=( "cpp" ) + if use qt5; then + languages+=( "qt" ) + #use doc || + export DOXYGEN=true + export MOC="$(qt5_get_bindir)/moc" + fi + + if [[ ${CHOST} == *-darwin* ]] ; then + # FIXME: I don't know how to select on C++11 (libc++) here, but + # I do know all Darwin users are using C++11. This should also + # apply to GCC 4.7+ with libc++, and basically anyone targetting + # it. + + # The C-standard doesn't define strdup, and C++11 drops it + # resulting in an implicit declaration of strdup error. Since + # it is in POSIX raise the feature set to that. + append-cxxflags -D_POSIX_C_SOURCE=200112L + + # Work around bug 601834 + use python && append-cflags -D_DARWIN_C_SOURCE + fi + + econf \ + --enable-languages="${languages[*]}" \ + $(use_enable static-libs static) + + use python && make -C lang/python prepare + + do_python +} + +src_compile() { + default + do_python +} + +src_install() { + default + do_python + prune_libtool_files + + # backward compatibility for gentoo + # in the past we had slots + dodir /usr/include/gpgme + dosym ../gpgme.h /usr/include/gpgme/gpgme.h +} diff --git a/app-crypt/gpgme/gpgme-1.8.0-r3.ebuild b/app-crypt/gpgme/gpgme-1.8.0-r3.ebuild new file mode 100644 index 000000000000..c18cb6e64d68 --- /dev/null +++ b/app-crypt/gpgme/gpgme-1.8.0-r3.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +DISTUTILS_OPTIONAL=1 + +inherit distutils-r1 flag-o-matic ltprune qmake-utils + +DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" +HOMEPAGE="http://www.gnupg.org/related_software/gpgme" +SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="1/11" # subslot = soname major version +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="common-lisp cxx python qt5 static-libs" + +COMMON_DEPEND="app-crypt/gnupg + >=dev-libs/libassuan-2.0.2 + >=dev-libs/libgpg-error-1.17 + python? ( ${PYTHON_DEPS} ) + qt5? ( dev-qt/qtcore:5 )" + #doc? ( app-doc/doxygen[dot] ) +DEPEND="${COMMON_DEPEND} + python? ( dev-lang/swig ) + qt5? ( dev-qt/qttest:5 )" +RDEPEND="${COMMON_DEPEND} + cxx? ( + ! /dev/null || die + distutils-r1_src_${EBUILD_PHASE} + popd > /dev/null + fi +} + +src_prepare() { + default + do_python +} + +src_configure() { + local languages=() + use common-lisp && languages+=( "cl" ) + use cxx && languages+=( "cpp" ) + if use qt5; then + languages+=( "qt" ) + #use doc || + export DOXYGEN=true + export MOC="$(qt5_get_bindir)/moc" + fi + + if [[ ${CHOST} == *-darwin* ]] ; then + # FIXME: I don't know how to select on C++11 (libc++) here, but + # I do know all Darwin users are using C++11. This should also + # apply to GCC 4.7+ with libc++, and basically anyone targetting + # it. + + # The C-standard doesn't define strdup, and C++11 drops it + # resulting in an implicit declaration of strdup error. Since + # it is in POSIX raise the feature set to that. + append-cxxflags -D_POSIX_C_SOURCE=200112L + + # Work around bug 601834 + use python && append-cflags -D_DARWIN_C_SOURCE + fi + + econf \ + --enable-languages="${languages[*]}" \ + $(use_enable static-libs static) + + use python && make -C lang/python prepare + + do_python +} + +src_compile() { + default + do_python +} + +src_install() { + default + do_python + prune_libtool_files + + # backward compatibility for gentoo + # in the past we had slots + dodir /usr/include/gpgme + dosym ../gpgme.h /usr/include/gpgme/gpgme.h +} diff --git a/app-crypt/gpgme/gpgme-9999.ebuild b/app-crypt/gpgme/gpgme-9999.ebuild new file mode 100644 index 000000000000..62097f8115df --- /dev/null +++ b/app-crypt/gpgme/gpgme-9999.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +DISTUTILS_OPTIONAL=1 + +inherit distutils-r1 flag-o-matic ltprune qmake-utils toolchain-funcs +inherit git-r3 autotools + +DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" +HOMEPAGE="http://www.gnupg.org/related_software/gpgme" +EGIT_REPO_URI="git://git.gnupg.org/gpgme.git" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="1/11" # subslot = soname major version +KEYWORDS="" +IUSE="common-lisp static-libs cxx python qt5" + +COMMON_DEPEND="app-crypt/gnupg + >=dev-libs/libassuan-2.0.2:= + >=dev-libs/libgpg-error-1.17:= + python? ( ${PYTHON_DEPS} ) + qt5? ( dev-qt/qtcore:5 )" + #doc? ( app-doc/doxygen[dot] ) +DEPEND="${COMMON_DEPEND} + python? ( dev-lang/swig ) + qt5? ( dev-qt/qttest:5 )" +RDEPEND="${COMMON_DEPEND} + cxx? ( + ! /dev/null || die + top_builddir="../.." srcdir="." CPP=$(tc-getCPP) distutils-r1_src_${EBUILD_PHASE} + popd > /dev/null + fi +} + +pkg_setup() { + addpredict /run/user/$(id -u)/gnupg +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local languages=() + use common-lisp && languages+=( "cl" ) + use cxx && languages+=( "cpp" ) + if use qt5; then + languages+=( "qt" ) + #use doc || + export DOXYGEN=true + export MOC="$(qt5_get_bindir)/moc" + fi + + if [[ ${CHOST} == *-darwin* ]] ; then + # FIXME: I don't know how to select on C++11 (libc++) here, but + # I do know all Darwin users are using C++11. This should also + # apply to GCC 4.7+ with libc++, and basically anyone targetting + # it. + + # The C-standard doesn't define strdup, and C++11 drops it + # resulting in an implicit declaration of strdup error. Since + # it is in POSIX raise the feature set to that. + append-cxxflags -D_POSIX_C_SOURCE=200112L + + # Work around bug 601834 + use python && append-cflags -D_DARWIN_C_SOURCE + fi + + econf \ + --enable-languages="${languages[*]}" \ + $(use_enable static-libs static) + + use python && make -C lang/python prepare + + do_python +} + +src_compile() { + default + do_python +} + +src_test() { + default + if use python; then + test_python() { + emake -C lang/python/tests check \ + PYTHON=${EPYTHON} \ + PYTHONS=${EPYTHON} \ + TESTFLAGS="--python-libdir=${BUILD_DIR}/lib" + } + python_foreach_impl test_python + fi +} + +src_install() { + default + do_python + prune_libtool_files + + # backward compatibility for gentoo + # in the past we had slots + dodir /usr/include/gpgme + dosym ../gpgme.h /usr/include/gpgme/gpgme.h +} diff --git a/app-crypt/gpgme/metadata.xml b/app-crypt/gpgme/metadata.xml new file mode 100644 index 000000000000..89e984954f11 --- /dev/null +++ b/app-crypt/gpgme/metadata.xml @@ -0,0 +1,11 @@ + + + + + crypto@gentoo.org + Crypto + + + Install common-lisp files + + -- cgit v1.2.3