summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-05-06 15:54:08 -0400
committerMichael Orlitzky <mjo@gentoo.org>2017-05-06 16:20:41 -0400
commit6a932ef24959e63283efbc2043a6e9fd93dc8a54 (patch)
tree1d456d39c7069d8c3e24772cba7ec53f724bb6e5 /sys-apps/razercfg
parentsys-apps/razercfg: remove unused version 0.32. (diff)
downloadgentoo-6a932ef24959e63283efbc2043a6e9fd93dc8a54.tar.gz
gentoo-6a932ef24959e63283efbc2043a6e9fd93dc8a54.tar.bz2
gentoo-6a932ef24959e63283efbc2043a6e9fd93dc8a54.zip
sys-apps/razercfg: new version 0.39 with updated python compatibility.
This new version updates the ebuild to EAPI=6 and cleans up some minor issues in the ebuild. It also adds new PYTHON_COMPAT targets for python3_5 and python3_6 which were specifically requested. Thanks are due to two users, Perfect Gentleman and Pablo Cholaky, who submitted an updated ebuild and a patch, respectively. Gentoo-Bug: 602874 Gentoo-Bug: 614152 Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-apps/razercfg')
-rw-r--r--sys-apps/razercfg/Manifest2
-rw-r--r--sys-apps/razercfg/razercfg-0.39.ebuild (renamed from sys-apps/razercfg/razercfg-0.38.ebuild)45
2 files changed, 24 insertions, 23 deletions
diff --git a/sys-apps/razercfg/Manifest b/sys-apps/razercfg/Manifest
index c30a7fd42224..243e30914419 100644
--- a/sys-apps/razercfg/Manifest
+++ b/sys-apps/razercfg/Manifest
@@ -1,2 +1,2 @@
DIST razercfg-0.23.tar.bz2 69425 SHA256 44bdc48588c504a937d811e84a0ecb054e35d3e2e4980d7d76b3ea8c2f0d1b43 SHA512 79c795870efa960b42abc70710b4bebe793acb9e732943207ca4b34d35ba926af4877993db888829dbacedbe327324fba0ab2ef82ced1d653b4aee23e154fd8b WHIRLPOOL 11c57842daeb241d19b3546db0c4b3a98e59b565176f89227dd159f31b3037ce08130014dc35ae4db5dc81744a94a405252787b6a42c67129857f81f6eb0411c
-DIST razercfg-0.38.tar.bz2 99409 SHA256 8025a4765f2ff8e99104611e5d151f7a101b0f2692c9fc169ac237dd379bac6c SHA512 4619e19278fe97956043e2b628ed4c130b0e7ac2756a81335460cc520e0dea979fa6db3e927f414d24914409377782238a6ce9e1dba1868f6bfc34984a0ab456 WHIRLPOOL e0597d7d13d42b883f1f9294579151f30827225ca10c91bfe5de59dba12e8efecdf54b3e580296d37ab40e202a25f77a8349a5dbe64ebd47822e7f717e509d53
+DIST razercfg-0.39.tar.bz2 178142 SHA256 b8554a529fc02a05f515b56d335c326d660058d6fcdb2e3c4929b9b9dedf614d SHA512 165fee898a01b7f0086eb6705ef9f24fd8b8836025c071f7851a493181b8d193d0db70fc1731a8586de1f1c795aab4d20bb4ee8526b612c66ba3c434c6e10137 WHIRLPOOL eb5122226ad79594ea9396e141b9f7d98b52298fc09f06bcdd92be53101af6430a56864aa285c10b52ae004f734385c9155ba2d995ad661f764855e4a724ae05
diff --git a/sys-apps/razercfg/razercfg-0.38.ebuild b/sys-apps/razercfg/razercfg-0.39.ebuild
index 946e89282b93..22ec48cf5caf 100644
--- a/sys-apps/razercfg/razercfg-0.38.ebuild
+++ b/sys-apps/razercfg/razercfg-0.39.ebuild
@@ -1,13 +1,13 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
-PYTHON_COMPAT=( python3_4 )
+PYTHON_COMPAT=( python3_4 python3_5 python3_6 )
-inherit cmake-utils multilib eutils udev python-single-r1
+inherit cmake-utils multilib udev python-single-r1
-DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)"
+DESCRIPTION="Utility for advanced configuration of Razer mice"
HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html"
SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2"
@@ -29,53 +29,54 @@ DEPEND="${PYTHON_DEPS}
virtual/libusb:1"
src_prepare() {
- sed -i \
+ default
+
+ sed -i CMakeLists.txt \
-e '/udevadm control/{N;d}' \
-e '/systemctl/{N;d}' \
-e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \
-e 's:50-razer:80razer:' \
- CMakeLists.txt \
|| die "sed failed"
- sed -i \
+ sed -i librazer/CMakeLists.txt \
-e '/ldconfig/{N;d}' \
-e "s:DESTINATION lib:DESTINATION $(get_libdir):" \
- librazer/CMakeLists.txt \
|| die "sed failed"
- if use qt4; then
- sed -i \
- -e '/^Categories=/s/=.*$/=Qt;Settings/' \
- razercfg.desktop.template
- fi
+ sed -i razercfg.desktop.template \
+ -e '/^Categories=/s/=.*$/=Qt;Settings/' \
+ || die 'sed failed'
}
src_configure() {
- mycmakeargs="${mycmakeargs} -DPYTHON='${PYTHON}'"
+ mycmakeargs=( -DPYTHON="${PYTHON}" )
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
newinitd "${FILESDIR}"/razerd.init.d-r2 razerd
- dodoc README.html HACKING.html razer.conf
+ dodoc README.* HACKING.* razer.conf
if ! use qt4; then
- rm "${D}"/usr/bin/qrazercfg
- rm "${D}"/usr/share/icons/hicolor/scalable/apps/razercfg*
- rm "${D}"/usr/share/applications/razercfg.desktop
+ rm "${D}"/usr/bin/qrazercfg{,-applet} || die
+ rm "${D}"/usr/share/icons/hicolor/scalable/apps/razercfg* || die
+ rm "${D}"/usr/share/applications/razercfg.desktop || die
fi
- use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer
+ if ! use pm-utils; then
+ rm "${D}/usr/$(get_libdir)/pm-utils/sleep.d/80razer" || die
+ fi
}
pkg_postinst() {
- use udev && udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
+ if use udev ; then
+ udevadm control --reload-rules
+ udevadm trigger --subsystem-match=usb
+ fi
if [[ -e "${ROOT}"usr/bin/pyrazer.pyc ]]; then
- echo
eerror "A stale ${ROOT}usr/bin/pyrazer.pyc exists and will prevent"
eerror "the Python frontends from working until removed manually."
- echo
fi
}