From bfa78fe4193cc6e0ae29500eb782cab04ad5b824 Mon Sep 17 00:00:00 2001 From: Anton Schubert Date: Mon, 2 Oct 2017 17:52:02 +0200 Subject: [PATCH] app-office/Spice-up: add ebuild --- app-office/Spice-up/Manifest | 2 + app-office/Spice-up/Spice-up-1.0.0.ebuild | 79 +++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 app-office/Spice-up/Manifest create mode 100644 app-office/Spice-up/Spice-up-1.0.0.ebuild diff --git a/app-office/Spice-up/Manifest b/app-office/Spice-up/Manifest new file mode 100644 index 0000000..3b40362 --- /dev/null +++ b/app-office/Spice-up/Manifest @@ -0,0 +1,2 @@ +DIST Spice-up-1.0.0.tar.gz 2397839 SHA256 ee477a6953f357df3b4932107ac9cf0a9a09b27ccf9d4f1379fe9f1a3c13cfb2 SHA512 35b69ff074d65d5ba86a3e447738ab04a5a8a00a621c3bb07a4c77ca92d435aab7f4d6ec08fdda8d96f9cd550f2eac6c7003858a2da3c6e774c0e2be9da10d24 WHIRLPOOL 80ea14a5468253f67e3c0dd6ad6ec6789f4903b6b046cac752dc71681c61b39ff876c4ff15f89f10674fb0f8a2880d8e718965699e20f5562d1203003291d062 +EBUILD Spice-up-1.0.0.ebuild 1696 SHA256 fde1139b7c8ae7f83974d6bbab25842ed5792da25d73000d1ab91f9b3e891d06 SHA512 f0ab1029ee44835a1df10235e21f814b98cf427c442c24b45ffcecdbfe1ceabbbc0b2864a80723914512f3879439cc13e4e5e5c7ccaea640f0f0b62dc611aea7 WHIRLPOOL 33bacb76c045195a9c6e327e072ed17113ded2c0032eb51906b512e3c1b6b262950ea226bfdb7d3e84263cd4a8ce35fe9c8068383b3d8ab70396c274db074e02 diff --git a/app-office/Spice-up/Spice-up-1.0.0.ebuild b/app-office/Spice-up/Spice-up-1.0.0.ebuild new file mode 100644 index 0000000..500e0d7 --- /dev/null +++ b/app-office/Spice-up/Spice-up-1.0.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +CMAKE_MIN_VERSION="2.6" +VALA_MIN_API_VERSION="0.26" + +inherit cmake-utils gnome2-utils vala xdg-utils + +DESCRIPTION="Create simple and beautiful presentations" +HOMEPAGE="https://github.com/Philip-Scott/Spice-up" +LICENSE="GPL-3" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Philip-Scott/Spice-up" +else + MY_P="Spice-up-${PV}" + SRC_URI="https://github.com/Philip-Scott/Spice-up/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}"/${MY_P} +fi + +RESTRICT="mirror" +SLOT="0" + +RDEPEND=" + dev-libs/libgee:0.8 + dev-libs/libevdev + dev-libs/libgudev + dev-libs/json-glib + >=dev-libs/granite-0.4.1 + >=x11-libs/gtk+-3.9.10:3" + +DEPEND="${RDEPEND} + $(vala_depend) + sys-devel/gettext + virtual/pkgconfig" + +src_prepare() { + vala_src_prepare + # Change path of valac + sed -i -e "/NAMES/s:valac:${VALAC}:" cmake/FindVala.cmake || die 'sed failed!' + # Disable compiling GSettings schemas (fix sandbox warnings while installing) + sed -i -e 's/GSETTINGS_COMPILE//' cmake/GSettings.cmake || die 'sed failed!' + + cmake-utils_src_prepare +} + +src_configure() { + # Fix error message "Unknown arguments specified" + export USER=portage + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + dosym /usr/bin/com.github.philip-scott.spice-up /usr/bin/spice-up + dodoc README.md +} + +pkg_preinst() { + gnome2_icon_savelist + gnome2_schemas_savelist +} + +pkg_postinst() { + xdg_desktop_database_update + gnome2_icon_cache_update + gnome2_schemas_update +} + +pkg_postrm() { + xdg_desktop_database_update + gnome2_icon_cache_update + gnome2_schemas_update +}