diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-20 12:05:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-20 12:05:24 +0100 |
commit | da7ae1dd1fccb6b3c0e4763ab983ad96d57bf463 (patch) | |
tree | 0a7a1b7b3ad60c3b21c697e75908b256fc9ed6b1 /app-misc/piper | |
parent | b6cfc0c19effe2d9f7b8ab303cd00636f16da253 (diff) |
gentoo auto-resync : 20:04:2024 - 12:05:23
Diffstat (limited to 'app-misc/piper')
-rw-r--r-- | app-misc/piper/Manifest | 3 | ||||
-rw-r--r-- | app-misc/piper/piper-0.7-r1.ebuild (renamed from app-misc/piper/piper-0.7.ebuild) | 10 | ||||
-rw-r--r-- | app-misc/piper/piper-9999.ebuild | 69 |
3 files changed, 79 insertions, 3 deletions
diff --git a/app-misc/piper/Manifest b/app-misc/piper/Manifest index d7c2928815b8..860bf6b15ffa 100644 --- a/app-misc/piper/Manifest +++ b/app-misc/piper/Manifest @@ -3,5 +3,6 @@ AUX piper-0.7-fix-tests.patch 3238 BLAKE2B 289ef09b85964cee3085403e1f26dca52ee29 DIST piper-0.6.tar.gz 254653 BLAKE2B ea621e556e2ee6a98e334f2e61df70d700a9cb371dcd5bddc690b4a4c97543a6957bc339bddbde2cf91ac3b201d3bd70fe336974f17e36cfdcbb4895257af993 SHA512 9d76cbc5f3a91c68d10355a1b429c05873effcaa80086fb51c7d4a7bdbbb3e0faf42ec8ccad611a15f5c954d3014a8416e4a497c86167c227818771a24d108a0 DIST piper-0.7.tar.gz 271658 BLAKE2B 8d3d411cc771a286ae0d7654b6d70f394e11edb182924619195b947d0d54df4db308e94aceebe0754ddd446538f1dce2ccb88dbf1cd44595b614d852e7394698 SHA512 fcbc30a4954ea6b0aa67c66052eab1e6b2d3039c927eeddcfc8b03d00f1c91e8f0ae80788ba0e4f053a612b03f594e74fd119dd11f52dd47608c99602e7e4940 EBUILD piper-0.6.ebuild 1307 BLAKE2B ee3b8d47a1e3eca421244319196af651bf7cd8735332349100bb80cb0f40306a3ad8f01867ca3bbc81322fbb886737e29114415e6a4dcab657892c6f0e7e1e2e SHA512 f439dc02bf480a173409bd1cb0f5828b6546724a51de24721d7cc38e551830d9d5f6bf6412cace499fb4c5e9e7a9ca12c07116f5f00e5541692ad5a44fa97a50 -EBUILD piper-0.7.ebuild 1393 BLAKE2B 206d8630e3c203d8900192873b2221637eb7e124d112298b7f054c384fff9e7e637fc148222b9e98cce523e466a8984ab04718732c021df92ffbe8e75702c997 SHA512 6803fb07a7e3e7874716ba28f5a31962d73ea648f1c42ae36c35c67d8a2c581564a6d4a9de5826176b580a57d7608cf8567c15c736f7fd25154f3b4e6dea4b60 +EBUILD piper-0.7-r1.ebuild 1505 BLAKE2B fa7d49c3b254523cca097faca0bb9e9d2677753b6224a45109d065ff6eec1daf7ae70a12fdea821f6d8628f4db6a5e21de04ca7a898b5df9ce2d7e6d619517e2 SHA512 60a98d1e9dd2a424ac889587d9b859e9d46d6e2fd9782dd24348fb8ab7a006e77e86a04fb0105002e517a059116bb46f8ff4815d93ec76f2d855e7439c1ae927 +EBUILD piper-9999.ebuild 1405 BLAKE2B 84dbe91fc7e295d35fdecb2e09bc37d66990b5ae545f92f1a2530855a16b401415d1ea8ee678398d1f3493cee7cf15a5845967e7c6a6b490d25f404ea734b18c SHA512 1ffb37ac0a22dd30ff7c68179fd2311f8decdb40f9d16ef39e58e738c342188c3f1bc40d0010a56d83420ab74302384db8a3619b6ddf549180469474623ddda6 MISC metadata.xml 1076 BLAKE2B 4c00bb84f4267ec8cad1f915ca0ed6ef35144aa8039eb8fde7a0674dde5320eb29ffc0ed840dd8dcf68af5663ab9816e779f05b492863bdc73305e878cf90e71 SHA512 44c9ef8d2171a168a116425d05832b58bd8490348e00d3d875fca2a957008cbc154fb7b66add99a4b1ff323aaf4cca716e25d47e3376b12188c85c67971ee70e diff --git a/app-misc/piper/piper-0.7.ebuild b/app-misc/piper/piper-0.7-r1.ebuild index cdf5ecea26b3..e4a385f02dd2 100644 --- a/app-misc/piper/piper-0.7.ebuild +++ b/app-misc/piper/piper-0.7-r1.ebuild @@ -9,11 +9,17 @@ 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" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/libratbag/piper.git" +else + SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64" IUSE="test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RESTRICT="!test? ( test )" diff --git a/app-misc/piper/piper-9999.ebuild b/app-misc/piper/piper-9999.ebuild new file mode 100644 index 000000000000..108c83fbd968 --- /dev/null +++ b/app-misc/piper/piper-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit meson python-single-r1 xdg + +DESCRIPTION="GTK application to configure gaming devices" +HOMEPAGE="https://github.com/libratbag/piper" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/libratbag/piper.git" +else + SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +BDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/lxml[${PYTHON_USEDEP}] + ') + virtual/pkgconfig + test? ( + $(python_gen_cond_dep ' + dev-python/flake8[${PYTHON_USEDEP}] + ') + dev-libs/appstream + ) +" +RDEPEND=" + ${PYTHON_DEPS} + dev-libs/gobject-introspection + >=dev-libs/libratbag-0.14 + gnome-base/librsvg[introspection] + x11-libs/gdk-pixbuf[introspection] + x11-libs/gtk+:3[introspection] + $(python_gen_cond_dep ' + dev-python/evdev[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] + ') +" +DEPEND=" + ${RDEPEND} + dev-libs/libevdev + virtual/libudev +" + +src_configure() { + python_setup + meson_src_configure +} + +src_install() { + meson_src_install + python_optimize + python_fix_shebang "${ED}"/usr/bin/ +} |