mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
sys-libs/safeclib: various changes
verbose make Removes Werror Adds doc IUSE Move default (patches) above eautoreconf Remove rm -r doc/man Add use doc && dodoc -r doc/. thanks @telans Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -14,21 +14,22 @@ SRC_URI="https://github.com/rurban/safeclib/archive/${MY_REV}.tar.gz -> ${P}.tar
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+constraint-handler +extensions modules norm-compat +nullslack test unsafe valgrind"
|
||||
IUSE="+constraint-handler doc +extensions modules norm-compat +nullslack test unsafe valgrind"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
app-doc/doxygen[dot]
|
||||
doc? ( app-doc/doxygen[dot] )
|
||||
valgrind? ( dev-util/valgrind )
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${MY_REV}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_REV}"
|
||||
MODULE_NAMES="slkm(misc:${S}-module:${S}-module)"
|
||||
BUILD_TARGETS="all"
|
||||
BUILD_PARAMS="-f Makefile.kernel"
|
||||
BUILD_PARAMS="-f Makefile.kernel V=1"
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
default
|
||||
eautoreconf
|
||||
|
||||
if use modules ; then
|
||||
#duplicate the working folder
|
||||
@@ -44,13 +45,16 @@ src_configure() {
|
||||
--disable-static
|
||||
--disable-valgrind-sgcheck
|
||||
--enable-shared
|
||||
--disable-Werror
|
||||
$(use_enable constraint-handler)
|
||||
$(use_enable doc)
|
||||
$(use_enable extensions)
|
||||
$(use_enable norm-compat)
|
||||
$(use_enable nullslack)
|
||||
$(use_enable unsafe)
|
||||
$(use_enable valgrind)
|
||||
)
|
||||
|
||||
econf "${myconf[@]}" --enable-wchar
|
||||
|
||||
if use modules ; then
|
||||
@@ -64,6 +68,7 @@ src_compile() {
|
||||
|
||||
if use modules ; then
|
||||
cd "${S}-module" || die
|
||||
export src="${S}-module"
|
||||
linux-mod_src_compile
|
||||
fi
|
||||
}
|
||||
@@ -73,8 +78,7 @@ src_install() {
|
||||
# what to do?
|
||||
default
|
||||
einstalldocs
|
||||
rm -r doc/man || die
|
||||
dodoc -r doc/.
|
||||
use doc && dodoc -r doc/.
|
||||
|
||||
if use modules ; then
|
||||
cd "${S}-module" || die
|
||||
|
||||
Reference in New Issue
Block a user