summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-01-15 02:16:45 +0000
committerTim Harder <radhermit@gentoo.org>2012-01-15 02:16:45 +0000
commitd5d79fa6beff583d5394738d6df70347dd0ee764 (patch)
treee87883f1ef9f2f5330eb3536dba8235b2f5ea464 /dev-db
parentAdd ppc gprof, zutil patches (diff)
downloadhistorical-d5d79fa6beff583d5394738d6df70347dd0ee764.tar.gz
historical-d5d79fa6beff583d5394738d6df70347dd0ee764.tar.bz2
historical-d5d79fa6beff583d5394738d6df70347dd0ee764.zip
Initial import (bug #350991).
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/recutils/ChangeLog10
-rw-r--r--dev-db/recutils/Manifest20
-rw-r--r--dev-db/recutils/files/50recutils-gentoo.el6
-rw-r--r--dev-db/recutils/files/recutils-1.5-automagic.patch57
-rw-r--r--dev-db/recutils/metadata.xml12
-rw-r--r--dev-db/recutils/recutils-1.5.ebuild81
6 files changed, 186 insertions, 0 deletions
diff --git a/dev-db/recutils/ChangeLog b/dev-db/recutils/ChangeLog
new file mode 100644
index 000000000000..8691d7ff1469
--- /dev/null
+++ b/dev-db/recutils/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-db/recutils
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/recutils/ChangeLog,v 1.1 2012/01/15 02:16:45 radhermit Exp $
+
+*recutils-1.5 (15 Jan 2012)
+
+ 15 Jan 2012; Tim Harder <radhermit@gentoo.org> +files/50recutils-gentoo.el,
+ +recutils-1.5.ebuild, +files/recutils-1.5-automagic.patch, +metadata.xml:
+ Initial import (bug #350991).
+
diff --git a/dev-db/recutils/Manifest b/dev-db/recutils/Manifest
new file mode 100644
index 000000000000..532efcf573be
--- /dev/null
+++ b/dev-db/recutils/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+AUX 50recutils-gentoo.el 202 RMD160 0b12c9a18be97886b11f6615017d8922d2c198c2 SHA1 a590268c4e9a4be3b063d4d9bf2b849f87ebef1d SHA256 b6afb4842b3e2efceccc486c9a14042df2e31d167f1faa30eb509be57443e7eb
+AUX recutils-1.5-automagic.patch 1717 RMD160 8e778793414eab09535a16c122fba5bd97258761 SHA1 697e7e9d7dccbd7afa84f9cb85304c70a5d8179a SHA256 b9713db3892844af2ba4207e8f21e402383c7621afa94b09d5527b544a4d9513
+DIST recutils-1.5.tar.gz 1811121 RMD160 ebea0ada679414930ba011a743b824cd43b7a016 SHA1 36fca9624c4bd70ad20ba38c9c68350745fe4753 SHA256 7ed67e74468084f52ad9341e4b11c44e5fd9d5325b93b7eb2cb230c839ff5dec
+EBUILD recutils-1.5.ebuild 1609 RMD160 1fa174844ad24ce1330a71f25b7bf133f243fc10 SHA1 df612e64585114a7765e92179f975467a1b14dc1 SHA256 a469c1f8b96efac57d119bcf4ce88a145c994c18d18ae1166d92018bd6cf9f4c
+MISC ChangeLog 422 RMD160 cad891d5f77affc612f0f9aec71239c7a1e12ee6 SHA1 43a2084843eaed5d1191b2c351464160c4eb0e56 SHA256 5ae9cd4b6fd17fd764ca36061b8f53251042e76105782e00ccd391c49b9373a2
+MISC metadata.xml 378 RMD160 daecb116d90ae9b9879c8170c285360843922470 SHA1 adee4510e3bade2951487ed02937a0d9f849198a SHA256 eff5b74d202d5651c6c1f2f75c1db0d6f42727360ad914cdfb0573bc203cbf9a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iQEcBAEBCgAGBQJPEjcYAAoJEEqz6FtPBkyjbSIIAJfm7dY2dTQUI7VtPscVV0Wn
+hOoLDX02cprWHvxWIH9k/Te1Wnpi/wIHiTmlBEzBdaFw7KVDJvloJg1ZQdr1ifzV
+PaT5WgH/Cc2QcSwajHykjvN4EkUWbjtAUtHjwKppwcgQSq/6fzw1lfxfpVMiukTp
+7ICgezyddAvZW6qjsVCJOsfBInWiQHFoLF6qRDM8HdHFnKk96OIwe3BCeL9V+5w3
+eUiGXMPqvYo+2+xitvJGpxLb2T2Y4Qa0kh/wvvqlZondzvnraFbtnuAKfivFowEA
+wT0mbO5W6+FbUXal/icL+NnCw2DKGL1iFSl78wrd+oCYAB8mqu8yn5R1NahXzaU=
+=/iUN
+-----END PGP SIGNATURE-----
diff --git a/dev-db/recutils/files/50recutils-gentoo.el b/dev-db/recutils/files/50recutils-gentoo.el
new file mode 100644
index 000000000000..1b16da6bbcd7
--- /dev/null
+++ b/dev-db/recutils/files/50recutils-gentoo.el
@@ -0,0 +1,6 @@
+
+;; site-init for dev-db/recutils
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'rec-mode "rec-mode" "A mode for viewing/editing rec files." t)
+(add-to-list 'auto-mode-alist '("\\.rec$" . rec-mode))
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"])
diff --git a/dev-db/recutils/metadata.xml b/dev-db/recutils/metadata.xml
new file mode 100644
index 000000000000..44cb46c7e324
--- /dev/null
+++ b/dev-db/recutils/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>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <use>
+ <flag name="mdb">Build the mdb2rec utility</flag>
+ <flag name="curl">Enable support for remote descriptors using libcurl</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-db/recutils/recutils-1.5.ebuild b/dev-db/recutils/recutils-1.5.ebuild
new file mode 100644
index 000000000000..5fb0f7a79407
--- /dev/null
+++ b/dev-db/recutils/recutils-1.5.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/recutils/recutils-1.5.ebuild,v 1.1 2012/01/15 02:16:45 radhermit Exp $
+
+EAPI=4
+
+inherit autotools eutils elisp-common
+
+DESCRIPTION="Tools and libraries to access human-editable, plain text databases"
+HOMEPAGE="http://www.gnu.org/software/recutils/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crypt curl emacs mdb nls static-libs"
+
+RDEPEND="sys-libs/readline
+ crypt? (
+ dev-libs/libgcrypt
+ dev-libs/libgpg-error
+ )
+ curl? ( net-misc/curl )
+ emacs? (
+ app-emacs/org-mode
+ virtual/emacs
+ )
+ mdb? (
+ app-office/mdbtools
+ dev-libs/glib:2
+ )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-automagic.patch
+
+ # Don't unconditionally install emacs files
+ sed -i -e "/^dist_lisp_DATA/d" etc/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable crypt encryption) \
+ $(use_enable curl) \
+ $(use_enable mdb) \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ default
+
+ if use emacs ; then
+ elisp-compile etc/*.el || die
+ fi
+}
+
+src_install() {
+ default
+ use static-libs || find "${D}" -name '*.la' -delete
+
+ if use emacs ; then
+ elisp-install ${PN} etc/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}