From 264467e31b7139e731ccbf277812b7652e96f6c6 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Sat, 3 Aug 2019 20:33:09 -0700 Subject: [PATCH] gui-apps/grim: New package (1.2.0, 9999) Closes: https://bugs.gentoo.org/684712 Package-Manager: Portage-2.3.70, Repoman-2.3.16 Signed-off-by: Bernardo Meurer Closes: https://github.com/gentoo/gentoo/pull/12613 Signed-off-by: Aaron Bauman --- gui-apps/grim/Manifest | 1 + gui-apps/grim/grim-1.2.0.ebuild | 45 +++++++++++++++++++++++++++++++++ gui-apps/grim/grim-9999.ebuild | 45 +++++++++++++++++++++++++++++++++ gui-apps/grim/metadata.xml | 24 ++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 gui-apps/grim/Manifest create mode 100644 gui-apps/grim/grim-1.2.0.ebuild create mode 100644 gui-apps/grim/grim-9999.ebuild create mode 100644 gui-apps/grim/metadata.xml diff --git a/gui-apps/grim/Manifest b/gui-apps/grim/Manifest new file mode 100644 index 000000000000..3b6273b83c4e --- /dev/null +++ b/gui-apps/grim/Manifest @@ -0,0 +1 @@ +DIST grim-1.2.0.tar.gz 14445 BLAKE2B e833afe5e57768e269ece0d7f99653810424449840867a37f02db4645a0dedd7829241d24a39ca00e844505ab5d2408891aac325e7f6ddd2011884fee240b44b SHA512 d58e392f00b93e031fd46a9e0175aaa5c3ce4fafb2afa3cc97ff28a9f77fc5583774f6ddf86295262749c00dd7c4e98c6041588bfa6fd70319ddfce6b903414e diff --git a/gui-apps/grim/grim-1.2.0.ebuild b/gui-apps/grim/grim-1.2.0.ebuild new file mode 100644 index 000000000000..c8c932c13aa2 --- /dev/null +++ b/gui-apps/grim/grim-1.2.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +DESCRIPTION="Grab images from a Wayland compositor." +HOMEPAGE="https://github.com/emersion/grim" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/emersion/${PN}.git" +else + SRC_URI="https://github.com/emersion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+man jpeg" + +DEPEND=" + >=dev-libs/wayland-protocols-1.14 + dev-libs/wayland + jpeg? ( virtual/jpeg ) + x11-libs/cairo +" +RDEPEND=" + ${DEPEND} +" +if [[ ${PV} == 9999 ]]; then + BDEPEND+="man? ( ~app-text/scdoc-9999 )" +else + BDEPEND+="man? ( app-text/scdoc )" +fi + +src_configure() { + local emesonargs=( + $(meson_feature jpeg) + $(meson_feature man man-pages) + "-Dwerror=false" + ) + meson_src_configure +} diff --git a/gui-apps/grim/grim-9999.ebuild b/gui-apps/grim/grim-9999.ebuild new file mode 100644 index 000000000000..c8c932c13aa2 --- /dev/null +++ b/gui-apps/grim/grim-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +DESCRIPTION="Grab images from a Wayland compositor." +HOMEPAGE="https://github.com/emersion/grim" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/emersion/${PN}.git" +else + SRC_URI="https://github.com/emersion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+man jpeg" + +DEPEND=" + >=dev-libs/wayland-protocols-1.14 + dev-libs/wayland + jpeg? ( virtual/jpeg ) + x11-libs/cairo +" +RDEPEND=" + ${DEPEND} +" +if [[ ${PV} == 9999 ]]; then + BDEPEND+="man? ( ~app-text/scdoc-9999 )" +else + BDEPEND+="man? ( app-text/scdoc )" +fi + +src_configure() { + local emesonargs=( + $(meson_feature jpeg) + $(meson_feature man man-pages) + "-Dwerror=false" + ) + meson_src_configure +} diff --git a/gui-apps/grim/metadata.xml b/gui-apps/grim/metadata.xml new file mode 100644 index 000000000000..24e0317c3dfa --- /dev/null +++ b/gui-apps/grim/metadata.xml @@ -0,0 +1,24 @@ + + + + + bernardo@standard.ai + Bernardo Meurer + + + bman@gentoo.org + Aaron Bauman + + + Grab images from a Wayland compositor. + + + Enable JPEG support. + Generate and install man pages. + + + emersion/grim + https://github.com/emersion/grim/issues + https://github.com/emersion/grim/releases + + -- 2.26.2