Closes: https://bugs.gentoo.org/546438
Closes: https://github.com/gentoo/gentoo/pull/12190
Signed-off-by: Marco Genasci <fedeliallalinea@gmail.com>
Signed-off-by: Michael Palimaka <kensington@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
+DIST evoluspencil-3.0.4-49.rpm 55779457 BLAKE2B 7f74bf4d0ac4dcd6ef2e37d56e6b06eda72a34e6c4bc0e2fbb5b55727bb3ba0ecfe183e64ad5f6abe77d258dca2bfc7acca0d08c934a7700699690ff8d39e335 SHA512 72a17841d214523223d6f35ca8ba69076070baf83248ceb5747a23865ec955f8aafbb799eb01b3a3c99226a7bc1653e55be6f7292941b1a859598e016673f2ec
DIST pencil-2.0.5.tar.gz 4810418 BLAKE2B 438bc868aa7e83434de4e5e7b196dce5e607b49590b4216e345c9df4999327ee75b9761a08de9bab47cb0d1e92a363af3b14985748cbbf203d8ff3f0246b97a2 SHA512 cb9ab75f69ca886c7b0579dd293e4c4b4279eac21f4301ad0299e55b27d998d59f7b9444916d306939e6c7f4603a8267aecd3dc0ab3efc41175659886e399b0d
--- /dev/null
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit rpm xdg-utils
+
+MY_PN="${PN/evolus/}"
+
+DESCRIPTION="A simple GUI prototyping tool to create mockups"
+HOMEPAGE="https://pencil.evolus.vn/"
+SRC_URI="https://pencil.evolus.vn/dl/V${PV}/${MY_PN^}-${PV}-49.x86_64.rpm -> ${P}-49.rpm"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib
+ dev-libs/nspr
+ dev-libs/nss
+ gnome-base/gconf
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ net-print/cups
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXScrnSaver
+ x11-libs/libXtst
+ x11-libs/pango
+"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="
+ opt/${MY_PN^}/*.so
+ opt/${MY_PN^}/pencil
+"
+
+src_install() {
+ doins -r usr
+ doins -r opt
+
+ exeinto /opt/${MY_PN^}
+ doexe opt/${MY_PN^}/{pencil,libffmpeg.so,libnode.so}
+ dosym ../${MY_PN^}/pencil /opt/bin/pencil
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}