/[gentoo-x86]/eclass/autotools.eclass
Gentoo

Diff of /eclass/autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.9
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.9 2003/02/28 09:15:04 vapier Exp $
4#
3# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.4 2002/07/26 21:50:14 danarmak Exp $ 6#
5# The autotools eclass enables building of the apps that needs the latest autconf/automake. 7# The autotools eclass enables building of the apps that needs the latest autconf/automake.
6# 8#
7# NOTES: 9# NOTES:
8# 10#
9# This eclass was made to bridge the incompadibility problem of autoconf-2.13, 11# This eclass was made to bridge the incompadibility problem of autoconf-2.13,
20# 22#
21# #<cut here> 23# #<cut here>
22# # Copyright 1999-2002 Gentoo Technologies, Inc. 24# # Copyright 1999-2002 Gentoo Technologies, Inc.
23# # Distributed under the terms of the GNU General Public License, v2 or later 25# # Distributed under the terms of the GNU General Public License, v2 or later
24# # Maintainer: John Doe <john@foo.com> 26# # Maintainer: John Doe <john@foo.com>
25# # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.4 2002/07/26 21:50:14 danarmak Exp $ 27# # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.9 2003/02/28 09:15:04 vapier Exp $
26# 28#
27# # If you need to set the versions different from in here, it *must* 29# # If you need to set the versions different from in here, it *must*
28# # be done before inherit.eclass is sourced 30# # be done before inherit.eclass is sourced
29# #ACONFVER=2.52f 31# #ACONFVER=2.52f
30# #AMAKEVER=1.5b 32# #AMAKEVER=1.5b
86# ftp://alpha.gnu.org/gnu/automake/automake-${AMAKEVER}.tar.bz2" 88# ftp://alpha.gnu.org/gnu/automake/automake-${AMAKEVER}.tar.bz2"
87SRC_URI="ftp://ftp.gnu.org/gnu/autoconf/autoconf-${ACONFVER}.tar.bz2 89SRC_URI="ftp://ftp.gnu.org/gnu/autoconf/autoconf-${ACONFVER}.tar.bz2
88 ftp://alpha.gnu.org/gnu/autoconf/autoconf-${ACONFVER}.tar.bz2 90 ftp://alpha.gnu.org/gnu/autoconf/autoconf-${ACONFVER}.tar.bz2
89 ftp://ftp.gnu.org/gnu/automake/automake-${AMAKEVER}.tar.bz2 91 ftp://ftp.gnu.org/gnu/automake/automake-${AMAKEVER}.tar.bz2
90 ftp://alpha.gnu.org/gnu/automake/automake-${AMAKEVER}.tar.bz2" 92 ftp://alpha.gnu.org/gnu/automake/automake-${AMAKEVER}.tar.bz2"
91 93
92DEPEND="sys-devel/make 94DEPEND="sys-devel/make
93 sys-devel/perl 95 sys-devel/perl
94 >=sys-devel/m4-1.4o-r2" 96 >=sys-devel/m4-1.4o-r2"
95 97
96 98
161 163
162install_automake() { 164install_automake() {
163 165
164 cd ${AUTO_S}/automake-${AMAKEVER} || die "!!! Failed to build automake !!!" 166 cd ${AUTO_S}/automake-${AMAKEVER} || die "!!! Failed to build automake !!!"
165 167
166 ./configure --prefix=${AUTO_D} \ 168 ./configure --prefix=${AUTO_D} \
167 --infodir=${AUTO_D}/share/info \ 169 --infodir=${AUTO_D}/share/info \
168 --mandir=${AUTO_D}/share/man \ 170 --mandir=${AUTO_D}/share/man \
169 --target=${CHOST} || die "!!! Failed to configure automake !!!" 171 --target=${CHOST} || die "!!! Failed to configure automake !!!"
170 172
171 emake || die "!!! Failed to build automake !!!" 173 emake || die "!!! Failed to build automake !!!"
172 174
173 make install || die "!!! Failed to install automake !!!" 175 make install || die "!!! Failed to install automake !!!"
174} 176}
175 177
176install_autotools() { 178install_autotools() {
177 179
178 if [ "${SRC_URI/autoconf/}" = "$SRC_URI" ] || [ "${SRC_URI/automake/}" = "$SRC_URI" ] 180 if [ "${SRC_URI/autoconf/}" = "$SRC_URI" ] || [ "${SRC_URI/automake/}" = "$SRC_URI" ]

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20