Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-forensics/openscap: ChangeLog openscap-0.7.2.ebuild
Date: Wed, 27 Apr 2011 20:04:58
Message-Id: 20110427200442.BDE2620054@flycatcher.gentoo.org
1 hwoarang 11/04/27 20:04:42
2
3 Modified: ChangeLog
4 Added: openscap-0.7.2.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.9.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 app-forensics/openscap/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-forensics/openscap/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-forensics/openscap/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-forensics/openscap/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 27 Apr 2011 11:56:26 -0000 1.4
24 +++ ChangeLog 27 Apr 2011 20:04:42 -0000 1.5
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-forensics/openscap
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v 1.4 2011/04/27 11:56:26 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v 1.5 2011/04/27 20:04:42 hwoarang Exp $
30 +
31 +*openscap-0.7.2 (27 Apr 2011)
32 +
33 + 27 Apr 2011; Markos Chandras <hwoarang@g.o> +openscap-0.7.2.ebuild:
34 + Version bump
35
36 *openscap-0.7.1-r1 (27 Apr 2011)
37
38
39
40
41 1.1 app-forensics/openscap/openscap-0.7.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-forensics/openscap/openscap-0.7.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-forensics/openscap/openscap-0.7.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openscap-0.7.2.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/openscap-0.7.2.ebuild,v 1.1 2011/04/27 20:04:42 hwoarang Exp $
51
52 EAPI=3
53
54 PYTHON_DEPEND="2"
55
56 inherit eutils multilib python bash-completion
57
58 DESCRIPTION="Framework which enables integration with the Security Content Automation Protocol (SCAP)"
59 HOMEPAGE="http://www.open-scap.org/"
60 SRC_URI="http://www.open-scap.org/download/${P}.tar.gz"
61
62 LICENSE="LGPL-2.1"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="bash-completion doc nss perl python sql"
66
67 RDEPEND="!nss? ( dev-libs/libgcrypt )
68 nss? ( dev-libs/nss )
69 sql? ( dev-db/opendbx )
70 dev-libs/libpcre
71 dev-libs/libxml2
72 net-misc/curl"
73 DEPEND="${RDEPEND}
74 perl? ( dev-lang/swig )
75 python? ( dev-lang/swig )"
76
77 pkg_setup() {
78 python_set_active_version 2
79 python_pkg_setup
80 }
81
82 src_configure() {
83 local myconf
84 if use python || use perl ; then
85 myconf+=" --enable-bindings"
86 else
87 myconf+=" --disable-bindings"
88 fi
89 if use nss ; then
90 myconf+=" --with-crypto=nss3"
91 else
92 myconf+=" --with-crypto=gcrypt"
93 fi
94 econf ${myconf}
95 }
96
97 src_install() {
98 emake install DESTDIR="${D}" || die
99 sed -i 's/^Description/&:/' "${D}"/usr/$(get_libdir)/pkgconfig/libopenscap.pc || die
100 #--enable-bindings enable all bindings, clean unwanted bindings
101 if use python && ! use perl ; then
102 rm -rf "${D}"/usr/$(get_libdir)/perl5 || die
103 fi
104 if ! use python && use perl ; then
105 rm -rf "${D}"/$(python_get_sitedir) || die
106 fi
107 if use doc ; then
108 dohtml -r docs/html/* || die
109 dodoc docs/examples/* || die
110 fi
111 if ! use bash-completion ; then
112 rm -rf "${D}"/etc/bash_completion.d || die
113 fi
114 }