public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/granite/
Date: Mon, 14 Oct 2019 17:39:54 +0000 (UTC)	[thread overview]
Message-ID: <1571074762.25825b340147a29ea280241281fecea9722e9661.juippis@gentoo> (raw)

commit:     25825b340147a29ea280241281fecea9722e9661
Author:     Bernardo Meurer <meurerbernardo <AT> gmail <DOT> com>
AuthorDate: Mon Oct 14 03:53:14 2019 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 17:39:22 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25825b34

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 <AT> standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/13294
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/granite/granite-5.2.5-r1.ebuild | 79 ++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)

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 00000000000..6f3451adc54
--- /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
+}


             reply	other threads:[~2019-10-14 17:39 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-14 17:39 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-01 14:48 [gentoo-commits] repo/gentoo:master commit in: dev-libs/granite/ David Seifert
2022-12-21 22:47 Sam James
2022-12-19  0:58 Sam James
2022-12-18 11:41 Sam James
2022-01-22 12:44 Maciej Barć
2021-12-26 19:05 Sam James
2021-12-26  0:23 Sam James
2021-12-26  0:23 Sam James
2021-12-19 16:47 Maciej Barć
2021-12-19 16:47 Maciej Barć
2021-11-25  2:03 Maciej Barć
2021-04-09 12:48 Joonas Niilola
2021-03-11 17:06 Sam James
2021-02-01 13:22 Joonas Niilola
2021-02-01 13:22 Joonas Niilola
2019-10-22 10:09 Michał Górny
2019-10-22 10:09 Michał Górny
2019-10-22  7:25 Agostino Sarubbo
2019-10-22  7:24 Agostino Sarubbo
2019-09-26 19:02 Thomas Deutschmann
2019-09-07  8:11 Joonas Niilola
2019-09-07  8:11 Joonas Niilola
2019-08-29 13:27 Joonas Niilola
2019-08-29 13:27 Joonas Niilola
2018-07-11  8:16 Tony Vroon
2018-06-11  8:13 Agostino Sarubbo
2018-06-10 18:46 Thomas Deutschmann
2018-05-18 21:15 Andreas Sturmlechner
2018-03-10 13:19 Amy Liffey
2017-01-28 17:01 Johannes Huber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1571074762.25825b340147a29ea280241281fecea9722e9661.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox