From 926793e742a0ec3a063547cd0dc37fc0b6849c87 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 16 May 2013 18:02:52 +0200 Subject: [PATCH] New package: autoconf213-2.13. --- srcpkgs/autoconf213/patches/patch-aa | 50 ++++++++++++++++++++++++++++ srcpkgs/autoconf213/patches/patch-ab | 21 ++++++++++++ srcpkgs/autoconf213/patches/patch-ac | 22 ++++++++++++ srcpkgs/autoconf213/template | 43 ++++++++++++++++++++++++ 4 files changed, 136 insertions(+) create mode 100644 srcpkgs/autoconf213/patches/patch-aa create mode 100644 srcpkgs/autoconf213/patches/patch-ab create mode 100644 srcpkgs/autoconf213/patches/patch-ac create mode 100644 srcpkgs/autoconf213/template diff --git a/srcpkgs/autoconf213/patches/patch-aa b/srcpkgs/autoconf213/patches/patch-aa new file mode 100644 index 0000000000..4fcbe3ba7b --- /dev/null +++ b/srcpkgs/autoconf213/patches/patch-aa @@ -0,0 +1,50 @@ +$NetBSD: patch-aa,v 1.2 2006/11/02 18:17:22 joerg Exp $ + +--- Makefile.in.orig 1999-01-05 13:27:16.000000000 +0000 ++++ Makefile.in +@@ -137,36 +137,32 @@ installcheck: all install + cd testsuite && ${MAKE} AUTOCONF=${bindir}/autoconf $@ + + installdirs: +- $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir) ++ $(SHELL) ${srcdir}/mkinstalldirs ${DESTDIR}$(bindir) ${DESTDIR}$(infodir) ${DESTDIR}$(acdatadir) + + install: all $(M4FILES) acconfig.h installdirs install-info + for p in $(ASCRIPTS); do \ +- $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ ++ $(INSTALL) $$p ${DESTDIR}$(bindir)/`echo $$p|sed '$(transform)'`; \ + done + for i in $(M4FROZEN); do \ +- $(INSTALL_DATA) $$i $(acdatadir)/$$i; \ ++ $(INSTALL_DATA) $$i ${DESTDIR}$(acdatadir)/$$i; \ + done + for i in $(M4FILES) acconfig.h; do \ +- $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \ ++ $(INSTALL_DATA) $(srcdir)/$$i ${DESTDIR}$(acdatadir)/$$i; \ + done + -if test -f autoscan; then \ +- $(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \ ++ $(INSTALL) autoscan ${DESTDIR}$(bindir)/`echo autoscan|sed '$(transform)'`; \ + for i in acfunctions acheaders acidentifiers acprograms \ +- acmakevars; do \ +- $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \ ++ acmakevars config.guess config.sub; do \ ++ $(INSTALL_DATA) $(srcdir)/$$i ${DESTDIR}$(acdatadir)/$$i; \ + done; \ + else :; fi + + # Don't cd, to avoid breaking install-sh references. + install-info: info installdirs + if test -f autoconf.info; then \ +- for i in *.info*; do \ +- $(INSTALL_DATA) $$i $(infodir)/$$i; \ +- done; \ ++ $(INSTALL_DATA) autoconf.info ${DESTDIR}$(infodir)/autoconf213.info; \ + else \ +- for i in $(srcdir)/*.info*; do \ +- $(INSTALL_DATA) $$i $(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \ +- done; \ ++ $(INSTALL_DATA) $(srcdir)/autoconf.info ${DESTDIR}$(infodir)/autoconf213.info; \ + fi + + uninstall: diff --git a/srcpkgs/autoconf213/patches/patch-ab b/srcpkgs/autoconf213/patches/patch-ab new file mode 100644 index 0000000000..3ed6ee4870 --- /dev/null +++ b/srcpkgs/autoconf213/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $ + +--- autoconf.texi.orig Tue Jan 5 14:28:37 1999 ++++ autoconf.texi +@@ -4,6 +4,7 @@ + @settitle Autoconf + @c For double-sided printing, uncomment: + @c @setchapternewpage odd ++@dircategory Programming & development tools + @c %**end of header + + @set EDITION 2.13 +@@ -17,7 +18,7 @@ + @ifinfo + @format + START-INFO-DIR-ENTRY +-* Autoconf: (autoconf). Create source code configuration scripts. ++* Autoconf-2.13: (autoconf213). Create source code configuration scripts. + END-INFO-DIR-ENTRY + @end format + diff --git a/srcpkgs/autoconf213/patches/patch-ac b/srcpkgs/autoconf213/patches/patch-ac new file mode 100644 index 0000000000..6b5f4f1e6a --- /dev/null +++ b/srcpkgs/autoconf213/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $ + +--- autoreconf.sh.orig Tue Jan 5 14:28:40 1999 ++++ autoreconf.sh +@@ -143,7 +143,7 @@ while read dir; do + : + else + test $verbose = yes && echo running aclocal in $dir, creating $aclocal +- aclocal --output=$aclocal -I `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'` ++ aclocal-1.4 --output=$aclocal -I `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'` + fi + fi + +@@ -154,7 +154,7 @@ while read dir; do + amforce= + test $force = no && amforce=--no-force + test $verbose = yes && echo running automake`test x"$amforce" = x || echo " ($amforce)"` in $dir +- automake $amforce $automake_mode $automake_deps ++ automake-1.4 $amforce $automake_mode $automake_deps + fi + + test ! -f $aclocal && aclocal= diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template new file mode 100644 index 0000000000..f9edf777c5 --- /dev/null +++ b/srcpkgs/autoconf213/template @@ -0,0 +1,43 @@ +# Template build file for 'autoconf213'. +pkgname=autoconf213 +version=2.13 +revision=1 +wrksrc="autoconf-${version}" +hostmakedepends="perl>=0" +short_desc="Generates automatic source code configuration scripts (2.13 version)" +maintainer="Juan RP " +license="GPL-2, GPL-3" +homepage="http://www.gnu.org/software/autoconf" +distfiles="http://ftp.gnu.org/gnu/autoconf/autoconf-$version.tar.gz" +checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e +long_desc=" + Autoconf is an extensible package of m4 macros that produce shell + scripts to automatically configure software source code packages. + These scripts can adapt the packages to many kinds of UNIX-like + systems without manual user intervention. Autoconf creates a + configuration script for a package from a template file that lists the + operating system features that the package can use, in the form of m4 + macro calls." + +do_configure() { + ./configure ${CONFIGURE_SHARED_ARGS} --program-suffix='-2.13' +} + +do_build() { + make ${makejobs} +} + +do_install() { + make DESTDIR=${DESTDIR} install + # Avoid conflict with other versions. + mv ${DESTDIR}/usr/share/autoconf ${DESTDIR}/usr/share/autoconf213 + sed -e 's,/usr/share/autoconf,/usr/share/autoconf213,g' -i ${DESTDIR}/usr/bin/* +} + +autoconf213_package() { + depends="gawk diffutils m4" + noarch=yes + pkg_install() { + vmove usr + } +}