Skip to content

Commit

Permalink
dev-libs/efl: use docs.eclass for building docs
Browse files Browse the repository at this point in the history
As requested by Juippis, an example on how to use
the new docs.eclass with doxygen

See-Also: #16366
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
  • Loading branch information
AndrewAmmerlaan committed Dec 6, 2020
1 parent 107e887 commit a2c6903
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions dev-libs/efl/efl-1.25.1-r10.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ EAPI=7

LUA_COMPAT=( lua5-{1..3} luajit )

inherit lua-single meson xdg-utils
DOCS_BUILDER="doxygen"
DOCS_DIR="doc"

inherit docs lua-single meson xdg-utils

DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
HOMEPAGE="https://www.enlightenment.org"
Expand All @@ -14,7 +17,7 @@ SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${P}.tar.xz"
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
IUSE="+X avif bmp connman cpu_flags_arm_neon dds debug doc drm +eet efl-one elogind examples fbcon
IUSE="+X avif bmp connman cpu_flags_arm_neon dds debug drm +eet efl-one elogind examples fbcon
+fontconfig fribidi gif gles2-only gnutls glib +gstreamer harfbuzz hyphen ibus ico libressl
jpeg2k json nls mono opengl +pdf physics pmaps postscript psd pulseaudio raw scim
sdl +sound +ssl +svg +system-lz4 systemd tga tgv tiff tslib unwind v4l vnc wayland webp xcf
Expand Down Expand Up @@ -125,7 +128,6 @@ RDEPEND="${LUA_DEPS}
zeroconf? ( net-dns/avahi )"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig
doc? ( app-doc/doxygen )
nls? ( sys-devel/gettext )"

pkg_setup() {
Expand Down Expand Up @@ -274,15 +276,10 @@ src_configure() {

src_compile() {
meson_src_compile

if use doc; then
cd doc/ || die "Failed to switch into doc/ dir."
doxygen . || die "Doxygen failed to run."
fi
docs_compile
}

src_install() {
use doc && local HTML_DOCS=( "${S}"/doc/html/. )
meson_src_install

if use examples; then
Expand Down

0 comments on commit a2c6903

Please sign in to comment.