diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2017-03-24 16:04:10 +0100 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2017-03-24 16:14:18 +0100 |
commit | 72326d772f2903464cd47de6fd2b2c8fa3684bdc (patch) | |
tree | a024a1d72ef122cc0f2b3c8280cfa49c4953fcb5 /sys-apps/razercfg | |
parent | dev-libs/beignet: bump to 1.3.1 (diff) | |
download | gentoo-72326d772f2903464cd47de6fd2b2c8fa3684bdc.tar.gz gentoo-72326d772f2903464cd47de6fd2b2c8fa3684bdc.tar.bz2 gentoo-72326d772f2903464cd47de6fd2b2c8fa3684bdc.zip |
sys-apps/razercfg: version bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-apps/razercfg')
-rw-r--r-- | sys-apps/razercfg/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.38.ebuild | 79 |
2 files changed, 80 insertions, 0 deletions
diff --git a/sys-apps/razercfg/Manifest b/sys-apps/razercfg/Manifest index a17fcd30a0aa..7949fad65e9a 100644 --- a/sys-apps/razercfg/Manifest +++ b/sys-apps/razercfg/Manifest @@ -1,2 +1,3 @@ DIST razercfg-0.23.tar.bz2 69425 SHA256 44bdc48588c504a937d811e84a0ecb054e35d3e2e4980d7d76b3ea8c2f0d1b43 SHA512 79c795870efa960b42abc70710b4bebe793acb9e732943207ca4b34d35ba926af4877993db888829dbacedbe327324fba0ab2ef82ced1d653b4aee23e154fd8b WHIRLPOOL 11c57842daeb241d19b3546db0c4b3a98e59b565176f89227dd159f31b3037ce08130014dc35ae4db5dc81744a94a405252787b6a42c67129857f81f6eb0411c DIST razercfg-0.32.tar.bz2 77778 SHA256 753c9b8cc60e3b5481d65d168d0d0f2737e83e2dacbbeb2684517a096064e2e1 SHA512 696baf66eec5d241918a073bd381018cb60bbccaa95e5889059e2b5f6ccc03270e1d414d947358d672cfa4a5a01a9e36e5f92d706807d6a7c2c3f8e2797d38f7 WHIRLPOOL 7761f88671cfde24ca9a705df658118bf5b69244c1fae8bf358601159203dcbd2f7774552c3fb794268e0031c4a4092c5848d6f324fb029b03551c49ba161f0a +DIST razercfg-0.38.tar.bz2 99409 SHA256 8025a4765f2ff8e99104611e5d151f7a101b0f2692c9fc169ac237dd379bac6c SHA512 4619e19278fe97956043e2b628ed4c130b0e7ac2756a81335460cc520e0dea979fa6db3e927f414d24914409377782238a6ce9e1dba1868f6bfc34984a0ab456 WHIRLPOOL e0597d7d13d42b883f1f9294579151f30827225ca10c91bfe5de59dba12e8efecdf54b3e580296d37ab40e202a25f77a8349a5dbe64ebd47822e7f717e509d53 diff --git a/sys-apps/razercfg/razercfg-0.38.ebuild b/sys-apps/razercfg/razercfg-0.38.ebuild new file mode 100644 index 000000000000..34deb45cd9fe --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.38.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python3_4 ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4 systemd +udev" + +RDEPEND="qt4? ( >=dev-python/pyside-1.2.1[${PYTHON_USEDEP}] ) + systemd? ( sys-apps/systemd ) + udev? ( virtual/udev ) + pm-utils? ( sys-power/pm-utils ) + virtual/libusb:1" + +DEPEND="virtual/pkgconfig + dev-python/setuptools[${PYTHON_USEDEP}] + virtual/libusb:1" + +src_prepare() { + sed -i \ + -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 \ + -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 +} + +src_configure() { + mycmakeargs="${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 + + 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 + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer +} + +pkg_postinst() { + use udev && udevadm control --reload-rules && udevadm trigger --subsystem-match=usb + + 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 +} |