/[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.3 - (hide annotations) (download)
Thu Apr 7 04:27:06 2011 UTC (3 years, 6 months ago) by vapier
Branch: MAIN
Changes since 1.2: +9 -2 lines
Control gtk/xml via USE flags #361851 by Nathan Phillip Brink.

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

1 vapier 1.2 # Copyright 1999-2011 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-devel/sparse/sparse-0.4.3.ebuild,v 1.1 2010/12/09 16:34:54 vapier Exp $
4 vapier 1.1
5     EAPI="2"
6    
7 vapier 1.2 inherit multilib toolchain-funcs
8 vapier 1.1 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 vapier 1.3 IUSE="gtk xml"
27    
28     RDEPEND="gtk? ( x11-libs/gtk+ )
29     xml? ( dev-libs/libxml2 )"
30     DEPEND="${RDEPEND}
31     dev-util/pkgconfig"
32    
33     usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; }
34 vapier 1.1
35     src_prepare() {
36     sed -i \
37     -e '/^PREFIX=/s:=.*:=/usr:' \
38     -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \
39 vapier 1.2 -e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions::}' \
40 vapier 1.1 Makefile || die
41 vapier 1.3 export MAKEOPTS+=" V=1 CC=$(tc-getCC) HAVE_GTK2=$(usex gtk) HAVE_LIBXML=$(usex xml)"
42 vapier 1.1 }
43    
44     src_install() {
45     emake DESTDIR="${D}" install || die
46     dodoc FAQ README
47     }

  ViewVC Help
Powered by ViewVC 1.1.20