| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-block/nbd/nbd-3.2.ebuild,v 1.10 2013/01/01 14:54:51 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="Userland client/server for kernel network block device"
|
| 10 |
HOMEPAGE="http://nbd.sourceforge.net/"
|
| 11 |
SRC_URI="mirror://sourceforge/nbd/${P}.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 ~sparc x86"
|
| 16 |
IUSE="debug zlib"
|
| 17 |
|
| 18 |
RDEPEND=">=dev-libs/glib-2.0
|
| 19 |
zlib? ( sys-libs/zlib )"
|
| 20 |
DEPEND="${RDEPEND}
|
| 21 |
virtual/pkgconfig"
|
| 22 |
|
| 23 |
src_configure() {
|
| 24 |
econf \
|
| 25 |
--enable-lfs \
|
| 26 |
--enable-syslog \
|
| 27 |
$(use_enable debug)
|
| 28 |
}
|
| 29 |
|
| 30 |
src_compile() {
|
| 31 |
default
|
| 32 |
use zlib && emake -C gznbd CC="$(tc-getCC)"
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
default
|
| 37 |
use zlib && dobin gznbd/gznbd
|
| 38 |
}
|