Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/safeclib/
Date: Thu, 15 Apr 2021 00:51:48
Message-Id: 1618447897.7c59528284fe8f76dfaf4795ff729427e0ccac84.Alessandro-Barbieri@gentoo
1 commit: 7c59528284fe8f76dfaf4795ff729427e0ccac84
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 15 00:50:12 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Thu Apr 15 00:51:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7c595282
7
8 sys-libs/safeclib: various changes
9
10 verbose make
11 Removes Werror
12 Adds doc IUSE
13 Move default (patches) above eautoreconf
14 Remove rm -r doc/man
15 Add use doc && dodoc -r doc/.
16
17 thanks @telans
18
19 Package-Manager: Portage-3.0.18, Repoman-3.0.3
20 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
21
22 sys-libs/safeclib/safeclib-3.6.0_p20210407.ebuild | 18 +++++++++++-------
23 1 file changed, 11 insertions(+), 7 deletions(-)
24
25 diff --git a/sys-libs/safeclib/safeclib-3.6.0_p20210407.ebuild b/sys-libs/safeclib/safeclib-3.6.0_p20210407.ebuild
26 index f3ba40fda..fd2ff8584 100644
27 --- a/sys-libs/safeclib/safeclib-3.6.0_p20210407.ebuild
28 +++ b/sys-libs/safeclib/safeclib-3.6.0_p20210407.ebuild
29 @@ -14,21 +14,22 @@ SRC_URI="https://github.com/rurban/safeclib/archive/${MY_REV}.tar.gz -> ${P}.tar
30 LICENSE="MIT"
31 SLOT="0"
32 KEYWORDS="~amd64"
33 -IUSE="+constraint-handler +extensions modules norm-compat +nullslack test unsafe valgrind"
34 +IUSE="+constraint-handler doc +extensions modules norm-compat +nullslack test unsafe valgrind"
35 RESTRICT="!test? ( test )"
36 +
37 BDEPEND="
38 - app-doc/doxygen[dot]
39 + doc? ( app-doc/doxygen[dot] )
40 valgrind? ( dev-util/valgrind )
41 "
42 -S="${WORKDIR}/${PN}-${MY_REV}"
43
44 +S="${WORKDIR}/${PN}-${MY_REV}"
45 MODULE_NAMES="slkm(misc:${S}-module:${S}-module)"
46 BUILD_TARGETS="all"
47 -BUILD_PARAMS="-f Makefile.kernel"
48 +BUILD_PARAMS="-f Makefile.kernel V=1"
49
50 src_prepare() {
51 - eautoreconf
52 default
53 + eautoreconf
54
55 if use modules ; then
56 #duplicate the working folder
57 @@ -44,13 +45,16 @@ src_configure() {
58 --disable-static
59 --disable-valgrind-sgcheck
60 --enable-shared
61 + --disable-Werror
62 $(use_enable constraint-handler)
63 + $(use_enable doc)
64 $(use_enable extensions)
65 $(use_enable norm-compat)
66 $(use_enable nullslack)
67 $(use_enable unsafe)
68 $(use_enable valgrind)
69 )
70 +
71 econf "${myconf[@]}" --enable-wchar
72
73 if use modules ; then
74 @@ -64,6 +68,7 @@ src_compile() {
75
76 if use modules ; then
77 cd "${S}-module" || die
78 + export src="${S}-module"
79 linux-mod_src_compile
80 fi
81 }
82 @@ -73,8 +78,7 @@ src_install() {
83 # what to do?
84 default
85 einstalldocs
86 - rm -r doc/man || die
87 - dodoc -r doc/.
88 + use doc && dodoc -r doc/.
89
90 if use modules ; then
91 cd "${S}-module" || die