Package: automake1.14
Version: 1.14.1
Revision: 4
Source: mirror:gnu:automake/automake-%v.tar.xz
Source-Checksum: SHA256(a9b4f04b8b69cac2e832a38a718943aa976dbdad0097211f8b3448afdacf0669)
# versions of dpkg < 1.10.21-1233 have a buggy install-info command
BuildDepends: fink (>= 0.32), dpkg (>= 1.10.21-1234)
Depends: %N-core (>= %v-%r)
Conflicts: automake, automake1.4, automake15, automake1.5, automake1.6, automake1.7, automake1.8, automake1.9, automake1.10, automake1.11, automake1.12, automake1.13, automake1.14, automake1.15
Replaces: automake, automake1.4, automake15, automake1.5, automake1.6, automake1.7, automake1.8, automake1.9, automake1.10, automake1.11, automake1.12, automake1.13, automake1.14, automake1.15
Provides: automaken

PatchFile: %n.patch
PatchFile-MD5: df7dccd8b6fc15ace0713ae3008cd400
PatchFile2: automake-dejagnu.patch
PatchFile2-MD5: ffa4dd8eb78cea82c3009d76087598b1
PatchScript: <<
  #!/bin/sh -ev
  %{default_script}

  # Disable one of the lex tests which is incompatible with flex-2.5.4
  # package (but not with flex-2.6, nor with the flex Apple ships).
  #/usr/bin/sed -i.orig -E -e 's|t/lex-header.sh||g' Makefile.in

  # fink's libtool2 has %p/bin/glibtool not %p/bin/libtool and Apple's
  # /usr/bin/libtool is different beast
  ln -s %p/bin/glibtool t/wrap/libtool

  # Avoid detection of "kcc" (kerberos) as "KCC" on case-insensitive
  # FS. See: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21336
  perl -pi -e 's/KCC//' configure
<<

# HACK: Set ac_cv_prog_TEX to disable any TeX or texinfo related tests,
# until the day we get a non-broken install-info.
ConfigureParams: --infodir=%p/share/info PERL=/usr/bin/perl ac_cv_prog_TEX=
InstallScript: <<
 #!/bin/sh -ex
 make install DESTDIR=%d AM_UPDATE_INFO_DIR=no
 
 VERSION=1.14
 for tool in aclocal automake ; do
   # Replace man page alias by symlink
   rm %i/share/man/man1/$tool.1
   ln -s %p/share/man/man1/$tool-$VERSION.1 %i/share/man/man1/$tool.1
   # Normally, the versioned executable name is a symlink to the unversioned name.
   # We swap this, turning the unversioned name into a symlink, and
   # store the executable under the versioned name.
   rm %i/bin/$tool-$VERSION
   mv %i/bin/$tool %i/bin/$tool-$VERSION
   ln -s %p/bin/$tool-$VERSION %i/bin/$tool
 done
<<

SplitOff: <<
 Package: %N-core
 Depends: autoconf2.6
 # TODO: Add Provides: automaken-core ??
 # TODO: Add custom Description?
 Files: bin/aclocal-* bin/automake-* share/aclocal-* share/automake-* share/man/man1/aclocal-* share/man/man1/automake-*
 DocFiles: COPYING README AUTHORS NEWS THANKS
<<

# TODO: Perhaps rename automake.info* to automake-X.Y.info* ?
InfoTest: <<
  # fails t/objc-megademo.sh on 10.6/i386 and 10.6/x86_64
  # (passes on 10.7+)
  # see: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13761
  ### texinfo-legacy is needed to provide install-info as
  ### t/txinfo-nodist-info.sh fails with dpkg-1.10's install-info 
  TestScript: <<
  	#!/bin/sh -ev
  	export PATH=%p/opt/texinfo-legacy/bin:$PATH
  	make check || exit 2
  <<
  TestDepends: cscope, dejagnu, libtool2, pkgconfig, texinfo-legacy
<<
DocFiles: COPYING README AUTHORS NEWS THANKS
InfoDocs: automake.info automake-history.info

Description: GNU Standards-compliant Makefile generator
DescDetail: <<
Automake is a tool for automatically generating `Makefile.in's from files 
called `Makefile.am'.

The goal of Automake is to remove the burden of Makefile maintenance from the 
back of the individual GNU maintainer (and put it on the back of the Automake 
maintainer).

The `Makefile.am' is basically a series of `make' macro definitions (with 
rules being thrown in occasionally). The generated `Makefile.in's are 
compliant with the GNU Makefile standards.
<<
DescPackaging: <<
	Previous versions by Christoph Pfisterer, Max Horn.

	Desc adapted from debian :-)

	Patch automake-info.info with results of upstream's patch to
	the .texi (avoids needing BDep on the .info generator tools).
	https://git.savannah.gnu.org/cgit/automake.git/commit/doc/automake-history.texi?id=39fd2153ff6c493c6cd8d8050689894a4f993ce3
<<
License: GPL
Maintainer: Chris Zubrzycki <beren12@users.sourceforge.net>
Homepage: http://www.gnu.org/software/automake/