2014-07-13 01:46:36 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-07-13 01:46:36 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdaemon/libdaemon-0.14-r1.ebuild,v 1.9 2014/07/11 21:46:04 tgall Exp $
|
2012-02-08 10:13:10 +04:00
|
|
|
|
|
|
|
EAPI=4
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
inherit libtool eutils
|
|
|
|
|
|
|
|
DESCRIPTION="Simple library for creating daemon processes in C"
|
|
|
|
HOMEPAGE="http://0pointer.de/lennart/projects/libdaemon/"
|
|
|
|
SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
2014-07-13 01:46:36 +04:00
|
|
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
|
2012-02-08 10:13:10 +04:00
|
|
|
IUSE="doc examples static-libs"
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
RDEPEND=""
|
|
|
|
DEPEND="doc? ( app-doc/doxygen )"
|
|
|
|
|
2012-02-08 10:13:10 +04:00
|
|
|
DOCS=( "README" )
|
|
|
|
|
|
|
|
src_configure() {
|
2011-11-09 11:33:19 +04:00
|
|
|
econf \
|
2012-02-08 10:13:10 +04:00
|
|
|
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
2011-11-09 11:33:19 +04:00
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-examples \
|
2012-02-08 10:13:10 +04:00
|
|
|
--disable-lynx \
|
|
|
|
$(use_enable static-libs static)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
if use doc ; then
|
|
|
|
einfo "Building documentation"
|
2012-02-08 10:13:10 +04:00
|
|
|
emake doxygen
|
2011-11-09 11:33:19 +04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-02-08 10:13:10 +04:00
|
|
|
default
|
|
|
|
|
|
|
|
find "${ED}" -name '*.la' -exec rm -f {} +
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
if use doc; then
|
|
|
|
ln -sf doc/reference/html reference
|
2012-02-08 10:13:10 +04:00
|
|
|
dohtml -r doc/README.html doc/style.css reference
|
|
|
|
doman doc/reference/man/man*/*
|
2011-11-09 11:33:19 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
if use examples; then
|
|
|
|
docinto examples
|
2012-02-08 10:13:10 +04:00
|
|
|
dodoc examples/testd.c
|
2011-11-09 11:33:19 +04:00
|
|
|
fi
|
|
|
|
|
2012-02-08 10:13:10 +04:00
|
|
|
rm -rf "${ED}"/usr/share/doc/${PF}/{README.html,style.css} || die "rm failed"
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|