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

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20