diff options
author | Bernardo Meurer <meurerbernardo@gmail.com> | 2019-10-13 20:53:14 -0700 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-10-14 20:39:22 +0300 |
commit | 25825b340147a29ea280241281fecea9722e9661 (patch) | |
tree | 3f2919a4fbe17da3edc60fc51f674ff9ada2f4ef /dev-libs/granite | |
parent | app-admin/sudo: bump to v1.8.28 (diff) | |
download | gentoo-25825b340147a29ea280241281fecea9722e9661.tar.gz gentoo-25825b340147a29ea280241281fecea9722e9661.tar.bz2 gentoo-25825b340147a29ea280241281fecea9722e9661.zip |
dev-libs/granite: multiple fixes
* Make introspection conditional on the USE flag (solves an issue with stabilization)
* Replace xdg_utils with xdg and since the latter exports the necessary stages
* Adds back the doc USE flag, which was left during the 5.2.5 bump since I couldn't get it to work
* Restrict !test
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Bernardo Meurer <bernardo@standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/13294
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/granite')
-rw-r--r-- | dev-libs/granite/granite-5.2.5-r1.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/granite/granite-5.2.5-r1.ebuild b/dev-libs/granite/granite-5.2.5-r1.ebuild new file mode 100644 index 000000000000..6f3451adc546 --- /dev/null +++ b/dev-libs/granite/granite-5.2.5-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +VALA_MIN_API_VERSION=0.40 +BUILD_DIR="${WORKDIR}/${P}-build" + +inherit meson vala xdg + +DESCRIPTION="Elementary OS library that extends GTK+" +HOMEPAGE="https://github.com/elementary/granite" +SRC_URI="https://github.com/elementary/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc +introspection test" +RESTRICT="!test? ( test )" + +BDEPEND=" + $(vala_depend) + virtual/pkgconfig + doc? ( + dev-lang/vala[valadoc] + dev-util/gtk-doc + ) +" +DEPEND=" + >=dev-libs/glib-2.50:2 + dev-libs/libgee:0.8[introspection=] + >=x11-libs/gtk+-3.22:3[introspection=] +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + vala_src_prepare + if use doc; then + sed -i \ + "s/find_program('valadoc')/find_program('valadoc-$(vala_best_api_version)')/g" \ + doc/meson.build || die "Failed to replace valadoc" + local doc_sed_list=( + "lib/Widgets/AboutDialog.vala" + "lib/Widgets/AlertView.vala" + "lib/Widgets/AsyncImage.vala" + "lib/Widgets/Avatar.vala" + "lib/Widgets/CellRendererBadge.vala" + "lib/Widgets/DynamicNotebook.vala" + "lib/Widgets/MessageDialog.vala" + "lib/Widgets/ModeButton.vala" + "lib/Widgets/OverlayBar.vala" + "lib/Widgets/SeekBar.vala" + "lib/Widgets/StorageBar.vala" + "lib/Widgets/Toast.vala" + "lib/Widgets/Welcome.vala" + ) + for src_file in "${doc_sed_list[@]}"; do + sed -ie "s@{{../doc@{{${BUILD_DIR}/doc@g" \ + "./${src_file}" || die "Failed to fix docs for ./${src_file}" + done + fi +} + +src_configure() { + local emesonargs=( + $(meson_use doc documentation) + ) + meson_src_configure + + if use doc; then + cp -r ./doc/images "${BUILD_DIR}/doc/" || die "Failed to copy doc images" + fi +} + +src_install() { + use doc && local HTML_DOCS=( "${BUILD_DIR}/doc/granite/html/." ) + meson_src_install +} |