dev-libs/libgcrypt: add 9999 version
authorkristianf <devnull@localhost>
Thu, 24 Oct 2013 17:01:26 +0000 (19:01 +0200)
committerkristianf <devnull@localhost>
Thu, 24 Oct 2013 17:01:26 +0000 (19:01 +0200)
dev-libs/libgcrypt/Manifest [new file with mode: 0644]
dev-libs/libgcrypt/files/0002-Fix-building-with-GNU-Automake-1.13.patch [new file with mode: 0644]
dev-libs/libgcrypt/libgcrypt-9999.ebuild [new file with mode: 0644]

diff --git a/dev-libs/libgcrypt/Manifest b/dev-libs/libgcrypt/Manifest
new file mode 100644 (file)
index 0000000..c02ae34
--- /dev/null
@@ -0,0 +1,2 @@
+AUX 0002-Fix-building-with-GNU-Automake-1.13.patch 2050 SHA256 78b5786783d326a77323cbdb9294544d184a2ddfc3d8d298be170e5b585ea45a SHA512 3b66d6a0e02f0ba16dbcf509b045d771c40865bd6054bd928506cc2c157f764d55f352d557ac33cc0dbc0892351998723306ee61609e5459141b48c9158a86b3 WHIRLPOOL ea63892696187afe9fe9be752247056f4062019a413370186ee28383b4f97c0a4bba43ec5212dc433d94d1f831ec90bd5dac84a37dc5b99faa63f45006fd732e
+EBUILD libgcrypt-9999.ebuild 738 SHA256 f6e96b3d6f52a77d42466060b306034e0c694e07582592156f8482f887a1409b SHA512 6da004914a2e0dd45cb860d631d50e5716fc58c402d82427c9c405aa3a7f1ee548842357511c7e73015e6b61d6ec24b23e2b2704abe31025076282eef83f4524 WHIRLPOOL 56581492f8905b1352a2945de2ccc08bdb53a32acc7029450cfc1ffe35958f7ac2087178d38386270c040e575607b43a53570bf3bb6a705a6233210bcd7a3063
diff --git a/dev-libs/libgcrypt/files/0002-Fix-building-with-GNU-Automake-1.13.patch b/dev-libs/libgcrypt/files/0002-Fix-building-with-GNU-Automake-1.13.patch
new file mode 100644 (file)
index 0000000..f1bc701
--- /dev/null
@@ -0,0 +1,57 @@
+From e8e37f6be871d84069658d0c48979d7a12395171 Mon Sep 17 00:00:00 2001
+From: Christian Aistleitner <christian@quelltextlich.at>
+Date: Sun, 14 Jul 2013 12:50:07 +0200
+Subject: [PATCH] Fix building with GNU Automake 1.13+
+
+* configure.ac: Force serial tests for GNU Automake 1.13+.
+(serial_tests): New.
+--
+
+GNU Automake switched the default test harness to parallel beginning
+with GNU Automake 1.13. Until we upgrade our tests, we force
+serial-tests beginning with GNU Automake 1.13.
+
+This commit is a minor adaption of libguestfs's (GPLv2+) commit
+a1c89bf03dd432f0e4c8c26fe01fd9b2a50df97e by Richard W.M. Jones.
+
+Signed-off-by: Christian Aistleitner <christian@quelltextlich.at>
+---
+ configure.ac | 22 +++++++++++++++++++++-
+ 1 file changed, 21 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 13541bb..59f8281 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -73,7 +73,27 @@ PACKAGE=$PACKAGE_NAME
+ VERSION=$PACKAGE_VERSION
+ AC_CONFIG_SRCDIR([src/libgcrypt.vers])
+-AM_INIT_AUTOMAKE
++
++dnl Initialize automake.  automake < 1.12 didn't have serial-tests and
++dnl gives an error if it sees this, but for automake >= 1.13
++dnl serial-tests is required so we have to include it.  Solution is to
++dnl test for the version of automake (by running an external command)
++dnl and provide it if necessary.  Note we have to do this entirely using
++dnl m4 macros since automake queries this macro by running
++dnl 'autoconf --trace'.
++m4_define([serial_tests], [
++    m4_esyscmd([automake --version | awk 'NR==1 {
++                       split ($NF, V_ARR, ".");
++                       V_INT=1000000*V_ARR[1]+1000*V_ARR[2]+V_ARR[3]
++                       if (V_INT >= 1013000)
++                         # GNU Automake is version 1.13 or newer
++                         print "serial-tests";
++                     }'
++    ])
++])
++
++dnl As we need expansion of the serial_tests macro, do not [quote] it.
++AM_INIT_AUTOMAKE(serial_tests)
+ AC_CONFIG_HEADER(config.h)
+ AC_CONFIG_MACRO_DIR([m4])
+ AC_CONFIG_LIBOBJ_DIR([compat])
+-- 
+1.8.1.5
+
diff --git a/dev-libs/libgcrypt/libgcrypt-9999.ebuild b/dev-libs/libgcrypt/libgcrypt-9999.ebuild
new file mode 100644 (file)
index 0000000..ef962dc
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-9999.ebuild,v 1.7 2013/05/03 07:56:29 djc Exp $
+
+EAPI=4
+
+inherit autotools flag-o-matic user git-2
+
+DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
+EGIT_REPO_URI="git://git.gnupg.org/${PN}.git"
+HOMEPAGE="http://gnupg.org/"
+
+LICENSE="GPL-2"
+SLOT="2.1"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+REQUIRED_USE=""
+
+DEPEND="
+       sys-apps/texinfo
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       epatch "${FILESDIR}/0002-Fix-building-with-GNU-Automake-1.13.patch";
+}
+
+src_configure() {
+       ./autogen.sh
+
+       ./configure \
+               --enable-maintainer-mode
+}
+
+src_compile()
+{
+       make
+}