summaryrefslogtreecommitdiff
path: root/dev-db/recutils/files/recutils-1.5-automagic.patch
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/recutils/files/recutils-1.5-automagic.patch
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/recutils/files/recutils-1.5-automagic.patch')
-rw-r--r--dev-db/recutils/files/recutils-1.5-automagic.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-db/recutils/files/recutils-1.5-automagic.patch b/dev-db/recutils/files/recutils-1.5-automagic.patch
new file mode 100644
index 000000000000..5b928093ce5e
--- /dev/null
+++ b/dev-db/recutils/files/recutils-1.5-automagic.patch
@@ -0,0 +1,57 @@
+--- recutils-1.5/configure.ac.orig
++++ recutils-1.5/configure.ac
+@@ -85,17 +85,35 @@
+ fi
+ AC_SUBST([CHECKLIBS])
+
++AC_ARG_ENABLE([curl],
++ AS_HELP_STRING([--enable-curl],
++ [Enable support for remote descriptors using libcurl (default is YES)]),
++ [curl_enabled=$enableval], [curl_enabled=yes])
++
+ have_curl=no
+-AC_CHECK_LIB([curl],[curl_global_init],[have_curl=yes],)
+-if test "x$have_curl" = "xyes"; then
+- CURLLIBS=-lcurl
++if test "x$curl_enabled" = "xyes"; then
++ AC_CHECK_LIB([curl],[curl_global_init],[have_curl=yes],)
++ if test "x$have_curl" = "xyes"; then
++ CURLLIBS=-lcurl
++ else
++ AC_MSG_ERROR([curl support enabled but libcurl not found])
++ fi
+ fi
+ AC_SUBST([CURLLIBS])
+
++AC_ARG_ENABLE([mdb],
++ AS_HELP_STRING([--enable-mdb],
++ [Build the mdb2rec utility (default is YES)]),
++ [mdb_enabled=$enableval], [mdb_enabled=yes])
++
+ have_mdb=no
+-AC_CHECK_LIB([mdb],[mdb_init],[have_mdb=yes],)
+-if test "x$have_mdb" = "xyes"; then
+- MDBLIBS=-lmdb
++if test "x$mdb_enabled" = "xyes"; then
++ AC_CHECK_LIB([mdb],[mdb_init],[have_mdb=yes],)
++ if test "x$have_mdb" = "xyes"; then
++ MDBLIBS=-lmdb
++ else
++ AC_MSG_ERROR([mdb support enabled but libmdb not found])
++ fi
+ fi
+ AC_SUBST([MDBLIBS])
+
+@@ -119,8 +137,10 @@
+ AC_SUBST([crypt_support])
+
+ have_glib=no
+-PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.0.0],
+- [have_glib=yes], [have_glib=no])
++if test "x$mdb_enabled" = "xyes"; then
++ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.0.0],
++ [have_glib=yes], [have_glib=no])
++fi
+
+ AM_CONDITIONAL([COMPILE_MDB2REC],
+ [test "x$have_glib" = "xyes" && test "x$have_mdb" = "xyes"])