/[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.12 Revision 1.13
1# Copyright 1999-2013 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.12 2013/04/04 18:44:03 vapier 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
7if [[ ${PV} == "9999" ]] ; then 9if [[ ${PV} == "9999" ]] ; then
8 EGIT_REPO_URI="git://git.savannah.gnu.org/autoconf.git" 10 EGIT_REPO_URI="git://git.savannah.gnu.org/autoconf.git"
9 inherit git 11 inherit git-2
10 SRC_URI="" 12 SRC_URI=""
11 #KEYWORDS="" 13 #KEYWORDS=""
12else 14else
13 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2 15 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2
14 ftp://alpha.gnu.org/pub/gnu/${PN}/${P}.tar.bz2" 16 ftp://alpha.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
17 19
18DESCRIPTION="Used to create autoconfiguration files" 20DESCRIPTION="Used to create autoconfiguration files"
19HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html" 21HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html"
20 22
21LICENSE="GPL-3" 23LICENSE="GPL-3"
22SLOT="2.5" 24SLOT=$(usex multislot "${PV}" "2.5")
23IUSE="emacs" 25IUSE="emacs multislot"
24 26
25DEPEND=">=sys-devel/m4-1.4.6 27DEPEND=">=sys-devel/m4-1.4.6
26 dev-lang/perl" 28 dev-lang/perl"
27RDEPEND="${DEPEND} 29RDEPEND="${DEPEND}
28 >=sys-devel/autoconf-wrapper-9-r1" 30 >=sys-devel/autoconf-wrapper-9-r1"
30 32
31src_prepare() { 33src_prepare() {
32 if [[ ${PV} == "9999" ]] ; then 34 if [[ ${PV} == "9999" ]] ; then
33 autoreconf -f -i || die 35 autoreconf -f -i || die
34 fi 36 fi
37 use multislot && find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} +
35} 38}
36 39
37src_configure() { 40src_configure() {
38 # 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.
39 export EMACS=no 42 export EMACS=no
45 48
46src_install() { 49src_install() {
47 emake DESTDIR="${D}" install || die 50 emake DESTDIR="${D}" install || die
48 dodoc AUTHORS BUGS NEWS README TODO THANKS \ 51 dodoc AUTHORS BUGS NEWS README TODO THANKS \
49 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
50} 60}

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

  ViewVC Help
Powered by ViewVC 1.1.20