diff options
author | Herb Miller Jr <herb@hlmjr.com> | 2018-03-04 12:00:17 -0500 |
---|---|---|
committer | Amy Liffey <amynka@gentoo.org> | 2018-03-10 14:19:36 +0100 |
commit | 8b45a0e2352bbcb68bcc23381175aaacd01c902c (patch) | |
tree | cf107faa3b37ec392ba0516d3d80e18a330c35ef /dev-libs/granite/granite-0.5.0.ebuild | |
parent | net-wireless/gobi_loader: Update maintainer due to bug #279517 (diff) | |
download | gentoo-8b45a0e2352bbcb68bcc23381175aaacd01c902c.tar.gz gentoo-8b45a0e2352bbcb68bcc23381175aaacd01c902c.tar.bz2 gentoo-8b45a0e2352bbcb68bcc23381175aaacd01c902c.zip |
dev-libs/granite: Bump to version 0.5.
Pulls in some changes from elementary overlay.
Closes: https://github.com/gentoo/gentoo/pull/7350
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-libs/granite/granite-0.5.0.ebuild')
-rw-r--r-- | dev-libs/granite/granite-0.5.0.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/granite/granite-0.5.0.ebuild b/dev-libs/granite/granite-0.5.0.ebuild new file mode 100644 index 000000000000..6881a8819db5 --- /dev/null +++ b/dev-libs/granite/granite-0.5.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VALA_MIN_API_VERSION=0.32 + +inherit gnome2-utils vala cmake-utils + +DESCRIPTION="Elementary OS library that extends Gtk+" +HOMEPAGE="https://github.com/elementary/granite" +SRC_URI="https://github.com/elementary/${PN}/archive/$(get_version_component_range 1-2).tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="demo nls test" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/libgee:0.8[introspection] + >=x11-libs/gtk+-3.14:3[introspection]" +DEPEND="${RDEPEND} + $(vala_depend) + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +S="${WORKDIR}"/"${PN}"-"$(get_version_component_range 1-2)" + +src_prepare() { + + # Disable building of the demo application (if needed) + use demo || cmake_comment_add_subdirectory demo + + # Disable generation of the translations (if needed) + use nls || cmake_comment_add_subdirectory po + + cmake-utils_src_prepare + vala_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLIB_INSTALL_DIR=$(get_libdir) + -DVALA_EXECUTABLE=${VALAC} + ) + + cmake-utils_src_configure +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |