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

Contents of /sys-devel/autoconf/autoconf-2.69.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Thu Apr 4 22:59:16 2013 UTC (5 years, 4 months ago) by vapier
Branch: MAIN
Changes since 1.15: +13 -3 lines
Initial USE=multislot support.  Also drop -j1 workaround for newer versions as bug only affected 2.61.

(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)

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

  ViewVC Help
Powered by ViewVC 1.1.20