diff --git a/sys-apps/piper/Manifest b/sys-apps/piper/Manifest new file mode 100644 index 0000000..5203bdc --- /dev/null +++ b/sys-apps/piper/Manifest @@ -0,0 +1,2 @@ +DIST piper-0.4.tar.gz 220302 BLAKE2B 328de7bd31b7a74c656cc7fbe50b54663de1368c43e3c1a1ca72245d7a6631fb87b240c7290d987bca383113b7041548472f0e012ec940372103f83f7a52f14f SHA512 7d283d217d114d8acbafcfb358e823a307e694c7d7f5d18ac76b2d52db0704ef9873b63f31273b203f6fdf0e5ec8578adf4bd95c2881fcd01f1c5e59e6c929a6 +EBUILD piper-0.4.ebuild 1158 BLAKE2B ff4e45cfbe75e18ff6eb5a75ebaf3adfd44384938ad19580dcf8e03b7d8ca80f49b47cba25b50d3a669f94adfe70498714525419d0ffa80efe2577070148f076 SHA512 8523d5f21cb6df51253327a40114fc8b72f029af3cbdc29214852f128b755242c95128f7791e2e2881d3abf0a826392d38b391b4420aac5fc3ca3b39743d62be diff --git a/sys-apps/piper/piper-0.4.ebuild b/sys-apps/piper/piper-0.4.ebuild new file mode 100644 index 0000000..0adac3d --- /dev/null +++ b/sys-apps/piper/piper-0.4.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_6 ) + +inherit desktop meson udev python-any-r1 gnome2-utils + +DESCRIPTION="GUI Software to configure gaming mice" +HOMEPAGE="https://github.com/libratbag/piper" +SRC_URI="https://github.com/libratbag/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +#REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + virtual/pkgconfig +" +RDEPEND=" + dev-libs/libevdev + virtual/libudev +" + +src_prepare() { + default +# sed '/default:/d' -i meson_options.txt || die + python_fix_shebang . +} + +pkg_setup() { + python-any-r1_pkg_setup +} + + +src_configure() { + #python_setup 'python3' + local emesonargs=( + -Dtests=$(usex test true false) + ) + meson_src_configure +} + +src_install(){ + default + meson_src_install + python_optimize "${ED}/usr/share/${PN}" + python_optimize "${ED}" +} + +pkg_postinst() { + xdg_desktop_database_update + gnome2_icon_cache_update + +} + +pkg_postrm() { + xdg_desktop_database_update + gnome2_icon_cache_update +} + +