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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Dec 9 16:34:54 2010 UTC (3 years, 8 months ago) by vapier
Branch: MAIN
Version bump #348212 by Nick Bowler.

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

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/sparse/sparse-0.4.2.ebuild,v 1.9 2010/11/13 16:15:50 armin76 Exp $
4
5 EAPI="2"
6
7 inherit eutils multilib flag-o-matic toolchain-funcs
8 if [[ ${PV} == "9999" ]] ; then
9 EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git"
10 inherit git
11 fi
12
13 DESCRIPTION="C semantic parser"
14 HOMEPAGE="http://sparse.wiki.kernel.org/index.php/Main_Page"
15
16 if [[ ${PV} == "9999" ]] ; then
17 SRC_URI=""
18 #KEYWORDS=""
19 else
20 SRC_URI="mirror://kernel/software/devel/sparse/dist/${P}.tar.bz2"
21 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
22 fi
23
24 LICENSE="OSL-1.1"
25 SLOT="0"
26 IUSE=""
27
28 src_prepare() {
29 sed -i \
30 -e '/^PREFIX=/s:=.*:=/usr:' \
31 -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \
32 Makefile || die
33 append-flags -fno-strict-aliasing
34 export MAKEOPTS+=" V=1 CC=$(tc-getCC)"
35 }
36
37 src_install() {
38 emake DESTDIR="${D}" install || die
39 dodoc FAQ README
40 }

  ViewVC Help
Powered by ViewVC 1.1.20