/[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.9 - (hide annotations) (download)
Sun Jun 3 18:24:37 2012 UTC (2 years, 5 months ago) by maekke
Branch: MAIN
Changes since 1.8: +2 -2 lines
arm stable, bug #418405

(Portage version: 2.1.10.63/cvs/Linux i686)

1 jdhore 1.6 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 maekke 1.9 # $Header: /var/cvsroot/gentoo-x86/sys-devel/sparse/sparse-0.4.3.ebuild,v 1.8 2012/06/02 14:29:15 jer Exp $
4 vapier 1.1
5     EAPI="2"
6    
7 flameeyes 1.4 inherit eutils multilib flag-o-matic 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 maekke 1.9 KEYWORDS="~amd64 arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
22 vapier 1.1 fi
23    
24     LICENSE="OSL-1.1"
25     SLOT="0"
26 flameeyes 1.4 IUSE="gtk xml test"
27 vapier 1.3
28 flameeyes 1.4 RDEPEND="gtk? ( x11-libs/gtk+:2 )
29 vapier 1.3 xml? ( dev-libs/libxml2 )"
30     DEPEND="${RDEPEND}
31 jdhore 1.6 gtk? ( virtual/pkgconfig )
32     xml? ( virtual/pkgconfig )"
33 vapier 1.3
34 flameeyes 1.4 src_prepare() {
35 flameeyes 1.5 # http://git.overlays.gentoo.org/gitweb/?p=proj/sparse.git;a=summary
36 flameeyes 1.4 epatch "${FILESDIR}"/${P}-gentoo.patch
37     }
38 vapier 1.1
39 flameeyes 1.4 mymake() {
40     usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; }
41    
42     emake \
43     V=1 \
44     CC="$(tc-getCC)" \
45     GCC_BASE="$(gcc-config -L | cut -d : -f1)" \
46     HAVE_LIBXML=$(usex xml) \
47     HAVE_GTK2=$(usex gtk) \
48     PREFIX=/usr \
49     LIBDIR="/usr/$(get_libdir)" \
50     DESTDIR="${D}" \
51     "$@" \
52     || die
53     }
54    
55     src_compile() {
56     append-flags -fno-strict-aliasing
57    
58     mymake \
59     $(use test && echo all) all-installable
60 vapier 1.1 }
61    
62     src_install() {
63 flameeyes 1.4 mymake install
64 vapier 1.1 dodoc FAQ README
65     }

  ViewVC Help
Powered by ViewVC 1.1.20