diff options
Diffstat (limited to 'dev-cpp/commoncpp2')
-rw-r--r-- | dev-cpp/commoncpp2/Manifest | 2 | ||||
-rw-r--r-- | dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild | 76 | ||||
-rw-r--r-- | dev-cpp/commoncpp2/files/1.8.1-libressl.patch | 15 |
3 files changed, 93 insertions, 0 deletions
diff --git a/dev-cpp/commoncpp2/Manifest b/dev-cpp/commoncpp2/Manifest index a200ef2ae7a9..40c08965e1a3 100644 --- a/dev-cpp/commoncpp2/Manifest +++ b/dev-cpp/commoncpp2/Manifest @@ -5,8 +5,10 @@ AUX 1.8.1-fix-buffer-overflow.patch 442 BLAKE2B bfc345bc3d2df77a48e9b35b6462221f AUX 1.8.1-fix-c++14.patch 1220 BLAKE2B 10df79cc01b26b5df35ede979743cc2d18598fb47d2d83a30b5b0d11264495965d3af7f84ba6e28e4219cae0742b5293ec2f8c60870cf9a7585e7b999fab2e11 SHA512 222c21e7b0b4e035ec3a36edb5b9e68d345550781f21a8c075835bf6f27ee46f62469a17f4cec3c1c1bb69741661dbcc7071c51c964006201ed8c3ff48a60c80 AUX 1.8.1-gnutls-3.4.patch 1229 BLAKE2B a4936cce4fff5a7935c2bd077add555fa8d9b229afaaec545e78c1f6a7d34f35f7168c2381183ceaf4fd56bd1318a9505305ae59e77c87d9813f485e1aa6936d SHA512 92db4deba0ae612fda5873224641d35d5637a48d553d0afee7749c5477ca19a62640656d4781d101db5b545ddd962ce7c11a6edf33d128b031cafebf3cf6db77 AUX 1.8.1-libgcrypt.patch 1054 BLAKE2B fc96efbbc132972035ca9622cd21427e8d662a3ee3aa3972690305ca14da04d7665b17d33f4b9d16e5128575ee4d378e031b57cc579d777845fc65c3cbab4abe SHA512 76f444739b370681d1b619b78cc77867da197f149c19d036d9d8b430a7a59d697c7ab30529582c308f77bc584a003dc0701d8c06003329589ade652babe5edd2 +AUX 1.8.1-libressl.patch 427 BLAKE2B 2943df26ccd7401b845200ab263a531dbeacab4bfd6a280b0597191b391d45e218946fc5cf1e5230bd066b30270b6fd5f9d2e78e26472598ddedb4eb81827417 SHA512 9ef9a53cc4eb60e72a0049e7b3012df487ca3383c2a1908998df04dd37743125057614a235f9995c3840ade4bd96c19f13e1fa2c726b44c9a0f4fdbcb707a874 AUX 1.8.1-parallel-build.patch 261 BLAKE2B 71e639f976d1c1893f7e3285cecda841f4c90b1c2a153edda527c47804df8821a14a3c340544a9e0860fb4047af2772f036c0e10380b4025b4538e40082046b2 SHA512 e06ca32ffd811897859ef7bf06f3b7998eaa56c7fcbb01f971ec32b6e75c4242e3a2ed5a1bdaa28c02bae08bfbb386d65ebed3e50e2de759d056f085f1f49c1f DIST commoncpp2-1.8.1.tar.gz 908678 BLAKE2B 93868286230b4b0507127627f0a1c24b4f340e4af50d7592774b57bfc7a8f1e31bacc0cee5d17b4237aac85be0265cf3aabd65708e988159daaac85b4145c398 SHA512 949823461d20429c2b0acfa22554a5a9dacc977e3ee097f34416f65d322df84fbdb27c644435c6c6caaed800347dfbe789cee7f19b39b306165c97b4f4012bfe EBUILD commoncpp2-1.8.1-r2.ebuild 1570 BLAKE2B 63315cb648b80bba3516b3bb0d2338284afb7581f395d868d75e3fb554eb41e1c39839baaf63e42b9c4d58e18caf5d760f857ad2323a675b10d9ae63f517ddac SHA512 3dfdeed9b2b04151fe4ae5fab0454c8c161a047f99f8945325a4a88291463cfb85cc23adb6305efe76dc6b99b60893f78a0ecb721dd381ffe04be1e4b3376412 EBUILD commoncpp2-1.8.1-r3.ebuild 1515 BLAKE2B c32f470f07dc666105e851d1cdf6cd4c39c04ae055c91d0894cd01936a1c5d311a4bab100725029cd0c272aeb3172e1a62e78e9e6c2bf6630383b1e1efb148a8 SHA512 ce6af72543aca69603849311c2a15ae8f4df829c5e027660468b8a8e38f8c343581475890105849e78df329dc66911effaded94f6984779f706d6e2824b3108b +EBUILD commoncpp2-1.8.1-r4.ebuild 1632 BLAKE2B 91e87b4560ce28f5316f9b973faf8037bad2f4b34c1c5f2bb5c09fbb3829909e49d30acc53e5f7cef2fd6ec6e8a586abf47fef018494c80ce5d04de10317bd83 SHA512 7a583ef27e7cb9dd5049d001042308de601023cfece3f9fa91d5f98d449aabbfee9d9d6acacbf83632c83b4aa58b26a50b54fb77a661772c0fe05b664808a55b MISC metadata.xml 245 BLAKE2B 61823ae735b381c891f5cae47974d3b1ea6136d6f5f5d449a26dfcdf26472282d760b4ee8a605b8a7b75b9c97443cbc0db309ada118ce186030f276ed7c88963 SHA512 b098db4fb4d9ea116f6246bc6caf0f49e80e236d2fad78d287b638dbd5add7bfaf7feb1ca081ca557b23dde9227ce42fa808f3f6fd8eaba6a7e9cae93342f9c6 diff --git a/dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild b/dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild new file mode 100644 index 000000000000..797bc478eb2f --- /dev/null +++ b/dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils + +DESCRIPTION="C++ library offering portable support for system-related services" +SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz" +HOMEPAGE="https://www.gnu.org/software/commoncpp/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="debug doc examples gnutls ipv6 libressl ssl static-libs" + +RDEPEND=" + sys-libs/zlib + ssl? ( + gnutls? ( + dev-libs/libgcrypt:0= + net-libs/gnutls:= + ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + )" +DEPEND="${RDEPEND} + doc? ( >=app-doc/doxygen-1.3.6 )" + +HTML_DOCS=() + +PATCHES=( + "${FILESDIR}/1.8.1-configure_detect_netfilter.patch" + "${FILESDIR}/1.8.0-glibc212.patch" + "${FILESDIR}/1.8.1-autoconf-update.patch" + "${FILESDIR}/1.8.1-fix-buffer-overflow.patch" + "${FILESDIR}/1.8.1-parallel-build.patch" + "${FILESDIR}/1.8.1-libgcrypt.patch" + "${FILESDIR}/1.8.1-fix-c++14.patch" + "${FILESDIR}/1.8.1-gnutls-3.4.patch" + "${FILESDIR}/1.8.1-libressl.patch" # bug 674416 +) + +pkg_setup() { + use doc && HTML_DOCS+=( doc/html/. ) +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use ssl && local myconf=( $(usex gnutls '--with-gnutls' '--with-openssl') ) + + econf \ + $(use_enable debug) \ + $(use_with ipv6) \ + $(use_enable static-libs static) \ + $(use_with doc doxygen) \ + "${myconf[@]}" +} + +src_install () { + default + prune_libtool_files + + dodoc COPYING.addendum + + if use examples; then + docinto examples + dodoc demo/{*.cpp,*.h,*.xml,README} + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-cpp/commoncpp2/files/1.8.1-libressl.patch b/dev-cpp/commoncpp2/files/1.8.1-libressl.patch new file mode 100644 index 000000000000..9779a53d8fa0 --- /dev/null +++ b/dev-cpp/commoncpp2/files/1.8.1-libressl.patch @@ -0,0 +1,15 @@ +Upstream-Status: Submitted [bug-commoncpp@gnu.org] + +diff --git a/src/ssl.cpp b/src/ssl.cpp +index 5bf526d..3cd7040 100644 +--- a/src/ssl.cpp ++++ b/src/ssl.cpp +@@ -386,7 +386,7 @@ bool SSLStream::getSession(void) + if(so == INVALID_SOCKET) + return false; + +- ctx = SSL_CTX_new(SSLv3_client_method()); ++ ctx = SSL_CTX_new(SSLv23_client_method()); + if(!ctx) { + SSL_CTX_free(ctx); + return false; |