automake1.16: New version of automake

This commit is contained in:
Alexey Pavlov
2018-06-12 10:30:24 +03:00
parent bf0e2fbb9f
commit c6917e90e8
4 changed files with 233 additions and 0 deletions

96
automake1.16/PKGBUILD Normal file
View File

@@ -0,0 +1,96 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=automake1.16
pkgver=1.16.1
pkgrel=1
pkgdesc="A GNU tool for automatically creating Makefiles"
arch=('any')
license=('GPL')
url="https://www.gnu.org/software/automake"
groups=('base-devel')
depends=('perl' 'bash')
makedepends=('autoconf')
checkdepends=('dejagnu' 'python2')
install=automake.install
source=(https://ftp.gnu.org/gnu/automake/automake-${pkgver}.tar.xz{,.sig}
automake-1.16.1-documentation.patch
automake-1.16.1-msys2.patch)
sha256sums=('5d05bb38a23fd3312b10aea93840feec685bdf4a41146e78882848165d3ae921'
'SKIP'
'18129ade01c1b1be3cb60e20349db0c08e7ea7fae7e72b937b1317c5f36dda41'
'd0b37631f5ba6417c434dca17bfb1e76dbd16fec5fc80818b81a84af7ea0f597')
validpgpkeys=('E1622F96D2BB4E58018EEF9860F906016E407573' # Stefano Lattarini
'F2A38D7EEB2B66405761070D0ADEE10094604D37') # Mathieu Lirzin
replace=('automake')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
for _fname in "$@"
do
msg2 "Applying ${_fname}"
patch -Nbp1 -i "${srcdir}"/${_fname}
done
}
del_file_exists() {
for _fname in "$@"
do
if [ -f $_fname ] || [ -d $_fname ]; then
rm -rf $_fname
fi
done
}
# =========================================== #
prepare() {
cd ${srcdir}/automake-${pkgver}
apply_patch_with_msg automake-1.16.1-documentation.patch \
automake-1.16.1-msys2.patch
}
build() {
cd ${srcdir}/automake-${pkgver}
./configure --prefix=/usr
make
(cd doc && makeinfo -I ${srcdir}/automake-${pkgver}/doc -o automake1.16.info automake.texi)
(cd doc && makeinfo -I ${srcdir}/automake-${pkgver}/doc -o automake-history1.16.info automake-history.texi)
}
check() {
cd ${srcdir}/automake-${pkgver}
# expect 2 failures due to perl-5.18 incompatibility
make -k check || true
}
package() {
cd ${srcdir}/automake-${pkgver}
make DESTDIR=${pkgdir} install
mv ${pkgdir}/usr/share/aclocal/README ${pkgdir}/usr/share/aclocal/README.am16
# install the 1.16 versioned info files
for f in `find ${pkgdir}/usr/share/info -name "*.info*"` ; do
rm -f ${f}
done
for f in `find ${srcdir}/automake-${pkgver} -name "*.info*"` ; do
bf=`basename $f`
cp $f ${pkgdir}/usr/share/info/
done
# remove the unversioned executables
rm -f ${pkgdir}/usr/bin/automake ${pkgdir}/usr/bin/aclocal
# remove the unversioned man pages
rm -f ${pkgdir}/usr/share/man/man1/automake.1
rm -f ${pkgdir}/usr/share/man/man1/aclocal.1
# remove the unversioned info files
rm -f ${pkgdir}/usr/share/info/automake.info*
rm -f ${pkgdir}/usr/share/info/automake-history.info*
rm -rf ${pkgdir}/usr/share/doc
}

View File

