mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
gui-apps/eww: drop 0.5.0, add 0.5.0-r1
* improve how features are enable using cargo.eclass * fix SRC_URI 0.5.0 * improving src_unpack (not sure is really need but just to be safe) * closing old bug of 0.4.0 since was drop Closes: https://bugs.gentoo.org/925317 Closes: https://bugs.gentoo.org/925426 Closes: https://bugs.gentoo.org/884457 Closes: https://bugs.gentoo.org/884455 Closes: https://bugs.gentoo.org/877675 Closes: https://bugs.gentoo.org/863095 Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
@@ -305,24 +305,16 @@ if [[ "${PV}" == 9999 ]]; then
|
|||||||
EGIT_REPO_URI="https://github.com/elkowar/${PN}.git"
|
EGIT_REPO_URI="https://github.com/elkowar/${PN}.git"
|
||||||
else
|
else
|
||||||
SRC_URI="
|
SRC_URI="
|
||||||
https://github.com/elkowar/${PV}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
https://github.com/elkowar/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
${CARGO_CRATE_URIS}
|
${CARGO_CRATE_URIS}
|
||||||
"
|
"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="
|
LICENSE="
|
||||||
Apache-2.0
|
|
||||||
|| ( Apache-2.0 MIT )
|
|
||||||
|| ( Apache-2.0 BSL-1.1 )
|
|
||||||
|| ( Artistic-2 CC0-1.0 )
|
|
||||||
BSD
|
|
||||||
CC0-1.0
|
|
||||||
ISC
|
|
||||||
MIT
|
MIT
|
||||||
|| ( MIT Unlicense )
|
|
||||||
"
|
"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="X wayland"
|
IUSE="X wayland"
|
||||||
REQUIRED_USE="|| ( X wayland )"
|
REQUIRED_USE="|| ( X wayland )"
|
||||||
|
|
||||||
@@ -346,11 +338,26 @@ RDEPEND="
|
|||||||
|
|
||||||
QA_FLAGS_IGNORED="usr/bin/.*"
|
QA_FLAGS_IGNORED="usr/bin/.*"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
|
git-r3_src_unpack
|
||||||
|
cargo_live_src_unpack
|
||||||
|
else
|
||||||
|
cargo_src_unpack
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myfeatures=(
|
||||||
|
$(usev X x11)
|
||||||
|
$(usev wayland wayland)
|
||||||
|
)
|
||||||
|
cargo_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
use X && features="--no-default-features --features=x11"
|
cargo_gen_config
|
||||||
use wayland && features="--no-default-features --features=wayland"
|
cargo_src_compile
|
||||||
use X && use wayland && features="--no-default-features --features=wayland,x11"
|
|
||||||
cargo_src_compile ${features}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2022-2024 Gentoo Authors
|
# Copyright 2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@@ -305,22 +305,14 @@ if [[ "${PV}" == 9999 ]]; then
|
|||||||
EGIT_REPO_URI="https://github.com/elkowar/${PN}.git"
|
EGIT_REPO_URI="https://github.com/elkowar/${PN}.git"
|
||||||
else
|
else
|
||||||
SRC_URI="
|
SRC_URI="
|
||||||
https://github.com/elkowar/${PV}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
https://github.com/elkowar/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
${CARGO_CRATE_URIS}
|
${CARGO_CRATE_URIS}
|
||||||
"
|
"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="
|
LICENSE="
|
||||||
Apache-2.0
|
|
||||||
|| ( Apache-2.0 MIT )
|
|
||||||
|| ( Apache-2.0 BSL-1.1 )
|
|
||||||
|| ( Artistic-2 CC0-1.0 )
|
|
||||||
BSD
|
|
||||||
CC0-1.0
|
|
||||||
ISC
|
|
||||||
MIT
|
MIT
|
||||||
|| ( MIT Unlicense )
|
|
||||||
"
|
"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="X wayland"
|
IUSE="X wayland"
|
||||||
@@ -346,11 +338,26 @@ RDEPEND="
|
|||||||
|
|
||||||
QA_FLAGS_IGNORED="usr/bin/.*"
|
QA_FLAGS_IGNORED="usr/bin/.*"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
|
git-r3_src_unpack
|
||||||
|
cargo_live_src_unpack
|
||||||
|
else
|
||||||
|
cargo_src_unpack
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myfeatures=(
|
||||||
|
$(usev X x11)
|
||||||
|
$(usev wayland wayland)
|
||||||
|
)
|
||||||
|
cargo_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
use X && features="--no-default-features --features=x11"
|
cargo_gen_config
|
||||||
use wayland && features="--no-default-features --features=wayland"
|
cargo_src_compile
|
||||||
use X && use wayland && features="--no-default-features --features=wayland,x11"
|
|
||||||
cargo_src_compile ${features}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
|||||||
Reference in New Issue
Block a user