commit:     165f4a0fbf48bee9d9f45cc068bc4b6d5d81a9e7
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Jan  2 11:21:52 2024 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Jan  2 11:40:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=165f4a0f

gui-libs/xdg-desktop-portal-hyprland: add 9999
* add me as proxy mantainer

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 gui-libs/xdg-desktop-portal-hyprland/metadata.xml  |  4 ++++
 .../xdg-desktop-portal-hyprland-1.1.0.ebuild       |  2 +-
 .../xdg-desktop-portal-hyprland-1.2.2-r1.ebuild    | 27 ++++++++++++++--------
 .../xdg-desktop-portal-hyprland-1.2.5-r1.ebuild    | 27 ++++++++++++++--------
 .../xdg-desktop-portal-hyprland-1.2.6.ebuild       | 27 ++++++++++++++--------
 ...ild => xdg-desktop-portal-hyprland-9999.ebuild} | 27 ++++++++++++++--------
 6 files changed, 77 insertions(+), 37 deletions(-)

diff --git a/gui-libs/xdg-desktop-portal-hyprland/metadata.xml 
b/gui-libs/xdg-desktop-portal-hyprland/metadata.xml
index f7b6f2b032..9155c374f8 100644
--- a/gui-libs/xdg-desktop-portal-hyprland/metadata.xml
+++ b/gui-libs/xdg-desktop-portal-hyprland/metadata.xml
@@ -9,6 +9,10 @@
                <email>[email protected]</email>
                <name>Mia Neufeld</name>
        </maintainer>
+       <maintainer type="person">
+               <name>Gonçalo Negrier Duarte</name>
+               <email>[email protected]</email>
+       </maintainer>
        <upstream>
                <doc 
lang="en">https://wiki.hyprland.org/hyprland-wiki/pages/Useful-Utilities/Hyprland-desktop-portal/</doc>
                <remote-id 
type="github">hyprwm/xdg-desktop-portal-hyprland</remote-id>

diff --git 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.1.0.ebuild 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.1.0.ebuild
index 9c210b772f..2cee528f16 100644
--- 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.1.0.ebuild
+++ 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.1.0.ebuild
@@ -12,9 +12,9 @@ if [[ ${PV} == 9999 ]]; then
        
EGIT_REPO_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland.git";
        inherit git-r3
 else
-       KEYWORDS="~amd64"
        
SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
                -> xdg-desktop-hyprland-${PV}.tar.gz"
+       KEYWORDS="~amd64"
 fi
 
 LICENSE="MIT"

diff --git 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2-r1.ebuild
 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2-r1.ebuild
index 4c9eb4dc37..f01109cf60 100644
--- 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2-r1.ebuild
+++ 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2-r1.ebuild
@@ -8,12 +8,17 @@ inherit systemd cmake toolchain-funcs
 DESCRIPTION="xdg-desktop-portal backend for hyprland"
 HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland";
 
