/[gentoo-x86]/sys-devel/automake/automake-1.12.ebuild
Gentoo

Contents of /sys-devel/automake/automake-1.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 10 06:10:56 2012 UTC (10 months, 2 weeks ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump for security.

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/automake/automake-1.12.ebuild,v 1.1 2012/04/26 05:43:14 vapier Exp $
4
5 inherit eutils versionator unpacker
6
7 if [[ ${PV/_beta} == ${PV} ]]; then
8 MY_P=${P}
9 SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
10 ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz"
11 else
12 MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b"
13 MY_P="${PN}-${MY_PV}"
14
15 # Alpha/beta releases are not distributed on the usual mirrors.
16 SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz"
17 fi
18
19 DESCRIPTION="Used to generate Makefile.in from Makefile.am"
20 HOMEPAGE="http://www.gnu.org/software/automake/"
21
22 LICENSE="GPL-2"
23 # Use Gentoo versioning for slotting.
24 SLOT="${PV:0:4}"
25 #KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
26 IUSE=""
27
28 RDEPEND="dev-lang/perl
29 >=sys-devel/automake-wrapper-7
30 >=sys-devel/autoconf-2.62
31 >=sys-apps/texinfo-4.7
32 sys-devel/gnuconfig"
33 DEPEND="${RDEPEND}
34 sys-apps/help2man"
35
36 S="${WORKDIR}/${MY_P}"
37
38 src_unpack() {
39 unpacker_src_unpack
40 cd "${S}"
41 sed -i \
42 -e "s|: (automake)| v${SLOT}: (automake${SLOT})|" \
43 doc/automake.texi || die
44 local f
45 for f in doc/automake.{texi,info*} ; do
46 mv ${f} ${f%.*}${SLOT}.${f#*.} || die
47 done
48 touch -r configure doc/*.{texi,info}*
49 sed -i -r \
50 -e "s:(automake)(.info|.texi):\1${SLOT}\2:g" \
51 Makefile.in || die
52 export WANT_AUTOCONF=2.5
53 }
54
55 src_compile() {
56 econf --docdir=/usr/share/doc/${PF} HELP2MAN=true || die
57 emake APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}" || die
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install \
62 APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}" || die
63 dodoc AUTHORS ChangeLog NEWS README THANKS
64
65 rm \
66 "${D}"/usr/bin/{aclocal,automake} \
67 "${D}"/usr/share/man/man1/{aclocal,automake}.1 || die
68
69 # remove all config.guess and config.sub files replacing them
70 # w/a symlink to a specific gnuconfig version
71 local x
72 for x in guess sub ; do
73 dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
74 done
75 }

  ViewVC Help
Powered by ViewVC 1.1.17