diff options
-rw-r--r-- | dev-libs/libgcrypt/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libgcrypt/files/libgcrypt-1.6.1-uscore.patch | 26 | ||||
-rw-r--r-- | dev-libs/libgcrypt/files/libgcrypt-multilib-syspath.patch | 23 | ||||
-rw-r--r-- | dev-libs/libgcrypt/libgcrypt-1.7.3.ebuild | 71 | ||||
-rw-r--r-- | dev-libs/libgcrypt/metadata.xml | 12 | ||||
-rw-r--r-- | profiles/use.local.desc | 15 |
6 files changed, 148 insertions, 0 deletions
diff --git a/dev-libs/libgcrypt/Manifest b/dev-libs/libgcrypt/Manifest new file mode 100644 index 00000000..4fbc9d92 --- /dev/null +++ b/dev-libs/libgcrypt/Manifest @@ -0,0 +1 @@ +DIST libgcrypt-1.7.3.tar.bz2 2861294 SHA256 ddac6111077d0a1612247587be238c5294dd0ee4d76dc7ba783cc55fb0337071 diff --git a/dev-libs/libgcrypt/files/libgcrypt-1.6.1-uscore.patch b/dev-libs/libgcrypt/files/libgcrypt-1.6.1-uscore.patch new file mode 100644 index 00000000..22bfac31 --- /dev/null +++ b/dev-libs/libgcrypt/files/libgcrypt-1.6.1-uscore.patch @@ -0,0 +1,26 @@ +The version taken from GnuPG 1.4 assumes any cross-compiled package have +prefixed underscores, which is not the case; by using libtool's own macro, +we can avoid the whole issue. + +--- libgcrypt-1.6.1/configure.ac ++++ libgcrypt-1.6.1/configure.ac +@@ -1022,7 +1022,7 @@ + # Check whether underscores in symbols are required. This needs to be + # done before setting up the assembler stuff. + # +-GNUPG_SYS_SYMBOL_UNDERSCORE() ++LT_SYS_SYMBOL_USCORE + + + ################################# +--- libgcrypt-1.6.1/mpi/config.links ++++ libgcrypt-1.6.1/mpi/config.links +@@ -362,7 +362,7 @@ + + # Make sysdep.h + echo '/* created by config.links - do not edit */' >./mpi/sysdep.h +-if test x$ac_cv_sys_symbol_underscore = xyes; then ++if test x$sys_symbol_underscore = xyes; then + cat <<EOF >>./mpi/sysdep.h + #if __STDC__ + #define C_SYMBOL_NAME(name) _##name diff --git a/dev-libs/libgcrypt/files/libgcrypt-multilib-syspath.patch b/dev-libs/libgcrypt/files/libgcrypt-multilib-syspath.patch new file mode 100644 index 00000000..7859851c --- /dev/null +++ b/dev-libs/libgcrypt/files/libgcrypt-multilib-syspath.patch @@ -0,0 +1,23 @@ +diff --git a/src/libgcrypt-config.in b/src/libgcrypt-config.in +index c052638..4c8ddc3 100644 +--- a/src/libgcrypt-config.in ++++ b/src/libgcrypt-config.in +@@ -154,9 +154,12 @@ if test "$echo_libs" = "yes"; then + libs_final="$libs" + + # Set up `libdirs'. +- if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then +- libdirs="-L$libdir" +- fi ++ case "$libdir" in ++ /usr/lib|/usr/lib64|/lib|/lib64) ;; ++ *) ++ libdirs="-L$libdir" ++ ;; ++ esac + + # Set up `libs_final'. + libs_final="$libs_final $gpg_error_libs" +-- +1.7.6.1 + diff --git a/dev-libs/libgcrypt/libgcrypt-1.7.3.ebuild b/dev-libs/libgcrypt/libgcrypt-1.7.3.ebuild new file mode 100644 index 00000000..eab0012b --- /dev/null +++ b/dev-libs/libgcrypt/libgcrypt-1.7.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +AUTOTOOLS_AUTORECONF=1 +#WANT_AUTOMAKE=1.14 + +inherit autotools-multilib flag-o-matic + +DESCRIPTION="General purpose crypto library based on the code used in GnuPG" +HOMEPAGE="http://www.gnupg.org/" +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-2.1 MIT" +SLOT="0/20" # subslot = soname major version +KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc static-libs" + +RDEPEND=">=dev-libs/libgpg-error-1.12[${MULTILIB_USEDEP}] + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r19 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32] + )" +DEPEND="${RDEPEND} + doc? ( virtual/texi2dvi )" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) + +PATCHES=( + "${FILESDIR}"/${PN}-1.6.1-uscore.patch + "${FILESDIR}"/${PN}-multilib-syspath.patch +) + +MULTILIB_CHOST_TOOLS=( + /usr/bin/libgcrypt-config +) + +multilib_src_configure() { + if [[ ${CHOST} == *86*-solaris* ]] ; then + # ASM code uses GNU ELF syntax, divide in particular, we need to + # allow this via ASFLAGS, since we don't have a flag-o-matic + # function for that, we'll have to abuse cflags for this + append-cflags -Wa,--divide + fi + local myeconfargs=( + --disable-dependency-tracking + --enable-noexecstack + --disable-O-flag-munging + $(use_enable static-libs static) + + # disabled due to various applications requiring privileges + # after libgcrypt drops them (bug #468616) + --without-capabilities + + # http://trac.videolan.org/vlc/ticket/620 + # causes bus-errors on sparc64-solaris + $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm") + $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm") + ) + autotools-utils_src_configure +} + +multilib_src_compile() { + emake + multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf +} + +multilib_src_install() { + emake DESTDIR="${D}" install + multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf +} diff --git a/dev-libs/libgcrypt/metadata.xml b/dev-libs/libgcrypt/metadata.xml new file mode 100644 index 00000000..6d1eb56e --- /dev/null +++ b/dev-libs/libgcrypt/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>k_f@gentoo.org</email> + <name>Kristian Fiskerstrand</name> + </maintainer> + <maintainer type="project"> + <email>crypto@gentoo.org</email> + <name>Crypto</name> + </maintainer> +</pkgmetadata> diff --git a/profiles/use.local.desc b/profiles/use.local.desc index 25067c92..4430e58e 100644 --- a/profiles/use.local.desc +++ b/profiles/use.local.desc @@ -135,6 +135,10 @@ app-text/stardict:espeak - Enable text to speech synthesizer using espeak engine app-text/stardict:pronounce - Install WyabdcRealPeopleTTS package (it is just many .wav files) to make StarDict pronounce English words app-text/stardict:qqwry - Enable QQWry plugin, which provides information (in Chinese language) about geographical positions, owner, etc. for IP addresses app-text/stardict:tools - Build and install the extra stardict tools +dev-libs/glib:dbus - Enable dependencies required by glib libraries using dbus service to manage settings saving +dev-libs/glib:mime - Pull in shared MIME database that many glib-based applications require at runtime to detect or open files. Warning: do not disable this flag unless installing on a headless server. +dev-libs/glib:systemtap - Build support for profiling and tracing using dev-util/systemtap +dev-libs/glib:utils - Install gtester-report utility to generate test report files for your software; build gresource utility with ELF support. games-emulation/xmame:bundled-libs - Use bundled version of dev-libs/expat games-emulation/xmame:net - Add network support games-emulation/xmess:bundled-libs - Use bundled version of dev-libs/expat @@ -157,6 +161,11 @@ games-rpg/magus:pdfviewer_qpdfview - Use qpdfview as default pdfviewer games-rpg/magus:pdfviewer_zathura - Use zathura as default pdfviewer games-rpg/magus:pngcrush - Use pngcrush for opimizing png before installation games-rpg/magus:postgres - Use postgresql instead of sqlite +mail-client/alpine:chappa - enhance alpine by applying Eduardo Chappa's patches +mail-client/alpine:onlyalpine - installs only the alpine binary, so it does not collied with app-editors/pico and/or mail-client/pine +mail-client/alpine:passfile - Adds support for caching passwords into a file between sessions +mail-client/alpine:smime - Enable support for S/MIME +mail-client/alpine:topal - Enable support for net-mail/topal media-gfx/pqiv:gtk2 - Use gtk:2 instead of gtk:3 media-libs/avidemux-core:system-ffmpeg - Use the ffmpeg provided by the system. media-libs/avidemux-plugins:aften - Enable A/52 (AC-3) audio encoder support. @@ -244,3 +253,9 @@ x11-drivers/nvidia-drivers:kernel3-14 - Install unofficial patches for linux-3.1 x11-drivers/nvidia-drivers:kernel3-17 - Install unofficial patches for linux-3.17 and newer x11-drivers/nvidia-drivers:pax_kernel - Patch to compile with hardened-sources/grsecurity x11-drivers/nvidia-drivers:tools - Install additional tools such as nvidia-settings +x11-libs/gtk+:adwaita-icon-theme - Force the adwaita-icon-theme +x11-libs/gtk+:at-spi2-atk - Enable the gtk3-atk-bridge, hard depending on app-accessibility/at-spi2-atk and thus on sys-apps/dbus +x11-libs/gtk+:broadway - Enable the GDK Broadway backend. +x11-libs/gtk+:cloudprint - Enable printing via Google Cloud Print. +x11-libs/gtk+:colord - Use x11-misc/colord for color management in printing +x11-libs/motif:motif22-compatibility - Compatibility with Open Motif 2.2 |