You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.7 KiB
71 lines
1.7 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/openscap-0.7.3.ebuild,v 1.4 2011/08/21 03:40:45 phajdan.jr Exp $
|
||
|
|
||
|
EAPI=3
|
||
|
|
||
|
PYTHON_DEPEND="2"
|
||
|
|
||
|
inherit eutils multilib python bash-completion
|
||
|
|
||
|
DESCRIPTION="Framework which enables integration with the Security Content Automation Protocol (SCAP)"
|
||
|
HOMEPAGE="http://www.open-scap.org/"
|
||
|
SRC_URI="http://www.open-scap.org/download/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="LGPL-2.1"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="amd64 x86"
|
||
|
IUSE="bash-completion doc nss perl python sql"
|
||
|
RESTRICT="test"
|
||
|
|
||
|
RDEPEND="!nss? ( dev-libs/libgcrypt )
|
||
|
nss? ( dev-libs/nss )
|
||
|
sql? ( dev-db/opendbx )
|
||
|
dev-libs/libpcre
|
||
|
dev-libs/libxml2
|
||
|
dev-libs/libxslt
|
||
|
net-misc/curl"
|
||
|
DEPEND="${RDEPEND}
|
||
|
perl? ( dev-lang/swig )
|
||
|
python? ( dev-lang/swig )"
|
||
|
|
||
|
pkg_setup() {
|
||
|
python_set_active_version 2
|
||
|
python_pkg_setup
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myconf
|
||
|
if use python || use perl ; then
|
||
|
myconf+=" --enable-bindings"
|
||
|
else
|
||
|
myconf+=" --disable-bindings"
|
||
|
fi
|
||
|
if use nss ; then
|
||
|
myconf+=" --with-crypto=nss3"
|
||
|
else
|
||
|
myconf+=" --with-crypto=gcrypt"
|
||
|
fi
|
||
|
econf ${myconf}
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake install DESTDIR="${D}" || die
|
||
|
find "${D}" -name '*.la' -delete || die
|
||
|
sed -i 's/^Description/&:/' ${D}/usr/$(get_libdir)/pkgconfig/libopenscap.pc || die
|
||
|
#--enable-bindings enable all bindings, clean unwanted bindings
|
||
|
if use python && ! use perl ; then
|
||
|
rm -rf "${D}"/usr/$(get_libdir)/perl5 || die
|
||
|
fi
|
||
|
if ! use python && use perl ; then
|
||
|
rm -rf "${D}"/$(python_get_sitedir) || die
|
||
|
fi
|
||
|
if use doc ; then
|
||
|
dohtml -r docs/html/* || die
|
||
|
dodoc docs/examples/* || die
|
||
|
fi
|
||
|
if ! use bash-completion ; then
|
||
|
rm -rf "${D}"/etc/bash_completion.d || die
|
||
|
fi
|
||
|
}
|