mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
dev-libs/libdatrie: add USE=doc
Closes: https://bugs.gentoo.org/807909 Closes: https://bugs.gentoo.org/839861 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=8
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools
|
||||||
|
|
||||||
@@ -16,23 +16,26 @@ else
|
|||||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
LICENSE="LGPL-2.1+"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
IUSE="doc"
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
BDEPEND="doc? ( app-text/doxygen )"
|
||||||
BDEPEND="dev-vcs/git"
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
# Fixed version if in non git project
|
# Fixed version if in non git project
|
||||||
echo ${PV} > VERSION
|
echo ${PV} > VERSION
|
||||||
# From upstreams autogen.sh, to make it utilize the autotools eclass
|
eautoreconf
|
||||||
# Here translate the autogen.sh, equivalent to the following code
|
}
|
||||||
# > sh autogen.sh
|
|
||||||
eautoheader
|
src_configure() {
|
||||||
_elibtoolize --force
|
econf \
|
||||||
eaclocal
|
$(use_enable doc doxygen-doc) \
|
||||||
eautomake --add-missing
|
--with-html-docdir="${EPREFIX}"/usr/share/doc/${PF}/html
|
||||||
# Not allow git-version-gen does refresh
|
}
|
||||||
eautoconf
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user