mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
gui-apps/way-displays: fix style, add 9999
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
51
gui-apps/way-displays/way-displays-9999.ebuild
Normal file
51
gui-apps/way-displays/way-displays-9999.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user