diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-12-06 12:27:03 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-12-07 09:18:24 +0200 |
commit | 035fc427623a8aa1cef2a05fb33f83128ed98f85 (patch) | |
tree | 056e9bf1c7753311098d8d383c2ad429aa3e7ecf /dev-libs/efl | |
parent | x11-base/xorg-server: Stabilize 1.20.10 arm, #757882 (diff) | |
download | gentoo-035fc427623a8aa1cef2a05fb33f83128ed98f85.tar.gz gentoo-035fc427623a8aa1cef2a05fb33f83128ed98f85.tar.bz2 gentoo-035fc427623a8aa1cef2a05fb33f83128ed98f85.zip |
dev-libs/efl: use docs.eclass for building docs
As requested by Juippis, an example on how to use
the new docs.eclass with doxygen
See-Also: https://github.com/gentoo/gentoo/pull/16366
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/efl')
-rw-r--r-- | dev-libs/efl/efl-1.25.1-r10.ebuild | 26 | ||||
-rw-r--r-- | dev-libs/efl/efl-1.25.1-r2.ebuild | 26 |
2 files changed, 34 insertions, 18 deletions
diff --git a/dev-libs/efl/efl-1.25.1-r10.ebuild b/dev-libs/efl/efl-1.25.1-r10.ebuild index fb4e79629127..7c1c12329f46 100644 --- a/dev-libs/efl/efl-1.25.1-r10.ebuild +++ b/dev-libs/efl/efl-1.25.1-r10.ebuild @@ -5,7 +5,10 @@ EAPI=7 LUA_COMPAT=( lua5-{1..3} luajit ) -inherit lua-single meson xdg-utils +DOCS_BUILDER="doxygen" +DOCS_DIR="${S}/doc" + +inherit docs lua-single meson xdg-utils DESCRIPTION="Enlightenment Foundation Libraries all-in-one package" HOMEPAGE="https://www.enlightenment.org" @@ -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 @@ -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() { @@ -142,6 +144,17 @@ src_prepare() { sed -i "/config_h.set('HAVE_UNWIND/,/eina_ext_deps += unwind/d" src/lib/eina/meson.build || die "Failed to remove libunwind dep" fi + + # Fixup Doxyfile + pushd "${DOCS_DIR}" + cp Doxyfile.in Doxyfile || die + sed -i \ + -e "s/@PACKAGE_VERSION@/${PV}/g" \ + -e "s/@top_builddir@/../g" \ + -e "s/@top_srcdir@/../g" \ + -e "s/@srcdir@/./g" \ + Doxyfile || die + popd } src_configure() { @@ -273,16 +286,11 @@ src_configure() { } src_compile() { + docs_compile meson_src_compile - - if use doc; then - cd doc/ || die "Failed to switch into doc/ dir." - doxygen . || die "Doxygen failed to run." - fi } src_install() { - use doc && local HTML_DOCS=( "${S}"/doc/html/. ) meson_src_install if use examples; then diff --git a/dev-libs/efl/efl-1.25.1-r2.ebuild b/dev-libs/efl/efl-1.25.1-r2.ebuild index 6ed496789b71..6e7cddf0d29d 100644 --- a/dev-libs/efl/efl-1.25.1-r2.ebuild +++ b/dev-libs/efl/efl-1.25.1-r2.ebuild @@ -3,7 +3,10 @@ EAPI=7 -inherit meson xdg-utils +DOCS_BUILDER="doxygen" +DOCS_DIR="${S}/doc" + +inherit docs meson xdg-utils DESCRIPTION="Enlightenment Foundation Libraries all-in-one package" HOMEPAGE="https://www.enlightenment.org" @@ -12,7 +15,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 lua +luajit 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 @@ -128,7 +131,6 @@ RDEPEND=" " DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig - doc? ( app-doc/doxygen ) nls? ( sys-devel/gettext )" pkg_setup() { @@ -145,6 +147,17 @@ src_prepare() { sed -i "/config_h.set('HAVE_UNWIND/,/eina_ext_deps += unwind/d" src/lib/eina/meson.build || die "Failed to remove libunwind dep" fi + + # Fixup Doxyfile + pushd "${DOCS_DIR}" + cp Doxyfile.in Doxyfile || die + sed -i \ + -e "s/@PACKAGE_VERSION@/${PV}/g" \ + -e "s/@top_builddir@/../g" \ + -e "s/@top_srcdir@/../g" \ + -e "s/@srcdir@/./g" \ + Doxyfile || die + popd } src_configure() { @@ -276,16 +289,11 @@ src_configure() { } src_compile() { + docs_compile meson_src_compile - - if use doc; then - cd doc/ || die "Failed to switch into doc/ dir." - doxygen . || die "Doxygen failed to run." - fi } src_install() { - use doc && local HTML_DOCS=( "${S}"/doc/html/. ) meson_src_install if use examples; then |