From 5cc0ecf67f636dcd3f83fe5638aa67234f81ba2a Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 14 May 2020 15:06:11 +0200 Subject: [PATCH] x11-apps/inputplug: Add 0.3, fixes and EAPI=7 --- x11-apps/inputplug/Manifest | 11 +++++---- x11-apps/inputplug/inputplug-0.2.ebuild | 22 ++++++++--------- x11-apps/inputplug/inputplug-0.3.ebuild | 30 ++++++++++++++++++++++++ x11-apps/inputplug/inputplug-9999.ebuild | 24 +++++++++---------- 4 files changed, 59 insertions(+), 28 deletions(-) create mode 100644 x11-apps/inputplug/inputplug-0.3.ebuild diff --git a/x11-apps/inputplug/Manifest b/x11-apps/inputplug/Manifest index ce33583..dc92a28 100644 --- a/x11-apps/inputplug/Manifest +++ b/x11-apps/inputplug/Manifest @@ -1,5 +1,6 @@ -DIST inputplug-0.2.tar.bz2 6536 SHA256 46ce130c6c993610e148a34e8dcc0e24a33a45c98a27b8c3cf9c5c8569e5916a SHA512 c4a50341ff5948483812b971977968c2900a8ecbcc9172f6577df1d3639ab4b50ba0aeba264bf83376131b614db718a9f4a7a4f7df0a0889ba17172a40f78bcd WHIRLPOOL 8ef251dad6186e46b225a9c41aece15e57249d5c734fcfe9868fbe1ab42659e41e36a1019e1c9bdc1a4206ad63462e551303f10413c8e9e73ecb6f8952422cb5 -DIST inputplug-9999.tar.bz2 6536 SHA256 46ce130c6c993610e148a34e8dcc0e24a33a45c98a27b8c3cf9c5c8569e5916a SHA512 c4a50341ff5948483812b971977968c2900a8ecbcc9172f6577df1d3639ab4b50ba0aeba264bf83376131b614db718a9f4a7a4f7df0a0889ba17172a40f78bcd WHIRLPOOL 8ef251dad6186e46b225a9c41aece15e57249d5c734fcfe9868fbe1ab42659e41e36a1019e1c9bdc1a4206ad63462e551303f10413c8e9e73ecb6f8952422cb5 -EBUILD inputplug-0.2.ebuild 574 SHA256 11d2df88f9f0ab8ef78cf8b151681a3cb8905f9c14172a93da7e6eacdda08ad9 SHA512 90779832d417d556631c7bf261b45c032043621f8eb0abe7c8d7117bd16994a7f5d68b65db3d672f944b37b028afc41049de46e92909793591ad2398a4684733 WHIRLPOOL c043744f0704d04cbb2300a7a9b7ca1a457c12b44129de4555dc30a2bf441035eb41b84f7f08e9627d5e0cf320b567c5e74da7a96434110e5e74f54a026b7572 -EBUILD inputplug-9999.ebuild 574 SHA256 11d2df88f9f0ab8ef78cf8b151681a3cb8905f9c14172a93da7e6eacdda08ad9 SHA512 90779832d417d556631c7bf261b45c032043621f8eb0abe7c8d7117bd16994a7f5d68b65db3d672f944b37b028afc41049de46e92909793591ad2398a4684733 WHIRLPOOL c043744f0704d04cbb2300a7a9b7ca1a457c12b44129de4555dc30a2bf441035eb41b84f7f08e9627d5e0cf320b567c5e74da7a96434110e5e74f54a026b7572 -MISC metadata.xml 314 SHA256 84a7319fae6597800b3a3d51c2df925f26bbc119dec41926bc30f8b9e27994e1 SHA512 50db0dab0d4faf777650e77b29389f1ef423f5605b983771fcae2111107a4a16e0f87454b2413a7c2d2743c3c62879c70f9be114e812aab1e4dce17d9dcd8ef9 WHIRLPOOL c7fbc0956d648b939a23a3a09e516d78e32f04895d0b69b2449f70f998dc10db397066ae043d1fe261b4647650d7f64bbebbd5d73eab148d00e37709b6f6cd92 +DIST 0.2.tar.gz 5389 BLAKE2B d50816cedc7403f1ebbdc210e7af0c404b38f8bfdb5e26861494821129943354fce8ef8dd43b559910b87a77aa5b3d4f77c979aab7dbf47c7d6c4d8fb7f365a3 SHA512 24a9df849c70ce14325d37a1ea04a09d7cb108765aed972662d5f9326e3e79f8b36fab084f834280db263a83600042621883caf64a5d4511092e5ca70b6f0db7 +DIST 0.3.tar.gz 7003 BLAKE2B 2ff9143b46f0417bc74c6d24c3365d377b3a5ff910b23ab7ad07feee08574707b89e8d191bf49c852db22ff7364c7148d14be570e30f21db664bfa02118db3b6 SHA512 24afc9c8657d9f34bd4bbaaf59f646afe2e2c0f70ad2d0c2649b41716b2d1d7fe524d8adc8e6dcee3fb8f347abe108f4f0337ad3b96ec418cecc3c3b702fab39 +EBUILD inputplug-0.2.ebuild 563 BLAKE2B 42b28eb21249e0fa80db8fdb3a21d7fb7c10e0407d9f68e2898249180811ea246b0fe49a57c8c425ef46fb951032c26087496c77d33d7bbda21e69be08a420b9 SHA512 4d0647f2ef220b37c5271608c074281321447a6281643e9315cbdd326830fa9ac70fea5dbdad70f1f2180a11b9d1d97b8d3d1db2cd857a0ac9b321dc5d8a933b +EBUILD inputplug-0.3.ebuild 563 BLAKE2B 3f270f7644fa8cc21938c174e53d6af1e399177ba2a5f46f30f7ed9bbf767e272de54ab39ddde857bb52bce260e6798708b313d6f6c7d3918c79194ee6a7516a SHA512 a3173e057bfdf3b66e9e0bbf48cf3457a300bdbfd9643cf88a8a805bfa2659593ef4094cccf88d69afa19a89b8298f8e1abd1625e480941c268233f66dfe46a6 +EBUILD inputplug-9999.ebuild 563 BLAKE2B 3f270f7644fa8cc21938c174e53d6af1e399177ba2a5f46f30f7ed9bbf767e272de54ab39ddde857bb52bce260e6798708b313d6f6c7d3918c79194ee6a7516a SHA512 a3173e057bfdf3b66e9e0bbf48cf3457a300bdbfd9643cf88a8a805bfa2659593ef4094cccf88d69afa19a89b8298f8e1abd1625e480941c268233f66dfe46a6 +MISC metadata.xml 328 BLAKE2B 525c5e4ead02e289f23fdb47519a48b96ec97575f055a5423ba59fd622c6910ef2d73e102d22107dbcf0eaa87b6fb514ee21378fb66bee0daed19c83beb37f40 SHA512 9ee78984909a607ba79a35215bd3a6150b3f4abccdc3522b1c445dfe76d29cdbf5f59038b7addec51d23daa42845edc2fa105d1b590179f03aecbc2afcd84202 diff --git a/x11-apps/inputplug/inputplug-0.2.ebuild b/x11-apps/inputplug/inputplug-0.2.ebuild index f14e7dd..9d3723f 100644 --- a/x11-apps/inputplug/inputplug-0.2.ebuild +++ b/x11-apps/inputplug/inputplug-0.2.ebuild @@ -1,12 +1,17 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2020 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: $ -EAPI=5 +EAPI=7 -DESCRIPTION="A daemon monitoring XInput events" -HOMEPAGE="https://bitbucket.org/andrew_shadura/inputplug/overview" -SRC_URI="http://bitbucket.org/andrew_shadura/inputplug/get/tip.tar.bz2 -> ${P}.tar.bz2" +DESCRIPTION="XInput event monitor daemon" +HOMEPAGE="https://github.com/andrewshadura/inputplug" + +if [ "${PV}" == "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/andrewshadura/${PN}" +else + SRC_URI="https://github.com/andrewshadura/${PN}/archive/${PV}.tar.gz" +fi LICENSE="MIT" SLOT="0" @@ -19,11 +24,6 @@ DEPEND=" " RDEPEND="${DEPEND}" -src_unpack() { - default_src_unpack - mv andrew_shadura-inputplug-* ${P} -} - src_install() { dobin ${PN} doman ${PN}.1 diff --git a/x11-apps/inputplug/inputplug-0.3.ebuild b/x11-apps/inputplug/inputplug-0.3.ebuild new file mode 100644 index 0000000..2c93113 --- /dev/null +++ b/x11-apps/inputplug/inputplug-0.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="XInput event monitor daemon" +HOMEPAGE="https://github.com/andrewshadura/inputplug" + +if [ "${PV}" == "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/andrewshadura/${PN}" +else + SRC_URI="https://github.com/andrewshadura/${PN}/archive/${PV}.tar.gz" +fi + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=" + x11-libs/libXi + x11-libs/libxcb + " +RDEPEND="${DEPEND}" + +src_install() { + dobin ${PN} + doman ${PN}.1 +} diff --git a/x11-apps/inputplug/inputplug-9999.ebuild b/x11-apps/inputplug/inputplug-9999.ebuild index f14e7dd..2c93113 100644 --- a/x11-apps/inputplug/inputplug-9999.ebuild +++ b/x11-apps/inputplug/inputplug-9999.ebuild @@ -1,12 +1,17 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2020 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: $ -EAPI=5 +EAPI=7 -DESCRIPTION="A daemon monitoring XInput events" -HOMEPAGE="https://bitbucket.org/andrew_shadura/inputplug/overview" -SRC_URI="http://bitbucket.org/andrew_shadura/inputplug/get/tip.tar.bz2 -> ${P}.tar.bz2" +DESCRIPTION="XInput event monitor daemon" +HOMEPAGE="https://github.com/andrewshadura/inputplug" + +if [ "${PV}" == "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/andrewshadura/${PN}" +else + SRC_URI="https://github.com/andrewshadura/${PN}/archive/${PV}.tar.gz" +fi LICENSE="MIT" SLOT="0" @@ -15,15 +20,10 @@ IUSE="" DEPEND=" x11-libs/libXi - x11-libs/libX11 + x11-libs/libxcb " RDEPEND="${DEPEND}" -src_unpack() { - default_src_unpack - mv andrew_shadura-inputplug-* ${P} -} - src_install() { dobin ${PN} doman ${PN}.1 -- 2.39.5