dev-libs/granite: bump to 5.3.0
This commit is contained in:
parent
481841a98c
commit
449506d534
1
dev-libs/granite/Manifest
Normal file
1
dev-libs/granite/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST granite-5.2.5.tar.gz 392987 BLAKE2B 507c3b810b750257a66195b45842a7664eb544f86a8606124d30d277c03680296f1ace7a9233d6e094ad5ce3357564e13b61d946f8ed926ccf22a5d9b5e98648 SHA512 64a08293bc4b33d77206c7070b4e2002dd8e2da8a358e43074b681a9228790dcb342d3a705cfc0309a7e1e7f498a2a656e972c2fee085ba99fb5214e33758fc3
|
79
dev-libs/granite/granite-5.3.0.ebuild
Normal file
79
dev-libs/granite/granite-5.3.0.ebuild
Normal file
@ -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
|
||||||
|
}
|
12
dev-libs/granite/metadata.xml
Normal file
12
dev-libs/granite/metadata.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<longdescription lang="en">
|
||||||
|
Granite is a companion library for GTK+ and GLib. Among other things,
|
||||||
|
it provides complex widgets and convenience functions designed for
|
||||||
|
use in apps built for elementary OS.
|
||||||
|
</longdescription>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">elementary/granite</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user