Merge updates from master

This commit is contained in:
Repository mirror & CI
2024-06-14 09:19:05 +00:00
4 changed files with 8 additions and 98 deletions
+6
View File
@@ -33,6 +33,12 @@
#--- END OF EXAMPLES ---
# Arthur Zamarin <arthurzam@gentoo.org> (2024-06-14)
# EAPI=6, many compilation issues, upstream is gone, not maintained for
# many years.
# Removal on 2024-07-14. Bugs #934240.
sci-electronics/vbs
# Arthur Zamarin <arthurzam@gentoo.org> (2024-06-14)
# EAPI=6, dead upstream website, Gentoo is last distribution to
# package it.
+1 -1
View File
@@ -9,7 +9,7 @@ SRC_URI="http://www.geda.seul.org/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
-96
View File
@@ -1,96 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit cmake python-single-r1 systemd tmpfiles udev xdg-utils
DESCRIPTION="Utility for advanced configuration of Razer mice"
HOMEPAGE="https://bues.ch/cms/hacking/razercfg.html https://github.com/mbuesch/razer"
SRC_URI="https://bues.ch/${PN}/${P}.tar.xz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gui +udev"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}
virtual/libusb:1
"
BDEPEND="virtual/pkgconfig"
RDEPEND="${DEPEND}
gui? (
$(python_gen_cond_dep '
dev-python/PyQt5[${PYTHON_USEDEP}]
')
)
udev? ( virtual/udev )
"
PATCHES=( "${FILESDIR}/${PN}-0.39-unit-variables.patch" )
src_prepare() {
cmake_src_prepare
sed -i librazer/CMakeLists.txt \
-e '/ldconfig/{N;d}' \
-e "s:DESTINATION lib:DESTINATION $(get_libdir):" \
|| die
sed -i ui/razercfg.desktop.template \
-e '/^Categories=/s/=.*$/=Qt;Settings/' \
|| die
}
src_configure() {
local mycmakeargs=(
-DPYTHON="${PYTHON}"
-DSYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)"
-DUDEV_DIR="$(get_udevdir)"
)
RAZERCFG_PKG_BUILD=1 cmake_src_configure
}
src_install() {
RAZERCFG_PKG_BUILD=1 cmake_src_install
python_optimize
newinitd "${FILESDIR}"/razerd.init.d-r2 razerd
dodoc README.* HACKING.* razer.conf
if ! use gui; then
rm "${D}"/usr/bin/qrazercfg{,-applet} || die
rm -r "${D}"/usr/share/icons || die
rm -r "${D}"/usr/share/applications || die
fi
# sys-power/pm-utils is deprecated, so we delete related files
# (they contain a hook for resume from suspend)
# TODO: test resume from suspend
rm -r "${D}/etc/pm" || die
}
pkg_postinst() {
if use udev ; then
udevadm control --reload-rules
udevadm trigger --subsystem-match=usb
fi
xdg_icon_cache_update
tmpfiles_process razerd.conf
if [[ -e "${ROOT}/usr/bin/pyrazer.pyc" ]]; then
eerror "A stale ${ROOT}/usr/bin/pyrazer.pyc exists and will prevent"
eerror "the Python frontends from working until removed manually."
fi
}
pkg_postrm() {
xdg_icon_cache_update
}
+1 -1
View File
@@ -16,7 +16,7 @@ SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${MY_P}.tar
LICENSE="LGPL-2.1+"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv ~sparc x86"
IUSE="examples gtk-doc +introspection"
RDEPEND="