From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- net-misc/olsrd/olsrd-0.9.6.1.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'net-misc/olsrd/olsrd-0.9.6.1.ebuild') diff --git a/net-misc/olsrd/olsrd-0.9.6.1.ebuild b/net-misc/olsrd/olsrd-0.9.6.1.ebuild index 1379675e09a0..8e8f409db132 100644 --- a/net-misc/olsrd/olsrd-0.9.6.1.ebuild +++ b/net-misc/olsrd/olsrd-0.9.6.1.ebuild @@ -1,18 +1,21 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit eutils multilib toolchain-funcs versionator + +inherit toolchain-funcs versionator DESCRIPTION="An implementation of the Optimized Link State Routing protocol" HOMEPAGE="http://www.olsr.org/" SRC_URI="http://www.olsr.org/releases/$(get_version_component_range 1-2)/${P}.tar.bz2" -SLOT="0" LICENSE="BSD LGPL-2.1" +SLOT="0" KEYWORDS="amd64 x86" IUSE="gtk pud" + DEPEND=" + virtual/pkgconfig gtk? ( dev-libs/glib:2 x11-libs/gdk-pixbuf:2 @@ -23,10 +26,12 @@ DEPEND=" RDEPEND=" ${DEPEND} " + PATCHES=( "${FILESDIR}"/${PN}-0.9.0.2-gtk.patch "${FILESDIR}"/${PN}-0.9.6-gpsd.patch ) + src_prepare() { default @@ -63,6 +68,7 @@ src_compile() { OLSRD_LDFLAGS="${LDFLAGS}" \ OS=linux \ build_all + if use gtk; then emake -C gui/linux-gtk LIBDIR="/usr/$(get_libdir)/${PN}" CC="$(tc-getCC)" fi @@ -71,6 +77,7 @@ src_compile() { src_install() { emake OS=linux LIBDIR="${D}/usr/$(get_libdir)/${PN}" \ DESTDIR="${D}" STRIP=true install_all + if use gtk; then emake -C gui/linux-gtk \ LIBDIR="${D}/usr/$(get_libdir)/${PN}" DESTDIR="${D}" install -- cgit v1.2.3