gui-apps/way-displays: fix style, add 9999

Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2025-11-03 13:04:36 -03:00
parent 9e17c06c89
commit af267b371a
2 changed files with 60 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,11 +7,17 @@ inherit toolchain-funcs
DESCRIPTION="Auto Manage Your Wayland Displays"
HOMEPAGE="https://github.com/alex-courtis/way-displays"
SRC_URI="https://github.com/alex-courtis/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/alex-courtis/way-displays.git"
else
SRC_URI="https://github.com/alex-courtis/way-displays/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-libs/wayland
@@ -42,6 +48,4 @@ src_install() {
PREFIX_ETC="${EPREFIX}" \
ROOT_ETC="${EPREFIX}/etc" \
install
einstalldocs
}

View File

@@ -0,0 +1,51 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Auto Manage Your Wayland Displays"
HOMEPAGE="https://github.com/alex-courtis/way-displays"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/alex-courtis/way-displays.git"
else
SRC_URI="https://github.com/alex-courtis/way-displays/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
DEPEND="
dev-libs/wayland
dev-cpp/yaml-cpp:=
dev-libs/libinput:=
virtual/libudev:=
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-util/wayland-scanner
virtual/pkgconfig
"
src_compile() {
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
PREFIX="${EPREFIX}/usr" \
PREFIX_ETC="${EPREFIX}" \
ROOT_ETC="${EPREFIX}/etc" \
VERSION="${PV}"
}
src_install() {
emake \
DESTDIR="${D}" \
PREFIX="${EPREFIX}/usr" \
PREFIX_ETC="${EPREFIX}" \
ROOT_ETC="${EPREFIX}/etc" \
install
}