summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Redaelli <drizzt@gentoo.org>2009-03-04 15:34:11 +0000
committerTimothy Redaelli <drizzt@gentoo.org>2009-03-04 15:34:11 +0000
commitbc78468d156066096b1326ec5f2a4198cc18a922 (patch)
treec83458e10ff3e67ecee5af27dceb8d4d4669d32c /dev-libs/gnulib
parent* bump (diff)
downloadgentoo-2-bc78468d156066096b1326ec5f2a4198cc18a922.tar.gz
gentoo-2-bc78468d156066096b1326ec5f2a4198cc18a922.tar.bz2
gentoo-2-bc78468d156066096b1326ec5f2a4198cc18a922.zip
Add a snapshot of gnulib
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/gnulib')
-rw-r--r--dev-libs/gnulib/ChangeLog10
-rw-r--r--dev-libs/gnulib/files/gnulib-2008.07.23-rpl_getopt.patch12
-rw-r--r--dev-libs/gnulib/files/gnulib-2009.03.03.14.07.45-scandir.patch15
-rw-r--r--dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild72
4 files changed, 108 insertions, 1 deletions
diff --git a/dev-libs/gnulib/ChangeLog b/dev-libs/gnulib/ChangeLog
index 99245aa147d2..0f0b6d3806e0 100644
--- a/dev-libs/gnulib/ChangeLog
+++ b/dev-libs/gnulib/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-libs/gnulib
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gnulib/ChangeLog,v 1.6 2009/02/02 18:57:54 drizzt Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gnulib/ChangeLog,v 1.7 2009/03/04 15:34:11 drizzt Exp $
+
+*gnulib-2009.03.03.14.07.45 (04 Mar 2009)
+
+ 04 Mar 2009; Timothy Redaelli <drizzt@gentoo.org>
+ +files/gnulib-2008.07.23-rpl_getopt.patch,
+ +files/gnulib-2009.03.03.14.07.45-scandir.patch,
+ +gnulib-2009.03.03.14.07.45.ebuild:
+ Add a snapshot of gnulib
02 Feb 2009; <drizzt@gentoo.org> -gnulib-9999.ebuild,
+gnulib-9999-r1.ebuild:
diff --git a/dev-libs/gnulib/files/gnulib-2008.07.23-rpl_getopt.patch b/dev-libs/gnulib/files/gnulib-2008.07.23-rpl_getopt.patch
new file mode 100644
index 000000000000..2ef427a84c3b
--- /dev/null
+++ b/dev-libs/gnulib/files/gnulib-2008.07.23-rpl_getopt.patch
@@ -0,0 +1,12 @@
+--- lib/getopt.in.h.orig 2008-07-25 13:40:38 +0200
++++ lib/getopt.in.h 2008-07-25 13:41:25 +0200
+@@ -20,6 +20,9 @@
+
+ #ifndef __need_getopt
+ # define _GETOPT_H 1
++# ifndef __GETOPT_PREFIX
++# define __GETOPT_PREFIX rpl_
++# endif
+ #endif
+
+ /* Standalone applications should #define __GETOPT_PREFIX to an
diff --git a/dev-libs/gnulib/files/gnulib-2009.03.03.14.07.45-scandir.patch b/dev-libs/gnulib/files/gnulib-2009.03.03.14.07.45-scandir.patch
new file mode 100644
index 000000000000..67b1274c8020
--- /dev/null
+++ b/dev-libs/gnulib/files/gnulib-2009.03.03.14.07.45-scandir.patch
@@ -0,0 +1,15 @@
+--- a/lib/scandir.c
++++ b/lib/scandir.c
+@@ -18,6 +18,12 @@
+ #include <config.h>
+
+ #include <dirent.h>
++#ifndef _D_EXACT_NAMLEN
++# define _D_EXACT_NAMLEN(d) strlen ((d)->d_name)
++#endif
++#ifndef _D_ALLOC_NAMLEN
++# define _D_ALLOC_NAMLEN(d) (_D_EXACT_NAMLEN (d) + 1)
++#endif
+
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild b/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild
new file mode 100644
index 000000000000..8c1d20ccfdd8
--- /dev/null
+++ b/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild,v 1.1 2009/03/04 15:34:11 drizzt Exp $
+
+inherit eutils
+
+DESCRIPTION="Gnulib is a library of common routines intended to be shared at the source level."
+HOMEPAGE="http://www.gnu.org/software/gnulib"
+
+# This tar.gz is created on-the-fly when downloaded from
+# http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=snapshot;h=${GNULIB_COMMIT_GITID};sf=tgz
+# So to have persistent checksums, we need to download once and cache it.
+#
+# To get a new version, download a "snapshot" from
+# http://git.savannah.gnu.org/gitweb/?p=gnulib.git
+# take the commit-id as GNULIB_COMMIT_GITID
+# and the committer's timestamp (not the author's one), year to second, UTC
+# as the ebuild version.
+#
+# To see what the last commit message for the current version was, use
+# http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=${GNULIB_COMMIT_GITID}
+#
+GNULIB_COMMIT_GITID=8d2524ce78ca107074727cbd8780c26a203a107c
+SRC_URI="http://dev.gentoo.org/~drizzt/distfiles/${PN}-${GNULIB_COMMIT_GITID}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86-fbsd"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}"/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ epatch "${FILESDIR}"/${PN}-2008.07.23-rpl_getopt.patch
+ epatch "${FILESDIR}"/${P}-scandir.patch
+
+ # Remove the broken pxref
+ sed -i '$d' doc/ld-version-script.texi || die "cannot fix ld-version-script.texi"
+}
+
+src_compile() {
+ if use doc; then
+ emake -C doc info html || die "emake failed"
+ fi
+}
+
+src_install() {
+ dodoc README COPYING ChangeLog
+ if use doc; then
+ dohtml doc/gnulib.html
+ doinfo doc/gnulib.info
+ fi
+
+ insinto /usr/share/${PN}
+ doins -r lib
+ doins -r m4
+ doins -r modules
+ doins -r build-aux
+ doins -r top
+
+ # install the real script
+ exeinto /usr/share/${PN}
+ doexe gnulib-tool
+
+ # create and install the wrapper
+ dosym /usr/share/${PN}/gnulib-tool /usr/bin/gnulib-tool
+}