diff --git a/dev-libs/granite/Manifest b/dev-libs/granite/Manifest new file mode 100644 index 0000000..8912742 --- /dev/null +++ b/dev-libs/granite/Manifest @@ -0,0 +1,13 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST 5.2.3.tar.gz 418821 BLAKE2B 30185d8e61e9d354ad338a49b1b304033d2055c37a7f33e2cf1993a719192ac4aa71d8ac9eaca73801c09d453599cdf25ff789a1a88f976fa3c6a9cf62661af1 SHA512 363bd49428f3d6a7c1591f9f8c195fef5065d6b2562569142cbd09a2efd264074f3be004ccd573830a7969c5aae57711b5dd1f4eddd6d9cc89d4086e20edf05c +EBUILD granite-5.2.3.ebuild 1357 BLAKE2B 761f96a9d4162f0abc4396b06dfb4f56c65c5032e31cc5abe2cfcfbc7d47bc8f15ac1cb05a67d05acba03f8f26d7c15e4165a14b65ab5f13449925355ed3fede SHA512 75fe519086d651c19e72597a1f40dbf9475e502ff1c48a3c1d67539cc7248bceaf82285df0ec800318cd92c623f290c97707a2549477b23fbf4e1890cd2a3eef +MISC metadata.xml 716 BLAKE2B dfe544b3476d0d258b6faa03fc843822a31de63dd653373cf76e6d3af41c7d907cd3a4c06967f5cdb45ef89ca355c6eb9227b55789dda231ba76ea351fb36860 SHA512 9fa526e09ebda3c0268b3c8b4c5df2c2277089b6bf793b130d5d37556174e86d0f50467da85e5f195bfcab5fb021b0fb84e7269a66a943e07aa1e1bb00346136 +-----BEGIN PGP SIGNATURE----- + +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXMzL+wAKCRDPw5SX8bJu +Bwb9AP9DYDOlLJvONlEisxtzczPhUHk78Gw72I2dS47ZVubqYgD/ei8kAiIPC5+D +TDqsobBkY02wNRsxHtgf1TRBUhBp6y0= +=g7+t +-----END PGP SIGNATURE----- diff --git a/dev-libs/granite/granite-5.2.3.ebuild b/dev-libs/granite/granite-5.2.3.ebuild new file mode 100644 index 0000000..d0b09fb --- /dev/null +++ b/dev-libs/granite/granite-5.2.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson vala xdg-utils + +DESCRIPTION="Elementary OS library that extends Gtk+" +HOMEPAGE="https://github.com/elementary/granite" +SRC_URI="https://github.com/elementary/${PN}/archive/${PV}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="demo nls" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/libgee:0.8[introspection] + x11-libs/gtk+:3[introspection]" +DEPEND=" + ${RDEPEND} + dev-util/meson + dev-lang/vala + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +# NOTE: Did not get documentation to compile, revisit later. + # doc? ( + # dev-lang/vala[valadoc] + # dev-util/gtk-doc + # ) + # !doc? ( dev-lang/vala ) + +src_prepare() { + vala_src_prepare + default +} + +src_configure() { + # Disable building of the demo application. + use demo || sed -i "/^subdir('demo')$/d" meson.build || die + + # Disable generation of the translations. + use nls || sed -i "/^subdir('po')$/d" meson.build || die + + # # Use valadoc-$(vala_best_api_version) instead of valadoc. + # use doc && sed -i "s/find_program('valadoc')/find_program('valadoc-$(vala_best_api_version)')/" doc/meson.build || die + + # local emesonargs=( $(meson_use doc documentation) ) + + meson_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/dev-libs/granite/metadata.xml b/dev-libs/granite/metadata.xml new file mode 100644 index 0000000..73f350d --- /dev/null +++ b/dev-libs/granite/metadata.xml @@ -0,0 +1,19 @@ + + + + + gentoo@tastytea.de + tastytea + + + 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. + + + Build the Granite demo application (to present all available UI features provided by the library) + + + elementary/granite + +