|
|
@@ -0,0 +1,42 @@ |
|
|
|
# Copyright 1999-2018 Gentoo Foundation |
|
|
|
# Distributed under the terms of the GNU General Public License v2 |
|
|
|
|
|
|
|
EAPI=6 |
|
|
|
|
|
|
|
EGIT_REPO_URI="https://github.com/emersion/grim.git" |
|
|
|
EGIT_BRANCH="master" |
|
|
|
|
|
|
|
if [[ ${PV} = 9999* ]]; then |
|
|
|
GIT_ECLASS="git-r3" |
|
|
|
fi |
|
|
|
|
|
|
|
inherit eutils meson $GIT_ECLASS |
|
|
|
|
|
|
|
DESCRIPTION="Grab images from a Wayland compositor" |
|
|
|
HOMEPAGE="https://github.com/emersion/grim" |
|
|
|
|
|
|
|
if [[ $PV = 9999* ]]; then |
|
|
|
SRC_URI="" |
|
|
|
else |
|
|
|
SRC_URI="https://github.com/emersion/grim/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|
|
|
KEYWORDS="~amd64 ~x86" |
|
|
|
fi |
|
|
|
|
|
|
|
LICENSE="MIT" |
|
|
|
SLOT="0" |
|
|
|
IUSE="jpeg" |
|
|
|
|
|
|
|
RDEPEND="dev-libs/wayland |
|
|
|
>=dev-libs/wayland-protocols-1.14 |
|
|
|
x11-libs/cairo |
|
|
|
jpeg? ( virtual/jpeg ) |
|
|
|
" |
|
|
|
|
|
|
|
DEPEND="${RDEPEND} |
|
|
|
>=dev-util/meson-0.47 |
|
|
|
dev-util/ninja |
|
|
|
" |
|
|
|
|
|
|
|
src_configure() { |
|
|
|
meson_src_configure |
|
|
|
} |