summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-21 01:06:11 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-21 01:06:11 +0000
commite5144c8106e56ac7fbe34f4e79137588c2412110 (patch)
tree90b907dfe4d90d80006897ab31145889c198c7a2 /sys-devel
parentUpdate inherit to toolchain-funcs instead of gcc and x11 instead of xfree. Ma... (diff)
downloadgentoo-2-e5144c8106e56ac7fbe34f4e79137588c2412110.tar.gz
gentoo-2-e5144c8106e56ac7fbe34f4e79137588c2412110.tar.bz2
gentoo-2-e5144c8106e56ac7fbe34f4e79137588c2412110.zip
initial import
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/autoconf-wrapper/ChangeLog9
-rw-r--r--sys-devel/autoconf-wrapper/Manifest3
-rw-r--r--sys-devel/autoconf-wrapper/autoconf-wrapper-1.ebuild27
-rw-r--r--sys-devel/autoconf-wrapper/files/ac-wrapper-1.pl126
-rw-r--r--sys-devel/autoconf-wrapper/files/digest-autoconf-wrapper-10
-rw-r--r--sys-devel/autoconf-wrapper/metadata.xml5
6 files changed, 170 insertions, 0 deletions
diff --git a/sys-devel/autoconf-wrapper/ChangeLog b/sys-devel/autoconf-wrapper/ChangeLog
new file mode 100644
index 000000000000..4e3b9b6a30fb
--- /dev/null
+++ b/sys-devel/autoconf-wrapper/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sys-devel/autoconf-wrapper
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf-wrapper/ChangeLog,v 1.1 2004/10/21 01:06:11 vapier Exp $
+
+*autoconf-wrapper-1 (20 Oct 2004)
+
+ 20 Oct 2004; Mike Frysinger <vapier@gentoo.org>:
+ Break the autoconf wrapper (ac-wrapper.pl) off into its own package.
+ This updated version resolves #56670 and #66478.
diff --git a/sys-devel/autoconf-wrapper/Manifest b/sys-devel/autoconf-wrapper/Manifest
new file mode 100644
index 000000000000..6ad3ccf061a2
--- /dev/null
+++ b/sys-devel/autoconf-wrapper/Manifest
@@ -0,0 +1,3 @@
+MD5 6a6e2b7940d001808058faf33c9292b5 autoconf-wrapper-1.ebuild 422
+MD5 c07cd3cad0342c7c9ccafdb4f0ae8b03 files/ac-wrapper-1.pl 2785
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-autoconf-wrapper-1 0
diff --git a/sys-devel/autoconf-wrapper/autoconf-wrapper-1.ebuild b/sys-devel/autoconf-wrapper/autoconf-wrapper-1.ebuild
new file mode 100644
index 000000000000..577a41be1207
--- /dev/null
+++ b/sys-devel/autoconf-wrapper/autoconf-wrapper-1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf-wrapper/autoconf-wrapper-1.ebuild,v 1.1 2004/10/21 01:06:11 vapier Exp $
+
+DESCRIPTION="wrapper for autoconf to manage multiple autoconf versions"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl"
+
+S=${WORKDIR}
+
+src_install() {
+ exeinto /usr/lib/misc
+ newexe ${FILESDIR}/ac-wrapper-${PV}.pl ac-wrapper.pl
+
+ dodir /usr/bin
+ local x=
+ for x in auto{conf,header,m4te,reconf,scan,update} ifnames ; do
+ dosym ../lib/misc/ac-wrapper.pl /usr/bin/${x}
+ done
+}
diff --git a/sys-devel/autoconf-wrapper/files/ac-wrapper-1.pl b/sys-devel/autoconf-wrapper/files/ac-wrapper-1.pl
new file mode 100644
index 000000000000..f041cdbb5de9
--- /dev/null
+++ b/sys-devel/autoconf-wrapper/files/ac-wrapper-1.pl
@@ -0,0 +1,126 @@
+#!/usr/bin/perl
+#
+#
+# Guillaume Cottenceau (gc@mandrakesoft.com)
+# Abel Cheung (deaddog@deaddog.org)
+#
+# Copyright 2001-2002, 2004 MandrakeSoft
+#
+# This software may be freely redistributed under the terms of the GNU
+# public license.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+#######################################################################
+#
+# Executes the correct autoconf version.
+#
+# - defaults to autoconf-2.59
+# - runs autoconf-2.13 only if:
+# - envvar WANT_AUTOCONF_2_1 is set to `1'
+# -or-
+# - `configure' is already present and was generated by autoconf 2.13
+#
+#######################################################################
+#
+# ChangeLog:
+#
+# * Fri May 14 2004
+# - Use autoconf 2.59 by default, unless `configure' is generated by
+# autoconf 2.13, or WANT_AUTOCONF_2_1 is set.
+# - WANT_AUTOCONF_2_5 has no effect now
+#
+# * Thu May 27 2004
+# - Almost rewrite
+# - Introduce FORCE_AUTOCONF_2_5 (avoid misuse with WANT_*), which can be used
+# when you want to play with fire :-)
+# - More verbose and user oriented messages (gc et. al.)
+#
+# * Sat Jul 03 2004
+# - require autoconf2.1 and remove special error message
+# - allow use of tools without configure.in or configure.ac (2.5 only)
+# required for autodetection by apps
+
+use File::Basename qw(basename);
+use strict;
+
+sub cat_ { local *F; open F, $_[0] or return; my @l = <F>; wantarray ? @l : join '', @l }
+
+sub errmsg {
+ my $dummy = 0;
+ my @msg = @_;
+ foreach (@msg) {
+ print STDERR (($dummy++ == 0)? "ac-wrapper: " : " ") . $_ . "\n";
+ }
+ exit 1;
+}
+
+errmsg ("Don't call this script directly.") if (basename("$0") eq "ac-wrapper.pl");
+
+#
+# go away naughty guys/gals
+#
+if (($ENV{WANT_AUTOCONF_2_1}) && ($ENV{FORCE_AUTOCONF_2_5})) {
+ errmsg ("You can only set either WANT_AUTOCONF_2_1 or FORCE_AUTOCONF_2_5,",
+ "but not both.");
+}
+
+if (($ENV{WANT_AUTOCONF_2_1}) && (basename("$0") eq "autom4te")) {
+ errmsg ("Autoconf 2.13 doesn't contain autom4te.",
+ "Either unset WANT_AUTOCONF_2_1 or don't execute anything",
+ "that would use autom4te.");
+}
+
+my $binary_new = "$0-2.59";
+my $binary_old = "$0-2.13";
+my $binary = $binary_new;
+my $confversion = 'Undetected';
+
+if ((-f "configure.ac") || (-f "configure.in")) {
+#
+# autodetect routine
+#
+ if ($ENV{WANT_AUTOCONF_2_1}) {
+ if ((-f "configure.in") && (! -f "configure.ac")) {
+ $binary = $binary_old;
+ } else {
+ errmsg ("Since configure.ac is present, aclocal always use",
+ "autoconf 2.59, which conflicts with your choice and",
+ "causes error. You have two options:",
+ "1. Try execute command again after removing configure.ac",
+ "2. Don't set WANT_AUTOCONF_2_1 variable");
+ }
+ } elsif (!($ENV{FORCE_AUTOCONF_2_5})) {
+ # U > [0-9] in lexicon comparison
+ $confversion = (cat_('configure') =~ /^# Generated (by (?:GNU )?Autoconf|automatically using autoconf version) (\S+)/m ? $2 : 'Unknown');
+
+ if (("$confversion" lt '2.5') && (! -f "configure.ac")) {
+ $binary = $binary_old;
+ }
+ }
+}
+
+if ($ENV{WANT_ACWRAPPER_DEBUG}) {
+ print STDERR "ac-wrapper: DEBUG: Detected version is '$confversion'\n";
+ print STDERR "ac-wrapper: DEBUG: WANT_AUTOCONF_2_1 is set\n" if ($ENV{WANT_AUTOCONF_2_1});
+ print STDERR "ac-wrapper: DEBUG: FORCE_AUTOCONF_2_5 is set\n" if ($ENV{FORCE_AUTOCONF_2_5});
+ print STDERR "ac-wrapper: DEBUG: will execute <$binary>\n";
+}
+
+#
+# for further consistency
+#
+$ENV{WANT_AUTOCONF_2_1} = 1 if ("$binary" eq "$binary_old");
+$ENV{FORCE_AUTOCONF_2_5} = 1 if ("$binary" eq "$binary_new");
+
+if (! -x "$binary") {
+ # this shouldn't happen
+ errmsg ("$binary is missing or not executable.",
+ "Something is very wrong.");
+}
+
+exec $binary, @ARGV;
+
+errmsg ("was unable to exec $binary !?");
diff --git a/sys-devel/autoconf-wrapper/files/digest-autoconf-wrapper-1 b/sys-devel/autoconf-wrapper/files/digest-autoconf-wrapper-1
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-devel/autoconf-wrapper/files/digest-autoconf-wrapper-1
diff --git a/sys-devel/autoconf-wrapper/metadata.xml b/sys-devel/autoconf-wrapper/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/sys-devel/autoconf-wrapper/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>