[gentoo-commits] repo/proj/guru:master commit in: dev-python/pyclip/

2024-03-21 Thread Julien Roy
commit: 8ff56936cb29c996b041d43c0f11324cadedc604
Author: Esteve Varela Colominas  gmail  com>
AuthorDate: Thu Mar 21 21:18:53 2024 +
Commit: Julien Roy  jroy  ca>
CommitDate: Thu Mar 21 22:10:44 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8ff56936

dev-python/pyclip: Make DOCS an array

Signed-off-by: Esteve Varela Colominas  gmail.com>

 dev-python/pyclip/pyclip-0.7.0-r1.ebuild | 6 --
 dev-python/pyclip/pyclip-.ebuild | 6 --
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/dev-python/pyclip/pyclip-0.7.0-r1.ebuild 
b/dev-python/pyclip/pyclip-0.7.0-r1.ebuild
index 85ade02ebc..88d86ecd77 100644
--- a/dev-python/pyclip/pyclip-0.7.0-r1.ebuild
+++ b/dev-python/pyclip/pyclip-0.7.0-r1.ebuild
@@ -22,16 +22,18 @@ HOMEPAGE="https://pypi.org/project/pyclip/;
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="wayland +X"
+REQUIRED_USE="|| ( wayland X )"
+
 # Needs a working xorg/wayland setup
 RESTRICT="test"
-DOCS="${S}/docs/README.md"
-REQUIRED_USE="|| ( wayland X )"
 
 RDEPEND="
wayland? ( gui-apps/wl-clipboard )
X? ( x11-misc/xclip )
 "
 
