From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/razercfg/
Date: Sat, 6 May 2017 20:25:30 +0000 (UTC) [thread overview]
Message-ID: <1494102041.6a932ef24959e63283efbc2043a6e9fd93dc8a54.mjo@gentoo> (raw)
commit: 6a932ef24959e63283efbc2043a6e9fd93dc8a54
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat May 6 19:54:08 2017 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat May 6 20:20:41 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a932ef2
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
sys-apps/razercfg/Manifest | 2 +-
.../{razercfg-0.38.ebuild => razercfg-0.39.ebuild} | 45 +++++++++++-----------
2 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/sys-apps/razercfg/Manifest b/sys-apps/razercfg/Manifest
index c30a7fd4222..243e3091441 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
similarity index 62%
rename from sys-apps/razercfg/razercfg-0.38.ebuild
rename to sys-apps/razercfg/razercfg-0.39.ebuild
index 946e89282b9..22ec48cf5ca 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
}
next reply other threads:[~2017-05-06 20:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-06 20:25 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-14 9:00 [gentoo-commits] repo/gentoo:master commit in: sys-apps/razercfg/ Arthur Zamarin
2023-10-04 19:37 Sam James
2023-05-04 4:18 Viorel Munteanu
2022-05-26 1:14 Sam James
2021-09-03 1:53 Sam James
2021-05-23 16:34 Michał Górny
2021-01-01 1:56 Michał Górny
2020-07-24 8:28 Joonas Niilola
2020-07-24 8:28 Joonas Niilola
2020-07-24 8:28 Joonas Niilola
2020-02-09 16:42 Michał Górny
2018-03-22 14:57 Andreas Sturmlechner
2017-10-16 3:34 David Seifert
2017-05-06 20:25 Michael Orlitzky
2017-04-20 16:41 David Seifert
2017-03-24 15:14 Wolfram Schlich
2016-07-07 19:48 Austin English
2016-06-11 20:39 Pacho Ramos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1494102041.6a932ef24959e63283efbc2043a6e9fd93dc8a54.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox