app-misc/piper: add ebuild

This commit is contained in:
odrling 2020-08-04 23:28:00 +02:00
parent e629bab292
commit 30d9e5faef
3 changed files with 60 additions and 0 deletions

1
app-misc/piper/Manifest Normal file
View File

@ -0,0 +1 @@
DIST piper-0.5.1.tar.gz 234944 BLAKE2B 1df33ca6e2d0dae95b34f8e3a98c6829a8f113ae68fb60980ff40374090b9272f86d69103c33fe0a4e1b0ac21a84724e7cabccca4ce8dd23d02f6d56e67d072b SHA512 13368521a9c32b2dc3300b129ed3bb07a6204623fa750f8f75ca31d2a3b60f43ae5f5066ef755814960d4890a489bdfd21b0e1b8f456b3445e0ba35ac06bc877

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>silencly07@gmail.com</email>
<name>Petrus.Z</name>
</maintainer>
<upstream>
<remote-id type="github">libratbag/piper</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,48 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_7 )
inherit meson python-single-r1 xdg
DESCRIPTION="GTK application to configure gaming devices"
HOMEPAGE="https://github.com/libratbag/piper"
SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
${PYTHON_DEPS}
dev-libs/libratbag
$(python_gen_cond_dep '
dev-python/lxml[${PYTHON_MULTI_USEDEP}]
dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
dev-python/python-evdev[${PYTHON_MULTI_USEDEP}]'
)
dev-libs/libevdev
virtual/libudev
"
RDEPEND="
${DEPEND}
"
BDEPEND="
${PYTHON_DEPS}
virtual/pkgconfig
"
src_configure() {
python_setup
meson_src_configure
}
src_install() {
meson_src_install
python_optimize
python_fix_shebang "${ED}"/usr/bin/
}