+DOCS=( docs/README.md )
+
 src_prepare() {
# Clipboard detection should respect USE flags
if use wayland && ! use X; then

diff --git a/dev-python/pyclip/pyclip-.ebuild 
b/dev-python/pyclip/pyclip-.ebuild
index 85ade02ebc..88d86ecd77 100644
--- a/dev-python/pyclip/pyclip-.ebuild
+++ b/dev-python/pyclip/pyclip-.ebuild
@@ -22,16 +22,18 @@ HOMEPAGE="https://pypi.org/project/pyclip/;
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="wayland +X"
+REQUIRED_USE="|| ( wayland X )"
+
 # Needs a working xorg/wayland setup
 RESTRICT="test"
-DOCS="${S}/docs/README.md"
-REQUIRED_USE="|| ( wayland X )"
 
 RDEPEND="
wayland? ( gui-apps/wl-clipboard )
X? ( x11-misc/xclip )
 "
 
+DOCS=( docs/README.md )
+
 src_prepare() {
# Clipboard detection should respect USE flags
if use wayland && ! use X; then



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pyclip/

2024-02-19 Thread Julien Roy
commit: 36dc547f962382ded195530b6d1d45c13c0b6bac
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon Feb 19 21:54:04 2024 +
Commit: Julien Roy  jroy  ca>
CommitDate: Mon Feb 19 21:58:40 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=36dc547f

dev-python/pyclip: clipboard detection should respect USE flags

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pyclip/pyclip-0.7.0-r1.ebuild | 51 
 1 file changed, 51 insertions(+)

diff --git a/dev-python/pyclip/pyclip-0.7.0-r1.ebuild 
b/dev-python/pyclip/pyclip-0.7.0-r1.ebuild
new file mode 100644
index 00..85ade02ebc
--- /dev/null
+++ b/dev-python/pyclip/pyclip-0.7.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+DISTUTILS_USE_PEP517="setuptools"
+
+inherit distutils-r1
+
+if [[ ${PV} ==  ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/spyoungtech/pyclip.git;
+else
+   SRC_URI="https://github.com/spyoungtech/pyclip/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+DESCRIPTION="Python clipboard module"
+HOMEPAGE="https://pypi.org/project/pyclip/;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="wayland +X"
+# Needs a working xorg/wayland setup
+RESTRICT="test"
+DOCS="${S}/docs/README.md"
+REQUIRED_USE="|| ( wayland X )"
+
+RDEPEND="
+   wayland? ( gui-apps/wl-clipboard )
+   X? ( x11-misc/xclip )
+"
+
+src_prepare() {
+   # Clipboard detection should respect USE flags
+   if use wayland && ! use X; then
+   sed -ie "/linux':/s/elif .*/elif False:/" pyclip/util.py || die
+   elif ! use wayland && use X; then
+   sed -ie "/WAYLAND/s/elif .*/elif False:/" pyclip/util.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+pkg_postinst() {
+   if use wayland && use X; then
+   elog "If you wish to use the xclip backend over the 
wl-clipboard backend,"
+   elog "unset the WAYLAND_DISPLAY environment variable or 
consider"
+   elog "installing ${CATEGORY}/${PN}[-wayland,X] instead."
+   fi
+}



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pyclip/

2024-02-19 Thread Julien Roy
commit: 387f0268019787ae17a476e6ef43267aab1d5e6b
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon Feb 19 21:57:21 2024 +
Commit: Julien Roy  jroy  ca>
CommitDate: Mon Feb 19 21:58:45 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=387f0268

dev-python/pyclip: sync live ebuild

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pyclip/pyclip-.ebuild | 21 -
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/dev-python/pyclip/pyclip-.ebuild 
b/dev-python/pyclip/pyclip-.ebuild
index 5db126b6c0..85ade02ebc 100644
--- a/dev-python/pyclip/pyclip-.ebuild
+++ b/dev-python/pyclip/pyclip-.ebuild
@@ -21,7 +21,8 @@ DESCRIPTION="Python clipboard module"
 HOMEPAGE="https://pypi.org/project/pyclip/;
 LICENSE="Apache-2.0"
 SLOT="0"
-IUSE="wayland X"
+IUSE="wayland +X"
+# Needs a working xorg/wayland setup
 RESTRICT="test"
 DOCS="${S}/docs/README.md"
 REQUIRED_USE="|| ( wayland X )"
@@ -30,3 +31,21 @@ RDEPEND="
wayland? ( gui-apps/wl-clipboard )
X? ( x11-misc/xclip )
 "
+
+src_prepare() {
+   # Clipboard detection should respect USE flags
+   if use wayland && ! use X; then
+   sed -ie "/linux':/s/elif .*/elif False:/" pyclip/util.py || die
+   elif ! use wayland && use X; then
+   sed -ie "/WAYLAND/s/elif .*/elif False:/" pyclip/util.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+pkg_postinst() {
+   if use wayland && use X; then
+   elog "If you wish to use the xclip backend over the 
wl-clipboard backend,"
+   elog "unset the WAYLAND_DISPLAY environment variable or 
consider"
+   elog "installing ${CATEGORY}/${PN}[-wayland,X] instead."
+   fi
+}



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pyclip/

2024-02-19 Thread Julien Roy
commit: 7d5dac8d98444a0adffb848f25267f83749900fc
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon Feb 19 21:56:48 2024 +
Commit: Julien Roy  jroy  ca>
CommitDate: Mon Feb 19 21:58:45 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d5dac8d

dev-python/pyclip: drop 0.5.4, 0.6.0, 0.7.0

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pyclip/Manifest|  2 --
 dev-python/pyclip/pyclip-0.5.4.ebuild | 28 
 dev-python/pyclip/pyclip-0.6.0.ebuild | 29 -
 dev-python/pyclip/pyclip-0.7.0.ebuild | 32 
 4 files changed, 91 deletions(-)

diff --git a/dev-python/pyclip/Manifest b/dev-python/pyclip/Manifest
index a21958c87b..4905f75332 100644
--- a/dev-python/pyclip/Manifest
+++ b/dev-python/pyclip/Manifest
@@ -1,3 +1 @@
-DIST pyclip-0.5.4.gh.tar.gz 17056 BLAKE2B 
e1c29dda7496086cca4782d13fbca4dff7157ef0fdb467e7472ee1e531e53d5d1b1577bfbc3cea30f80d88def20ed34ac71b7a90e2f1728e2cdd9937ce4f2528
 SHA512 
c0ec789ac7b13e34d9ad91006b3b6369d552d0b79b8fc7de93f4817b0540ca889238a4bbb8ee0ac0b573d644822982f99a3ca2562dc3091440441e8d9c2361dc
-DIST pyclip-0.6.0.gh.tar.gz 17148 BLAKE2B 
eb67f5f832f80d69ac985a9c16fd1e01edf016c278fc48329af81aa48a98f634835ba018a4d1a278a4117e9550f9d09a2776c353d7a37c77dc3d1f146a7d3af2
 SHA512 
3666d187fd2a0d107197c4bc9fab9e8e248cdd8607945470b622f1ebeaba7deaf3b30dd2570b36ef82fd5fd729aebbd73da85bc51f1696652ed3ef091e96368f
 DIST pyclip-0.7.0.gh.tar.gz 17555 BLAKE2B 
281a2dacd82d7501e01750134d82fc0b66ac1d41a631b9573160262c94cfb97ad463036e8ec523674580fdfb71849175e58836530d761462a72ba9ba3f2fd618
 SHA512 
64849befe020b0ac38aa8ed93ceb7fb275112aa49ae527fc54916ea591e09ce5a1a669d8f68083b098112a90fd36f71d2abeef6c3a8908e6cde20f04b0273877

diff --git a/dev-python/pyclip/pyclip-0.5.4.ebuild 
b/dev-python/pyclip/pyclip-0.5.4.ebuild
deleted file mode 100644
index 8172998232..00
--- a/dev-python/pyclip/pyclip-0.5.4.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_USE_SETUPTOOLS=bdepend
-
-inherit distutils-r1
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/spyoungtech/pyclip.git;
-else
-   SRC_URI="https://github.com/spyoungtech/pyclip/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Python clipboard module"
-HOMEPAGE="https://pypi.org/project/pyclip/;
-LICENSE="Apache-2.0"
-SLOT="0"
-RESTRICT="test"
-DOCS="${S}/docs/README.md"
-
-RDEPEND="
-   x11-misc/xclip
-"

diff --git a/dev-python/pyclip/pyclip-0.6.0.ebuild 
b/dev-python/pyclip/pyclip-0.6.0.ebuild
deleted file mode 100644
index 80850319ac..00
--- a/dev-python/pyclip/pyclip-0.6.0.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_USE_SETUPTOOLS=bdepend
-
-inherit distutils-r1
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/spyoungtech/pyclip.git;
-else
-   SRC_URI="https://github.com/spyoungtech/pyclip/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Python clipboard module"
-HOMEPAGE="https://pypi.org/project/pyclip/;
-LICENSE="Apache-2.0"
-SLOT="0"
-RESTRICT="test"
-DOCS="${S}/docs/README.md"
-
-RDEPEND="
-   gui-apps/wl-clipboard
-   x11-misc/xclip
-"

diff --git a/dev-python/pyclip/pyclip-0.7.0.ebuild 
b/dev-python/pyclip/pyclip-0.7.0.ebuild
deleted file mode 100644
index 5db126b6c0..00
--- a/dev-python/pyclip/pyclip-0.7.0.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-DISTUTILS_USE_PEP517="setuptools"
-
-inherit distutils-r1
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/spyoungtech/pyclip.git;
-else
-   SRC_URI="https://github.com/spyoungtech/pyclip/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-fi
-
-DESCRIPTION="Python clipboard module"
-HOMEPAGE="https://pypi.org/project/pyclip/;
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE="wayland X"
-RESTRICT="test"
-DOCS="${S}/docs/README.md"
-REQUIRED_USE="|| ( wayland X )"
-
-RDEPEND="
-   wayland? ( gui-apps/wl-clipboard )
-   X? ( x11-misc/xclip )
-"



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pyclip/

2022-12-20 Thread Haelwenn Monnier
commit: 7c0e9a37c5cef38cfd6250a28d6c159302d23127
Author: Denis Reva  gmail  com>
AuthorDate: Mon Dec 19 13:55:34 2022 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Mon Dec 19 13:55:34 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7c0e9a37

dev-python/pyclip: Updated  version

Signed-off-by: Denis Reva  gmail.com>

 dev-python/pyclip/pyclip-.ebuild | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/dev-python/pyclip/pyclip-.ebuild 
b/dev-python/pyclip/pyclip-.ebuild
index 8eb8b2e96..bdc064f8e 100644
--- a/dev-python/pyclip/pyclip-.ebuild
+++ b/dev-python/pyclip/pyclip-.ebuild
@@ -4,7 +4,8 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8..11} )
-DISTUTILS_USE_SETUPTOOLS=bdepend
+
+DISTUTILS_USE_PEP517="setuptools"
 
 inherit distutils-r1
 
@@ -13,19 +14,21 @@ if [[ ${PV} ==  ]]; then
EGIT_REPO_URI="https://github.com/spyoungtech/pyclip.git;
 else
SRC_URI="https://github.com/spyoungtech/pyclip/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64"
+   KEYWORDS="~amd64 ~arm ~arm64 ~x86"
 fi
 
 DESCRIPTION="Python clipboard module"
 HOMEPAGE="https://pypi.org/project/pyclip/;
 LICENSE="Apache-2.0"
 SLOT="0"
+IUSE="wayland X"
 RESTRICT="test"
 DOCS="${S}/docs/README.md"
+REQUIRED_USE="|| ( wayland X )"
 
 DEPEND=""
 RDEPEND="
-   gui-apps/wl-clipboard
-   x11-misc/xclip
+   wayland? ( gui-apps/wl-clipboard )
+   X? ( x11-misc/xclip )
 "
 BDEPEND=""



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pyclip/

2022-12-20 Thread Haelwenn Monnier
commit: 56b0807bb2b15d325c4222829922812e79fc6d25
Author: Denis Reva  gmail  com>
AuthorDate: Mon Dec 19 13:48:05 2022 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Mon Dec 19 13:48:54 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=56b0807b

dev-python/pyclip: New version 0.7.0, added use flags for X and wayland (useful 
for wayland-only systems)

Signed-off-by: Denis Reva  gmail.com>

 dev-python/pyclip/Manifest|  1 +
 dev-python/pyclip/pyclip-0.7.0.ebuild | 34 ++
 2 files changed, 35 insertions(+)

diff --git a/dev-python/pyclip/Manifest b/dev-python/pyclip/Manifest
index 0d27b94a5..c965fff81 100644
--- a/dev-python/pyclip/Manifest
+++ b/dev-python/pyclip/Manifest
@@ -1,2 +1,3 @@
 DIST pyclip-0.5.4.tar.gz 17056 BLAKE2B 
e1c29dda7496086cca4782d13fbca4dff7157ef0fdb467e7472ee1e531e53d5d1b1577bfbc3cea30f80d88def20ed34ac71b7a90e2f1728e2cdd9937ce4f2528
 SHA512 
c0ec789ac7b13e34d9ad91006b3b6369d552d0b79b8fc7de93f4817b0540ca889238a4bbb8ee0ac0b573d644822982f99a3ca2562dc3091440441e8d9c2361dc
 DIST pyclip-0.6.0.tar.gz 17148 BLAKE2B 
eb67f5f832f80d69ac985a9c16fd1e01edf016c278fc48329af81aa48a98f634835ba018a4d1a278a4117e9550f9d09a2776c353d7a37c77dc3d1f146a7d3af2
 SHA512 
3666d187fd2a0d107197c4bc9fab9e8e248cdd8607945470b622f1ebeaba7deaf3b30dd2570b36ef82fd5fd729aebbd73da85bc51f1696652ed3ef091e96368f
+DIST pyclip-0.7.0.tar.gz 17555 BLAKE2B 
281a2dacd82d7501e01750134d82fc0b66ac1d41a631b9573160262c94cfb97ad463036e8ec523674580fdfb71849175e58836530d761462a72ba9ba3f2fd618
 SHA512 
64849befe020b0ac38aa8ed93ceb7fb275112aa49ae527fc54916ea591e09ce5a1a669d8f68083b098112a90fd36f71d2abeef6c3a8908e6cde20f04b0273877

diff --git a/dev-python/pyclip/pyclip-0.7.0.ebuild 
b/dev-python/pyclip/pyclip-0.7.0.ebuild
new file mode 100644
index 0..bdc064f8e
--- /dev/null
+++ b/dev-python/pyclip/pyclip-0.7.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+DISTUTILS_USE_PEP517="setuptools"
+
+inherit distutils-r1
+
+if [[ ${PV} ==  ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/spyoungtech/pyclip.git;
+else
+   SRC_URI="https://github.com/spyoungtech/pyclip/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+DESCRIPTION="Python clipboard module"
+HOMEPAGE="https://pypi.org/project/pyclip/;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="wayland X"
+RESTRICT="test"
+DOCS="${S}/docs/README.md"
+REQUIRED_USE="|| ( wayland X )"
+
+DEPEND=""
+RDEPEND="
+   wayland? ( gui-apps/wl-clipboard )
+   X? ( x11-misc/xclip )
+"
+BDEPEND=""



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pyclip/

2022-05-23 Thread Haelwenn Monnier
commit: f0c1b368bfc72cab6f453a7aecedcdd55b6bbf18
Author: Tony Olagbaiye  fron  io>
AuthorDate: Thu May 19 20:58:09 2022 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Thu May 19 20:58:09 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f0c1b368

dev-python/pyclip: update copyright

Signed-off-by: Tony Olagbaiye  fron.io>

 dev-python/pyclip/pyclip-0.5.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pyclip/pyclip-0.5.4.ebuild 
b/dev-python/pyclip/pyclip-0.5.4.ebuild
index e304a97a4..ee9f89570 100644
--- a/dev-python/pyclip/pyclip-0.5.4.ebuild
+++ b/dev-python/pyclip/pyclip-0.5.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7