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/beecrypt |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/beecrypt')
-rw-r--r-- | dev-libs/beecrypt/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/beecrypt/beecrypt-4.2.1-r4.ebuild | 90 | ||||
-rw-r--r-- | dev-libs/beecrypt/files/beecrypt-4.2.1-build-system.patch | 160 | ||||
-rwxr-xr-x | dev-libs/beecrypt/files/beecrypt-4.2.1-c++11-allow-throw-in-destructors.patch | 26 | ||||
-rw-r--r-- | dev-libs/beecrypt/files/beecrypt-4.2.1-gcc-4.7.patch | 11 | ||||
-rw-r--r-- | dev-libs/beecrypt/metadata.xml | 8 |
6 files changed, 303 insertions, 0 deletions
diff --git a/dev-libs/beecrypt/Manifest b/dev-libs/beecrypt/Manifest new file mode 100644 index 000000000000..9ee88cb5d783 --- /dev/null +++ b/dev-libs/beecrypt/Manifest @@ -0,0 +1,8 @@ +AUX beecrypt-4.2.1-build-system.patch 3796 SHA256 98eb6ff5991988563bc33c431379443ac13fde2b23d9cc9e5ee0bd7c470f504b SHA512 6f13707e238cd2602c1482554381fc4ffb59d367fc095453ae05c7bc17438552745b304ce2ad5c071a367a0a90809173682676a392396521e20006f214db0c46 WHIRLPOOL aa8b7b454635b46fb238505a7a2f2e051943ca956fb7093a6b0e45e0fc93b5a0cd22ee16ebcf8d85b198dda4713744c112a5ee64efe70a82970eca5aeef86f13 +AUX beecrypt-4.2.1-c++11-allow-throw-in-destructors.patch 734 SHA256 8d8325702a0d74e0994f050c2e3c755e416d8c7abbb5e35875fc1d309d3cf4e8 SHA512 b6963a089587ecb495f097a890b57375f4580308f935424883ec0e694bf88848cded2e8108edc01f0887b6a8151437c94b7a2cd5bbdc48df151e16ea4755d2e4 WHIRLPOOL b3903b13e7214ee87e09588d5d4154c564001c1fad11b088b2d7b24cd5cc4cf9d9c6c598c1bc801d042eb56f92e1e2a35a3f1d277d8716bed918cb901f8dcca2 +AUX beecrypt-4.2.1-gcc-4.7.patch 262 SHA256 0266bf634f142753023737667cff3ad1d1a9bfc880a09ecfe02ff87b300de74e SHA512 908d688ae29f23a3f67cb1ddf8d2f5277853abbf6fe291e371fa8595b8c6c5e4293c1c15b80171270639b9d4f092b4602bbd5144448c4f19ff958d5522edbc77 WHIRLPOOL d55cd8fa4e95e3d49286582f99a99d5de8f1d778460ddafcba28b37b1d57da9821a7b1b48fbbd0a07f2ec10d21e946b2113a9dc73f60b686c3c917a8458e5af3 +DIST beecrypt-4.2.1.tar.gz 882758 SHA256 286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d SHA512 59995d53c024efe6344a21ac0d6d55fbe652488a4a22cc6719f9fc3851d56697fa8738937d48aa1e6f9ebe749de61ac3c79a5f0cea793872213c3bdf922e71bc WHIRLPOOL c4a0371d8e2cf37194800867c58e77d72bb59ab464fdff9c561230ece0f288dabdebfdd0ac13382c9ebe45b455ffbfdd81e6a15969dcb86d3d8c8e6635e294bb +EBUILD beecrypt-4.2.1-r4.ebuild 2054 SHA256 ed2778747f43b659067c1bce5c8e8abde8c78fb2e95d57a11dc64412c3a7ca75 SHA512 b131f25372dec86dd22c57163a855d560db8b28a222711b40827e4b156c3469c8900fcc77386a36602068661cd0733e08358de52608aeafe656969bf6f59a289 WHIRLPOOL c6276b2ff4d718f91de834d768b99ad64e9cc8ce43d1f88f6c1aa3e3a3288eb0851bedc2de8a3698c7882f1af81c6debfacd71163aa682bbfc3df726d87251b0 +MISC ChangeLog 4900 SHA256 192df2b6640d31b0548a56c489f7a9978d9ac782921b02bbe4406379a880adaa SHA512 7986459cb2f5f4c12fa4e24c87d313405aaa3e5d1bcf17adb28f799ad54494455a2bde0332df109697318e87b7f75859775cc95028d80f3aaf6f8a70fbf3630e WHIRLPOOL f54452e39d9512a4cc13a55a0824e7dd7674ed1fdc869beceb99b872d95319def9feb8ce5f9d93743230cd5b16834d71fc1e612acc567066117d8ef0bd75e01e +MISC ChangeLog-2015 14310 SHA256 f57b44faf3d91076c17c21e8ff41d1c555a087d494aec3535a0824f509082002 SHA512 9abf570b1673e783071e460acc36e4828dc46875a6460e1894258dea3dfb4c38a32a86a7913dd68bcc43320ab18af4eb0828d85f6fe1f3b3cbc1428d956f40ca WHIRLPOOL 4e0844b4ae963691bdc2c29e5e5a66158c283701131053d481af0313c78f63db9af79c3e376fdb5523429966643073794ccad4779bf15addc28b936f020baca6 +MISC metadata.xml 245 SHA256 9640c8bf9bec5a56feff5fdb971cfc8615d4e85949b8d76881711408bcf30efb SHA512 7da531ddd382748b46b2be3d6324c0f654e772ca0d1b87884a5de0ae1f4cf8a6e32d9cd0e4b87b7fd632aa176f873d7e315adbb974c367b4539045fdeffde98b WHIRLPOOL 54bb3499ea9031e5a39f55add3a8e7e72c3d499a3f54d4dd762e5128bac462ec295b354a6c66a3972d39b0cc07b8499cce0dc97666f65b6c9ad72fab7d2aca53 diff --git a/dev-libs/beecrypt/beecrypt-4.2.1-r4.ebuild b/dev-libs/beecrypt/beecrypt-4.2.1-r4.ebuild new file mode 100644 index 000000000000..4d835cb2cd94 --- /dev/null +++ b/dev-libs/beecrypt/beecrypt-4.2.1-r4.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit autotools java-pkg-opt-2 python-single-r1 + +DESCRIPTION="General-purpose cryptography library" +HOMEPAGE="https://sourceforge.net/projects/beecrypt/" +SRC_URI="mirror://sourceforge/beecrypt/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos" +IUSE="+threads java cxx python static-libs doc" +REQUIRED_USE="cxx? ( threads ) + python? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND="!<app-arch/rpm-4.2.1 + cxx? ( >=dev-libs/icu-2.8:= ) + python? ( ${PYTHON_DEPS} )" + +DEPEND="${COMMON_DEPEND} + java? ( >=virtual/jdk-1.4 ) + doc? ( app-doc/doxygen + virtual/latex-base + dev-texlive/texlive-fontsextra + )" +RDEPEND="${COMMON_DEPEND} + java? ( >=virtual/jre-1.4 )" + +DOCS=( BUGS README BENCHMARKS NEWS ) +PATCHES=( + "${FILESDIR}"/${P}-build-system.patch + "${FILESDIR}"/${P}-gcc-4.7.patch + + # Fixes bug 596904 + "${FILESDIR}"/${P}-c++11-allow-throw-in-destructors.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup + use java && java-pkg-opt-2_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # cplusplus needs threads support + econf \ + --disable-expert-mode \ + $(use_enable static-libs static) \ + $(use_enable threads) \ + $(use_with python python "${PYTHON}") \ + $(use_with cxx cplusplus) \ + $(use_with java) +} + +src_compile() { + default + + if use doc; then + pushd include/beecrypt >/dev/null || die + doxygen || die "doxygen failed" + popd >/dev/null || die + HTML_DOCS=( docs/html/*.{css,html,js,png} ) + fi +} + +src_test() { + export BEECRYPT_CONF_FILE="${T}/beecrypt-test.conf" + echo "provider.1=${S}/c++/provider/.libs/base.so" > "${BEECRYPT_CONF_FILE}" || die + emake check bench +} + +src_install() { + default + + if use python; then + rm -f "${D%/}$(python_get_sitedir)"/_bc.*a || die + fi + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die + fi +} diff --git a/dev-libs/beecrypt/files/beecrypt-4.2.1-build-system.patch b/dev-libs/beecrypt/files/beecrypt-4.2.1-build-system.patch new file mode 100644 index 000000000000..e35095f53b6e --- /dev/null +++ b/dev-libs/beecrypt/files/beecrypt-4.2.1-build-system.patch @@ -0,0 +1,160 @@ +--- beecrypt-4.2.1/configure.ac ++++ beecrypt-4.2.1/configure.ac +@@ -11,7 +11,7 @@ + + # Checks for package options + AC_ARG_ENABLE(expert-mode, [ --enable-expert-mode follow user-defined CFLAGS settings [[default=no]]],[ +- ac_enable_expert_mode=yes ++ ac_enable_expert_mode=$enableval + ],[ + if test "X$CFLAGS" != "X"; then + echo "enabling expert mode" +@@ -25,7 +25,7 @@ + if test "$ac_enable_expert_mode" = yes; then + AC_MSG_ERROR([--enable-debug cannot be used in conjunction with --enable-expert-mode]) + fi +- ac_enable_debug=yes ++ ac_enable_debug=$enableval + ],[ + ac_enable_debug=no + ]) +@@ -456,7 +456,7 @@ + ac_cv_python_include="-I`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()'`" + ]) + AC_CACHE_CHECK([where to install python libraries], ac_cv_python_libdir, [ +- ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'` ++ ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, 0)'` + ]) + fi + fi +--- beecrypt-4.2.1/acinclude.m4 ++++ beecrypt-4.2.1/acinclude.m4 +@@ -498,15 +498,6 @@ AC_DEFUN([BEE_GNU_CC],[ + AC_SUBST(OPENMP_LIBS,"-lgomp") + fi + case $bc_target_arch in +- x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona) +- CC="$CC -m64" +- ;; +- i[[3456]]86 | \ +- pentium* | \ +- athlon*) +- CC="$CC -m32" +- CCAS="$CCAS -m32" +- ;; + ia64) + case $target_os in + # HP/UX on Itanium needs to be told that a long is 64-bit! +@@ -525,17 +516,8 @@ AC_DEFUN([BEE_GNU_CC],[ + aix*) + CC="$CC -maix64" + ;; +- linux*) +- CC="$CC -m64" +- ;; + esac + ;; +- sparc | sparcv8*) +- CC="$CC -m32" +- ;; +- sparc64 | sparcv9*) +- CC="$CC -m64" +- ;; + esac + # Certain platforms needs special flags for multi-threaded code + if test "$ac_enable_threads" = yes; then +@@ -646,14 +646,6 @@ dnl BEE_GNU_CXX + AC_DEFUN([BEE_GNU_CXX],[ + AC_REQUIRE([AC_PROG_CXX]) + case $bc_target_arch in +- x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona | core2) +- CXX="$CXX -m64" +- ;; +- i[[3456]]86 | \ +- pentium* | \ +- athlon*) +- CXX="$CXX -m32" +- ;; + ia64) + case $target_os in + # HP/UX on Itanium needs to be told that a long is 64-bit! +@@ -672,17 +664,8 @@ AC_DEFUN([BEE_GNU_CXX],[ + aix*) + CXX="$CXX -maix64" + ;; +- linux*) +- CXX="$CXX -m64" +- ;; + esac + ;; +- sparc | sparcv8*) +- CXX="$CXX -m32" +- ;; +- sparc64 | sparcv9*) +- CXX="$CXX -m64" +- ;; + esac + # Certain platforms needs special flags for multi-threaded code + if test "$ac_enable_threads" = yes; then +--- beecrypt-4.2.1/java/Makefile.am ++++ beecrypt-4.2.1/java/Makefile.am +@@ -26,7 +26,7 @@ + + INCLUDES = -I$(top_srcdir)/include + +-libaltdir=$(prefix)/lib@LIBALT@ ++libaltdir=$(libdir) + + libalt_LTLIBRARIES = libbeecrypt_java.la + +--- beecrypt-4.2.1/acinclude.m4 ++++ beecrypt-4.2.1/acinclude.m4 +@@ -1589,20 +1589,5 @@ + AC_SUBST(TYPEDEF_BC_THREADID_T,$bc_typedef_bc_threadid_t) + ]) +- +-AH_BOTTOM([ +-#if ENABLE_THREADS +-# ifndef _REENTRANT +-# define _REENTRANT +-# endif +-# if LINUX +-# define _LIBC_REENTRANT +-# endif +-#else +-# ifdef _REENTRANT +-# undef _REENTRANT +-# endif +-#endif +-]) + + + dnl BEE_THREAD_LOCAL_STORAGE +@@ -1623,7 +1609,5 @@ + ]) + + AH_BOTTOM([ +-#if !ENABLE_THREAD_LOCAL_STORAGE +-# define __thread +-#endif ++#include "config.threads.h" + ]) +--- beecrypt-4.2.1/config.threads.h ++++ beecrypt-4.2.1/config.threads.h +@@ -0,0 +1,16 @@ ++#if ENABLE_THREADS ++# ifndef _REENTRANT ++# define _REENTRANT ++# endif ++# if LINUX ++# define _LIBC_REENTRANT ++# endif ++#else ++# ifdef _REENTRANT ++# undef _REENTRANT ++# endif ++#endif ++ ++#if !ENABLE_THREAD_LOCAL_STORAGE ++# define __thread ++#endif diff --git a/dev-libs/beecrypt/files/beecrypt-4.2.1-c++11-allow-throw-in-destructors.patch b/dev-libs/beecrypt/files/beecrypt-4.2.1-c++11-allow-throw-in-destructors.patch new file mode 100755 index 000000000000..0cb291d8ff15 --- /dev/null +++ b/dev-libs/beecrypt/files/beecrypt-4.2.1-c++11-allow-throw-in-destructors.patch @@ -0,0 +1,26 @@ +--- beecrypt-4.2.1/include/beecrypt/c++/lang/Object.h.old 2016-10-12 18:40:10.878868563 -0400 ++++ beecrypt-4.2.1/include/beecrypt/c++/lang/Object.h 2016-10-12 19:17:22.508857979 -0400 +@@ -145,7 +145,11 @@ + waiter* prev; + + waiter(bc_threadid_t owner, unsigned int lock_count); ++#if __cplusplus < 201103L + ~waiter(); ++#else ++ ~waiter() noexcept(false); ++#endif + }; + + waiter* _lock_head; +--- beecrypt-4.2.1/c++/lang/Object.cxx.old 2016-10-12 18:40:39.024665316 -0400 ++++ beecrypt-4.2.1/c++/lang/Object.cxx 2016-10-12 19:14:41.630529720 -0400 +@@ -767,6 +767,9 @@ + } + + Object::FairMonitor::waiter::~waiter() ++#if __cplusplus >= 201103L ++noexcept(false) ++#endif + { + #if WIN32 + if (!CloseHandle(event)) diff --git a/dev-libs/beecrypt/files/beecrypt-4.2.1-gcc-4.7.patch b/dev-libs/beecrypt/files/beecrypt-4.2.1-gcc-4.7.patch new file mode 100644 index 000000000000..dff5d8c04ab9 --- /dev/null +++ b/dev-libs/beecrypt/files/beecrypt-4.2.1-gcc-4.7.patch @@ -0,0 +1,11 @@ +--- a/include/beecrypt/c++/util/AbstractSet.h ++++ b/include/beecrypt/c++/util/AbstractSet.h +@@ -56,7 +56,7 @@ + if (c->size() != size()) + return false; + +- return containsAll(*c); ++ return this->containsAll(*c); + } + return false; + } diff --git a/dev-libs/beecrypt/metadata.xml b/dev-libs/beecrypt/metadata.xml new file mode 100644 index 000000000000..69ec19c5857b --- /dev/null +++ b/dev-libs/beecrypt/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">beecrypt</remote-id> + </upstream> +</pkgmetadata> |