/[gentoo-x86]/net-misc/batctl/batctl-2011.1.0.ebuild
Gentoo

Contents of /net-misc/batctl/batctl-2011.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue Apr 17 02:34:26 2012 UTC (7 years, 9 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old versions, version bump (thanks Franz Schrober, bug 412143)

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 xmw 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 xmw 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/batctl/batctl-2011.1.0.ebuild,v 1.3 2011/05/22 23:22:09 xmw Exp $
4 xmw 1.1
5     EAPI=3
6    
7     inherit linux-info toolchain-funcs
8    
9     DESCRIPTION="BATMAN advanced control and management tool"
10     HOMEPAGE="http://www.open-mesh.org/"
11     SRC_URI="http://downloads.open-mesh.org/batman/stable/sources/${PN}/${P}.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE=""
17    
18     DEPEND=""
19     RDEPEND=""
20    
21     pkg_setup() {
22     if ( linux_config_exists && linux_chkconfig_present BATMAN_ADV ) \
23     || ! has_version net-misc/batman-adv ; then
24     ewarn "You need the batman-adv kernel module,"
25     ewarn "either from the kernel tree or via net-misc/batman-adv"
26     fi
27     }
28    
29     src_prepare() {
30 xmw 1.3 sed -e "/^CFLAGS/s: -O[^[:space:]]* : :" \
31     -e "/^CFLAGS/s: -g[^[:space:]]* : :" \
32     -e "s: -j \$(NUM_CPUS) : :" \
33 xmw 1.1 -i Makefile || die
34     }
35    
36     src_compile() {
37 xmw 1.3 emake CC="$(tc-getCC)" V=1 || die
38 xmw 1.1 }
39    
40     src_install() {
41     emake INSTALL_PREFIX="${D}" install || die
42     dodoc README || die
43     doman man/* || die
44     }

  ViewVC Help
Powered by ViewVC 1.1.20