/[gentoo-x86]/net-misc/olsrd/olsrd-0.6.1.ebuild
Gentoo

Contents of /net-misc/olsrd/olsrd-0.6.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jun 28 01:53:08 2012 UTC (7 years, 5 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/olsrd/olsrd-0.6.1.ebuild,v 1.1 2011/01/06 22:43:26 cedk Exp $
4
5 inherit eutils toolchain-funcs versionator
6
7 MY_PV=$(replace_version_separator 3 '-r')
8 DESCRIPTION="An implementation of the Optimized Link State Routing protocol"
9 HOMEPAGE="http://www.olsr.org/"
10 SRC_URI="http://www.olsr.org/releases/$(get_version_component_range 1-2)/${PN}-${MY_PV}.tar.bz2"
11
12 SLOT="0"
13 LICENSE="BSD"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="gtk"
16 DEPEND="gtk? ( =x11-libs/gtk+-2* )"
17 RDEPEND=$DEPEND
18 S="${WORKDIR}/${PN}-${MY_PV}"
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23 epatch "${FILESDIR}/${P}-build_fix.patch"
24 }
25
26 src_compile() {
27 emake OS=linux CC="$(tc-getCC)" build_all || die "emake failed"
28
29 if use gtk ; then
30 cd "${S}/gui/linux-gtk"
31 einfo "Building GUI ..."
32 emake CC="$(tc-getCC)" || die "emake failed"
33 fi
34 }
35
36 src_install() {
37 emake OS=linux DESTDIR="${D}" STRIP=true install_all || die "emake install_all failed"
38
39 if use gtk; then
40 cd "${S}/gui/linux-gtk"
41 emake DESTDIR="${D}" install || die "emake install failed"
42 fi
43
44 doinitd "${FILESDIR}/olsrd"
45
46 cd "${S}"
47 dodoc CHANGELOG \
48 valgrind-howto.txt files/olsrd.conf.default.rfc \
49 files/olsrd.conf.default.lq files/olsrd.conf.default.lq-fisheye \
50 lib/arprefresh/README_ARPREFRESH \
51 lib/bmf/README_BMF.txt \
52 lib/dot_draw/README_DOT_DRAW \
53 lib/dyn_gw/README_DYN_GW \
54 lib/dyn_gw_plain/README_DYN_GW_PLAIN \
55 lib/httpinfo/README_HTTPINFO \
56 lib/mini/README_MINI \
57 lib/nameservice/README_NAMESERVICE \
58 lib/pgraph/README_PGRAPH \
59 lib/quagga/README_QUAGGA \
60 lib/secure/README_SECURE \
61 lib/txtinfo/README_TXTINFO \
62 lib/watchdog/README_WATCHDOG
63 }

  ViewVC Help
Powered by ViewVC 1.1.20