@@ -0,0 +1,43 @@
diff -Naur automake-1.16.1-orig/doc/automake.texi automake-1.16.1/doc/automake.texi
--- automake-1.16.1-orig/doc/automake.texi 2014-12-31 16:26:32.000000000 +0300
+++ automake-1.16.1/doc/automake.texi 2015-01-07 10:44:29.415400000 +0300
@@ -1,7 +1,7 @@
\input texinfo @c -*-texinfo-*-
@c %**start of header
-@setfilename automake.info
-@settitle automake
+@setfilename automake1.16.info
+@settitle automake1.16
@documentencoding UTF-8
@documentlanguage en
@setchapternewpage off
@@ -40,13 +40,13 @@
@dircategory Software development
@direntry
-* Automake: (automake). Making GNU standards-compliant Makefiles.
+* Automake1.16: (automake). Making GNU standards-compliant Makefiles.
@end direntry
@dircategory Individual utilities
@direntry
-* aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
-* automake-invocation: (automake)automake Invocation. Generating Makefile.in.
+* aclocal-1.16-invocation: (automake1.15)aclocal Invocation. Generating aclocal.m4.
+* automake-1.16-invocation: (automake1.15)automake Invocation. Generating Makefile.in.
@end direntry
@titlepage
diff -Naur automake-1.16.1-orig/doc/automake-history.texi automake-1.16.1/doc/automake-history.texi
--- automake-1.16.1-orig/doc/automake-history.texi 2014-12-31 00:53:05.000000000 +0300
+++ automake-1.16.1/doc/automake-history.texi 2015-01-07 10:44:50.585600000 +0300
@@ -1,7 +1,7 @@
\input texinfo @c -*-texinfo-*-
@c %**start of header
-@setfilename automake-history.info
-@settitle automake-history
+@setfilename automake-history1.16.info
+@settitle automake-history1.16
@setchapternewpage on
@c %**end of header

View File

@@ -0,0 +1,72 @@
diff -Naur automake-1.16-orig/lib/ar-lib automake-1.16/lib/ar-lib
--- automake-1.16-orig/lib/ar-lib 2014-12-31 00:53:05.000000000 +0300
+++ automake-1.16/lib/ar-lib 2015-01-07 10:46:20.752400000 +0300
@@ -53,7 +53,7 @@
MINGW*)
file_conv=mingw
;;
- CYGWIN*)
+ CYGWIN*|MSYS*)
file_conv=cygwin
;;
*)
@@ -65,7 +65,7 @@
mingw)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin)
+ cygwin|msys)
file=`cygpath -m "$file" || echo "$file"`
;;
wine)
diff -Naur automake-1.16-orig/lib/compile automake-1.16/lib/compile
--- automake-1.16-orig/lib/compile 2014-12-31 00:53:05.000000000 +0300
+++ automake-1.16/lib/compile 2015-01-07 10:46:57.337400000 +0300
@@ -53,7 +53,7 @@
MINGW*)
file_conv=mingw
;;
- CYGWIN*)
+ CYGWIN*|MSYS*)
file_conv=cygwin
;;
*)
@@ -67,7 +67,7 @@
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin/*)
+ cygwin/*|msys/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
diff -aurp automake-1.16.1/lib/config.guess,orig automake-1.16.1/lib/config.guess
--- automake-1.16.1/lib/config.guess.orig 2017-06-17 22:37:14.000000000 -0400
+++ automake-1.16.1/lib/config.guess 2017-10-02 09:10:36.875102700 -0400
@@ -883,6 +883,9 @@ EOF
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
echo x86_64-unknown-cygwin
exit ;;
+ amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
+ echo x86_64-unknown-msys
+ exit ;;
prep*:SunOS:5.*:*)
echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
exit ;;
diff -Naur automake-1.16-orig/t/compile5.sh automake-1.16/t/compile5.sh
--- automake-1.16-orig/t/compile5.sh 2014-12-30 16:49:41.000000000 +0300
+++ automake-1.16/t/compile5.sh 2015-01-07 10:48:12.160000000 +0300
@@ -47,11 +47,11 @@
;;
esac
case @build_os@ in
- mingw* | cygwin*)
+ mingw* | cygwin* | msys*)
;;
*)
winepath -w / \
- || skip_ "not on MinGW or Cygwin, and winepath not available"
+ || skip_ "not on MinGW or Cygwin or MSYS, and winepath not available"
;;
esac
END

View File

@@ -0,0 +1,22 @@
infodir=usr/share/info
filelist="automake1.16.info automake1.16.info-1 automake1.16.info-2 automake-history1.16.info"
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist}; do
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist}; do
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et: