diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/ucommon/ucommon-6.1.10.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/ucommon/ucommon-6.1.10.ebuild')
-rw-r--r-- | dev-libs/ucommon/ucommon-6.1.10.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/dev-libs/ucommon/ucommon-6.1.10.ebuild b/dev-libs/ucommon/ucommon-6.1.10.ebuild new file mode 100644 index 000000000000..e032afde5db3 --- /dev/null +++ b/dev-libs/ucommon/ucommon-6.1.10.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils eutils + +DESCRIPTION="Portable C++ runtime for threads and sockets" +HOMEPAGE="https://www.gnu.org/software/commoncpp" +SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/6" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="doc static-libs socks +cxx debug libressl ssl gnutls" + +RDEPEND=" + ssl? ( + gnutls? ( + net-libs/gnutls:0= + dev-libs/libgcrypt:0= + ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + )" + +DEPEND="virtual/pkgconfig + doc? ( app-doc/doxygen ) + ${RDEPEND}" + +DOCS=(README NEWS SUPPORT ChangeLog AUTHORS) +PATCHES=( + "${FILESDIR}"/${PN}-6.1.10-disable_rtf_gen_doxy.patch + "${FILESDIR}"/${PN}-6.0.3-install_gcrypt.m4_file.patch + "${FILESDIR}"/${PN}-6.1.10-gcrypt_autotools.patch +) + +# Needed for doxygen, bug #526726 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +src_prepare() { + # Aclocal 1.13 deprecated error BGO #467674 + sed -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' -i configure.ac || die + + autotools-utils_src_prepare +} + +src_configure() { + local myconf="" + if use ssl; then + myconf+=" --with-sslstack=$(usex gnutls gnu ssl) " + else + myconf+=" --with-sslstack=nossl "; + fi + + local myeconfargs=( + $(use_enable socks) + $(use_enable cxx stdcpp) + ${myconf} + --enable-atomics + --with-pkg-config + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use doc && autotools-utils_src_compile doxy +} + +src_install() { + autotools-utils_src_install + if use doc; then + dohtml doc/html/* + fi +} |