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

Diff of /sys-devel/autoconf/autoconf-2.63-r1.ebuild

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

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

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20