diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-03-27 11:17:06 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-03-27 11:17:06 +0000 |
commit | ad4768e3fe8a07887929cc4057fa0d817ef01b80 (patch) | |
tree | 37cd2ce6ef3ed9507028e2caab3ded8f76e75efc /net-analyzer/openvas-libraries | |
parent | Set python 2 interpreter, bug #387533. (diff) | |
download | gentoo-2-ad4768e3fe8a07887929cc4057fa0d817ef01b80.tar.gz gentoo-2-ad4768e3fe8a07887929cc4057fa0d817ef01b80.tar.bz2 gentoo-2-ad4768e3fe8a07887929cc4057fa0d817ef01b80.zip |
Fix werror during build. Resolves bug#387841.
(Portage version: 2.2.0_alpha95/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/openvas-libraries')
-rw-r--r-- | net-analyzer/openvas-libraries/openvas-libraries-4.0.5.ebuild | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/net-analyzer/openvas-libraries/openvas-libraries-4.0.5.ebuild b/net-analyzer/openvas-libraries/openvas-libraries-4.0.5.ebuild index aee041325b77..08baadc02e0c 100644 --- a/net-analyzer/openvas-libraries/openvas-libraries-4.0.5.ebuild +++ b/net-analyzer/openvas-libraries/openvas-libraries-4.0.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libraries/openvas-libraries-4.0.5.ebuild,v 1.1 2011/10/09 17:13:53 hanno Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libraries/openvas-libraries-4.0.5.ebuild,v 1.2 2012/03/27 11:17:06 scarabeus Exp $ EAPI=4 @@ -9,6 +9,7 @@ inherit cmake-utils DESCRIPTION="A remote security scanner for Linux (openvas-libraries)" HOMEPAGE="http://www.openvas.org/" SRC_URI="http://wald.intevation.org/frs/download.php/872/${P}.tar.gz" + SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~x86" @@ -25,16 +26,26 @@ DEPEND="${RDEPEND} dev-util/pkgconfig dev-util/cmake" -# Workaround for upstream bug, it doesn't like out-of-tree builds. -CMAKE_BUILD_DIR="${S}" +DOCS="ChangeLog CHANGES README" + +CMAKE_IN_SOURCE_BUILD=1 + +src_prepare() { + sed \ + -e 's:-Werror::g' \ + -i CMakeLists.txt \ + -i */CMakeLists.txt || die +} src_configure() { - local mycmakeargs="-DLOCALSTATEDIR=/var -DSYSCONFDIR=/etc" + local mycmakeargs=( + "-DLOCALSTATEDIR=${EPREFIX}/var" + "-DSYSCONFDIR=${EPREFIX}/etc" + ) cmake-utils_src_configure } src_install() { cmake-utils_src_install - dodoc ChangeLog CHANGES README || die "dodoc failed" keepdir /var/cache/openvas/ } |