diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2020-09-03 12:57:14 +0200 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2020-09-03 12:57:56 +0200 |
commit | 7f012ff20c9f10efdba59f54a06019d026d788d5 (patch) | |
tree | 0d7054d64ef03683505b1d7c193a20bf25bb333e /app-misc/razertool | |
parent | dev-perl/Test-MockObject: keyword riscv (diff) | |
download | gentoo-7f012ff20c9f10efdba59f54a06019d026d788d5.tar.gz gentoo-7f012ff20c9f10efdba59f54a06019d026d788d5.tar.bz2 gentoo-7f012ff20c9f10efdba59f54a06019d026d788d5.zip |
app-misc/razertool: fix ar call, broken symlink
Closes: https://bugs.gentoo.org/722326
Closes: https://bugs.gentoo.org/726668
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'app-misc/razertool')
-rw-r--r-- | app-misc/razertool/files/razertool-0.0.7-ar.patch | 11 | ||||
-rw-r--r-- | app-misc/razertool/razertool-0.0.7-r4.ebuild | 18 |
2 files changed, 23 insertions, 6 deletions
diff --git a/app-misc/razertool/files/razertool-0.0.7-ar.patch b/app-misc/razertool/files/razertool-0.0.7-ar.patch new file mode 100644 index 000000000000..b585205b1b92 --- /dev/null +++ b/app-misc/razertool/files/razertool-0.0.7-ar.patch @@ -0,0 +1,11 @@ +diff -Naur razertool-0.0.7.orig/configure.in razertool-0.0.7/configure.in +--- razertool-0.0.7.orig/configure.in 2006-08-13 21:57:35.000000000 +0200 ++++ razertool-0.0.7/configure.in 2020-09-03 12:53:51.991020189 +0200 +@@ -10,6 +10,7 @@ + dnl checks for programs + AC_ISC_POSIX + AC_PROG_CC ++AM_PROG_AR + AM_PROG_CC_STDC + AC_PROG_RANLIB + AC_HEADER_STDC diff --git a/app-misc/razertool/razertool-0.0.7-r4.ebuild b/app-misc/razertool/razertool-0.0.7-r4.ebuild index 916571dbd9e0..6ce2b396b524 100644 --- a/app-misc/razertool/razertool-0.0.7-r4.ebuild +++ b/app-misc/razertool/razertool-0.0.7-r4.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit eutils +inherit autotools eutils DESCRIPTION="Unofficial tool for controlling the Razer Copperhead mouse" HOMEPAGE="http://razertool.sourceforge.net/" @@ -27,17 +27,21 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS ChangeLog NEWS README ) +PATCHES=( "${FILESDIR}"/${P}-ar.patch ) + src_prepare() { default sed -i razertool.rules.example \ -e 's:ACTION=="add", ::;s:BUS=:SUBSYSTEMS=:;s:SYSFS{:ATTRS{:g' \ - || die "sed razertool.rules.example action failed" + || die # plugdev group may not exist (created by hal), default to usb sed -i razertool.rules.example \ -e 's:plugdev:usb:' \ - || die "sed razertool.rules.example plugdev failed" + || die + + eautoreconf } src_configure() { @@ -51,8 +55,10 @@ src_install() { newins razertool.rules.example 90-razertool.rules # Icon and desktop entry - dosym ../razertool/pixmaps/razertool-icon.png /usr/share/pixmaps/razertool-icon.png - make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" + if use gtk; then + dosym ../razertool/pixmaps/razertool-icon.png /usr/share/pixmaps/razertool-icon.png + make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" + fi } pkg_postinst() { |