/[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.2 Revision 1.3
1# Copyright 1999-2011 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.2 2011/04/07 04:25:57 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-devel/sparse/sparse-0.4.3.ebuild,v 1.3 2011/04/07 04:27:06 vapier Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7inherit multilib toolchain-funcs 7inherit multilib toolchain-funcs
8if [[ ${PV} == "9999" ]] ; then 8if [[ ${PV} == "9999" ]] ; then
21 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" 21 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
22fi 22fi
23 23
24LICENSE="OSL-1.1" 24LICENSE="OSL-1.1"
25SLOT="0" 25SLOT="0"
26IUSE="" 26IUSE="gtk xml"
27
28RDEPEND="gtk? ( x11-libs/gtk+ )
29 xml? ( dev-libs/libxml2 )"
30DEPEND="${RDEPEND}
31 dev-util/pkgconfig"
32
33usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; }
27 34
28src_prepare() { 35src_prepare() {
29 sed -i \ 36 sed -i \
30 -e '/^PREFIX=/s:=.*:=/usr:' \ 37 -e '/^PREFIX=/s:=.*:=/usr:' \
31 -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \ 38 -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \
32 -e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions::}' \ 39 -e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions::}' \
33 Makefile || die 40 Makefile || die
34 export MAKEOPTS+=" V=1 CC=$(tc-getCC)" 41 export MAKEOPTS+=" V=1 CC=$(tc-getCC) HAVE_GTK2=$(usex gtk) HAVE_LIBXML=$(usex xml)"
35} 42}
36 43
37src_install() { 44src_install() {
38 emake DESTDIR="${D}" install || die 45 emake DESTDIR="${D}" install || die
39 dodoc FAQ README 46 dodoc FAQ README

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

  ViewVC Help
Powered by ViewVC 1.1.20