/[gentoo-x86]/sys-devel/autoconf/autoconf-2.67.ebuild
Gentoo

Diff of /sys-devel/autoconf/autoconf-2.67.ebuild

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

Revision 1.2 Revision 1.13
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf/autoconf-2.67.ebuild,v 1.2 2010/08/06 23:07:55 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf/autoconf-2.67.ebuild,v 1.13 2013/04/04 22:59:16 vapier Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7inherit eutils
8
9if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="git://git.savannah.gnu.org/autoconf.git"
11 inherit git-2
12 SRC_URI=""
13 #KEYWORDS=""
14else
15 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2
16 ftp://alpha.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
17 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
18fi
19
7DESCRIPTION="Used to create autoconfiguration files" 20DESCRIPTION="Used to create autoconfiguration files"
8HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html" 21HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html"
9SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2
10 ftp://alpha.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
11 22
12LICENSE="GPL-3" 23LICENSE="GPL-3"
13SLOT="2.5" 24SLOT=$(usex multislot "${PV}" "2.5")
14#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" 25IUSE="emacs multislot"
15IUSE="emacs"
16 26
17DEPEND=">=sys-apps/texinfo-4.3
18 >=sys-devel/m4-1.4.6 27DEPEND=">=sys-devel/m4-1.4.6
19 dev-lang/perl" 28 dev-lang/perl"
20RDEPEND="${DEPEND} 29RDEPEND="${DEPEND}
21 >=sys-devel/autoconf-wrapper-9-r1" 30 >=sys-devel/autoconf-wrapper-9-r1"
22PDEPEND="emacs? ( app-emacs/autoconf-mode )" 31PDEPEND="emacs? ( app-emacs/autoconf-mode )"
32
33src_prepare() {
34 if [[ ${PV} == "9999" ]] ; then
35 autoreconf -f -i || die
36 fi
37 use multislot && find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} +
38}
23 39
24src_configure() { 40src_configure() {
25 # Disable Emacs in the build system since it is in a separate package. 41 # Disable Emacs in the build system since it is in a separate package.
26 export EMACS=no 42 export EMACS=no
27 econf --program-suffix="-${PV}" || die 43 econf --program-suffix="-${PV}" || die
32 48
33src_install() { 49src_install() {
34 emake DESTDIR="${D}" install || die 50 emake DESTDIR="${D}" install || die
35 dodoc AUTHORS BUGS NEWS README TODO THANKS \ 51 dodoc AUTHORS BUGS NEWS README TODO THANKS \
36 ChangeLog ChangeLog.0 ChangeLog.1 ChangeLog.2 52 ChangeLog ChangeLog.0 ChangeLog.1 ChangeLog.2
53
54 if use multislot ; then
55 local f
56 for f in "${D}"/usr/share/info/*.info* ; do
57 mv "${f}" "${f/.info/-${SLOT}.info}" || die
58 done
59 fi
37} 60}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20