-KEYWORDS="~amd64"
-PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
-SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
-       -> xdg-desktop-hyprland-${PV}.tar.gz
-https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
-       -> proto-subproject-${PV}.tar.gz"
+if [[ ${PV} == 9999 ]]; then
+       
EGIT_REPO_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland.git";
+       inherit git-r3
+else
+       PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
+       
SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
+               -> xdg-desktop-hyprland-${PV}.tar.gz
+       
https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
+               -> proto-subproject-${PV}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
@@ -67,9 +72,13 @@ pkg_setup() {
 }
 
 src_unpack() {
-       default
-       rmdir "${S}/subprojects/hyprland-protocols" || die
-       mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       if [[ ${PV} == 9999 ]]; then
+               git-r3_src_unpack
+       else
+               default
+               rmdir "${S}/subprojects/hyprland-protocols" || die
+               mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       fi
 }
 
 src_prepare() {

diff --git 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5-r1.ebuild
 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5-r1.ebuild
index a80f565359..17ca661889 100644
--- 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5-r1.ebuild
+++ 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5-r1.ebuild
@@ -8,12 +8,17 @@ inherit systemd cmake toolchain-funcs
 DESCRIPTION="xdg-desktop-portal backend for hyprland"
 HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland";
 
-KEYWORDS="~amd64"
-PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
-SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
-       -> xdg-desktop-hyprland-${PV}.tar.gz
-https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
-       -> proto-subproject-${PV}.tar.gz"
+if [[ ${PV} == 9999 ]]; then
+       
EGIT_REPO_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland.git";
+       inherit git-r3
+else
+       PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
+       
SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
+               -> xdg-desktop-hyprland-${PV}.tar.gz
+       
https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
+               -> proto-subproject-${PV}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
@@ -67,9 +72,13 @@ pkg_setup() {
 }
 
 src_unpack() {
-       default
-       rmdir "${S}/subprojects/hyprland-protocols" || die
-       mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       if [[ ${PV} == 9999 ]]; then
+               git-r3_src_unpack
+       else
+               default
+               rmdir "${S}/subprojects/hyprland-protocols" || die
+               mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       fi
 }
 
 src_prepare() {

diff --git 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.6.ebuild 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.6.ebuild
index d32db50ddc..0a6bf7fd01 100644
--- 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.6.ebuild
+++ 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.6.ebuild
@@ -8,12 +8,17 @@ inherit systemd cmake toolchain-funcs
 DESCRIPTION="xdg-desktop-portal backend for hyprland"
 HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland";
 
-KEYWORDS="~amd64"
-PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
-SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
-       -> xdg-desktop-hyprland-${PV}.tar.gz
-https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
-       -> proto-subproject-${PV}.tar.gz"
+if [[ ${PV} == 9999 ]]; then
+       
EGIT_REPO_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland.git";
+       inherit git-r3
+else
+       PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
+       
SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
+               -> xdg-desktop-hyprland-${PV}.tar.gz
+       
https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
+               -> proto-subproject-${PV}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
@@ -67,9 +72,13 @@ pkg_setup() {
 }
 
 src_unpack() {
-       default
-       rmdir "${S}/subprojects/hyprland-protocols" || die
-       mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       if [[ ${PV} == 9999 ]]; then
+               git-r3_src_unpack
+       else
+               default
+               rmdir "${S}/subprojects/hyprland-protocols" || die
+               mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       fi
 }
 
 src_prepare() {

diff --git 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.6.ebuild 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild
similarity index 78%
copy from 
gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.6.ebuild
copy to 
gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild
index d32db50ddc..0a6bf7fd01 100644
--- 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.6.ebuild
+++ 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild
@@ -8,12 +8,17 @@ inherit systemd cmake toolchain-funcs
 DESCRIPTION="xdg-desktop-portal backend for hyprland"
 HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland";
 
-KEYWORDS="~amd64"
-PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
-SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
-       -> xdg-desktop-hyprland-${PV}.tar.gz
-https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
-       -> proto-subproject-${PV}.tar.gz"
+if [[ ${PV} == 9999 ]]; then
+       
EGIT_REPO_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland.git";
+       inherit git-r3
+else
+       PROTO_COMMIT="4d29e48433270a2af06b8bc711ca1fe5109746cd"
+       
SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz
 \
+               -> xdg-desktop-hyprland-${PV}.tar.gz
+       
https://github.com/hyprwm/hyprland-protocols/archive/${PROTO_COMMIT}.tar.gz \
+               -> proto-subproject-${PV}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
@@ -67,9 +72,13 @@ pkg_setup() {
 }
 
 src_unpack() {
-       default
-       rmdir "${S}/subprojects/hyprland-protocols" || die
-       mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       if [[ ${PV} == 9999 ]]; then
+               git-r3_src_unpack
+       else
+               default
+               rmdir "${S}/subprojects/hyprland-protocols" || die
+               mv "hyprland-protocols-${PROTO_COMMIT}" 
"${S}/subprojects/hyprland-protocols" || die
+       fi
 }
 
 src_prepare() {

Reply via email to