/[gentoo-x86]/sys-devel/sparse/sparse-0.4.3.ebuild
Gentoo

Diff of /sys-devel/sparse/sparse-0.4.3.ebuild

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2011 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/sparse/sparse-0.4.3.ebuild,v 1.1 2010/12/09 16:34:54 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-devel/sparse/sparse-0.4.3.ebuild,v 1.2 2011/04/07 04:25:57 vapier Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7inherit eutils multilib flag-o-matic toolchain-funcs 7inherit multilib toolchain-funcs
8if [[ ${PV} == "9999" ]] ; then 8if [[ ${PV} == "9999" ]] ; then
9 EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git" 9 EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git"
10 inherit git 10 inherit git
11fi 11fi
12 12
27 27
28src_prepare() { 28src_prepare() {
29 sed -i \ 29 sed -i \
30 -e '/^PREFIX=/s:=.*:=/usr:' \ 30 -e '/^PREFIX=/s:=.*:=/usr:' \
31 -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \ 31 -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \
32 -e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions::}' \
32 Makefile || die 33 Makefile || die
33 append-flags -fno-strict-aliasing
34 export MAKEOPTS+=" V=1 CC=$(tc-getCC)" 34 export MAKEOPTS+=" V=1 CC=$(tc-getCC)"
35} 35}
36 36
37src_install() { 37src_install() {
38 emake DESTDIR="${D}" install || die 38 emake DESTDIR="${D}" install || die

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20