[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/files/, app-misc/razertool/
commit: 94142d520baf78952a385c000142a38c28fa499b Author: Bernard Cafarelli gentoo org> AuthorDate: Thu Jul 14 11:29:52 2022 + Commit: Bernard Cafarelli gentoo org> CommitDate: Thu Jul 14 11:49:12 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94142d52 app-misc/razertool: switch to udev eclass Also move to configure.ac, clean patches from sed, EAPI bump Closes: https://bugs.gentoo.org/854768 Signed-off-by: Bernard Cafarelli gentoo.org> app-misc/razertool/files/razertool-0.0.7-ar.patch | 11 -- .../files/razertool-0.0.7-configure.patch | 212 + .../razertool/files/razertool-0.0.7-rules.patch| 8 + ...l-0.0.7-r4.ebuild => razertool-0.0.7-r5.ebuild} | 29 ++- 4 files changed, 233 insertions(+), 27 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 deleted file mode 100644 index b585205b1b92.. --- a/app-misc/razertool/files/razertool-0.0.7-ar.patch +++ /dev/null @@ -1,11 +0,0 @@ -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.0 +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/files/razertool-0.0.7-configure.patch b/app-misc/razertool/files/razertool-0.0.7-configure.patch new file mode 100644 index ..3fed676a28b3 --- /dev/null +++ b/app-misc/razertool/files/razertool-0.0.7-configure.patch @@ -0,0 +1,212 @@ +diff -Naur razertool-0.0.7.orig/configure.ac razertool-0.0.7/configure.ac +--- razertool-0.0.7.orig/configure.ac 1970-01-01 01:00:00.0 +0100 razertool-0.0.7/configure.ac 2022-07-14 13:28:37.682934002 +0200 +@@ -0,0 +1,68 @@ ++dnl Process this file with autoconf to produce a configure script. ++ ++AC_INIT(configure.ac) ++AM_INIT_AUTOMAKE(razertool, 0.0.7) ++AM_CONFIG_HEADER(config.h) ++AM_MAINTAINER_MODE ++ ++AC_ARG_ENABLE(gtk,[AS_HELP_STRING([--disable-gtk],[Don\'t build razertool-gtk])],[enable_gtk_force=yes],[enable_gtk_force=no;enable_gtk=yes]) ++ ++dnl checks for programs ++AC_ISC_POSIX ++AC_PROG_CC ++AM_PROG_AR ++AM_PROG_CC_STDC ++AC_PROG_RANLIB ++AC_HEADER_STDC ++PKG_PROG_PKG_CONFIG ++ ++dnl checks for libraries ++PKG_CHECK_MODULES(libusb, [libusb >= 0.1.0]) ++ ++if test x$enable_gtk = xyes; then ++pkg_modules="gtk+-2.0 >= 2.8.0 librsvg-2.0 >= 2.0.0 cairo >= 1.0.0" ++PKG_CHECK_MODULES(GTKLIBS,[$pkg_modules],,[ ++ AC_MSG_RESULT([no]) ++ AC_MSG_WARN([ ++Package requirements ($pkg_modules) were not met: ++ ++$GTKLIBS_PKG_ERRORS ++ ++Consider adjusting the PKG_CONFIG_PATH environment variable if you ++installed software in a non-standard prefix. ++ ++Alternatively, you may set the environment variables GTKLIBS_CFLAGS ++and GTKLIBS_LIBS to avoid the need to call pkg-config. ++See the pkg-config man page for more details. ++]) ++ if test x$enable_gtk_force = xyes; then ++ AC_MSG_ERROR([Aborting since --enable-gtk was used]) ++ fi ++ AC_MSG_WARN([Not building razertool-gtk]) ++ enable_gtk=no ++]) ++fi ++ ++dnl i18n ++GETTEXT_PACKAGE=razertool-gtk ++AC_SUBST(GETTEXT_PACKAGE) ++ ++ALL_LINGUAS=`cat "${srcdir}/po/LINGUAS"` ++AM_GLIB_GNU_GETTEXT ++ ++dnl output ++AM_CONDITIONAL(BUILD_GTK,test x$enable_gtk = xyes) ++ ++AC_SUBST(libusb_CFLAGS) ++AC_SUBST(libusb_LIBS) ++AC_SUBST(GTKLIBS_CFLAGS) ++AC_SUBST(GTKLIBS_LIBS) ++ ++AC_OUTPUT([Makefile src/Makefile gtk/Makefile po/Makefile.in]) ++ ++if test x$enable_gtk_force != xyes && test x$enable_gtk != xyes; then ++AC_MSG_WARN([ ++ ++*** NOT BUILDING RAZERTOOL-GTK *** ++]) ++fi +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.0 +0200 razertool-0.0.7/configure.in 1970-01-01 01:00:00.0 +0100 +@@ -1,67 +0,0 @@ +-dnl Process this file with autoconf to produce a configure script. +- +-AC_INIT(configure.in) +-AM_INIT_AUTOMAKE(razertool, 0.0.7) +-AM_CONFIG_HEADER(config.h) +-AM_MAINTAINER_MODE +- +-AC_ARG_ENABLE(gtk,[AS_HELP_STRING([--disable-gtk],[Don\'t build razertool-gtk])],[enable_gtk_force=yes],[enable_gtk_force=no;enable_gtk=yes]) +- +-dnl checks for programs +-AC_ISC_POSIX +-AC_PROG_CC +-AM_PROG_CC_STDC +-AC_PROG_RANLIB +-AC_HEADER_STDC +-PKG_PROG_PKG_CONFIG +- +-dnl checks for libraries +-PKG_CHECK_MODULES(libusb, [libusb >= 0.1.0]) +- +-if test x$enable_gtk = xyes; then +-pkg_modules="gtk+-2.0 >= 2.8.0 librsvg-2.0 >= 2.0.0 cairo >= 1.0.0" +-PKG_CHECK_MODULES(GTKLIBS,[$pkg_modules],,[ +- AC_MSG_RESULT([no]) +- AC_MSG_WARN([ +-Package requirements ($pkg_modules) were not met: +- +-$GTKLIBS_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a
[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/
commit: 58a341142b9c14e1706ae7aff195d2b06e0fc2e8 Author: Bernard Cafarelli gentoo org> AuthorDate: Thu Sep 3 20:11:57 2020 + Commit: Bernard Cafarelli gentoo org> CommitDate: Thu Sep 3 20:12:48 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a34114 app-misc/razertool: also depend on glib with USE=-gtk Closes: https://bugs.gentoo.org/740226 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Bernard Cafarelli gentoo.org> app-misc/razertool/razertool-0.0.7-r4.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-misc/razertool/razertool-0.0.7-r4.ebuild b/app-misc/razertool/razertool-0.0.7-r4.ebuild index 6ce2b396b52..5255af99c27 100644 --- a/app-misc/razertool/razertool-0.0.7-r4.ebuild +++ b/app-misc/razertool/razertool-0.0.7-r4.ebuild @@ -13,10 +13,10 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gtk" -RDEPEND="virtual/libusb:0 +RDEPEND="dev-libs/glib:2 + virtual/libusb:0 gtk? ( dev-libs/atk - dev-libs/glib:2 >=gnome-base/librsvg-2.0 >=x11-libs/cairo-1.0.0 x11-libs/gdk-pixbuf
[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/, app-misc/razertool/files/
commit: 7f012ff20c9f10efdba59f54a06019d026d788d5 Author: Bernard Cafarelli gentoo org> AuthorDate: Thu Sep 3 10:57:14 2020 + Commit: Bernard Cafarelli gentoo org> CommitDate: Thu Sep 3 10:57:56 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f012ff2 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 gentoo.org> app-misc/razertool/files/razertool-0.0.7-ar.patch | 11 +++ 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 000..b585205b1b9 --- /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.0 +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 916571dbd9e..6ce2b396b52 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() {
[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/
commit: c216a1fa68d63cd9bc70acba39b9513e97c22bbe Author: Michał Górny gentoo org> AuthorDate: Thu Aug 24 11:16:04 2017 + Commit: Michał Górny gentoo org> CommitDate: Thu Aug 24 15:53:07 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c216a1fa app-misc/razertool: [QA] Use relative symlink target(s) app-misc/razertool/razertool-0.0.7-r4.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-misc/razertool/razertool-0.0.7-r4.ebuild b/app-misc/razertool/razertool-0.0.7-r4.ebuild index 37c939c3b6a..916571dbd9e 100644 --- a/app-misc/razertool/razertool-0.0.7-r4.ebuild +++ b/app-misc/razertool/razertool-0.0.7-r4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -51,7 +51,7 @@ src_install() { newins razertool.rules.example 90-razertool.rules # Icon and desktop entry - dosym /usr/share/${PN}/pixmaps/${PN}-icon.png /usr/share/pixmaps/${PN}-icon.png + dosym ../razertool/pixmaps/razertool-icon.png /usr/share/pixmaps/razertool-icon.png make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" }
[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/
commit: c449cb871a6626a32c20a70047583d87f00fa2ce Author: Lars Wendler gentoo org> AuthorDate: Fri Dec 23 13:20:30 2016 + Commit: Lars Wendler gentoo org> CommitDate: Fri Dec 23 13:20:30 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c449cb87 app-misc/razertool: Fixed email address. Package-Manager: Portage-2.3.3, Repoman-2.3.1 app-misc/razertool/metadata.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-misc/razertool/metadata.xml b/app-misc/razertool/metadata.xml index 7f5e381..314b4a2 100644 --- a/app-misc/razertool/metadata.xml +++ b/app-misc/razertool/metadata.xml @@ -2,7 +2,7 @@ http://www.gentoo.org/dtd/metadata.dtd;> - polynomia...@gentoo.org + polynomia...@gentoo.org Lars Wendler
[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/
commit: caca9c41f362a0f877fde02ae7912d60a7de4b76 Author: Lars Wendler gentoo org> AuthorDate: Mon Nov 21 14:10:24 2016 + Commit: Lars Wendler gentoo org> CommitDate: Mon Nov 21 14:15:02 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caca9c41 app-misc/razertool: Added myself as maintainer. Package-Manager: portage-2.3.2 app-misc/razertool/metadata.xml | 4 1 file changed, 4 insertions(+) diff --git a/app-misc/razertool/metadata.xml b/app-misc/razertool/metadata.xml index 99e73f1..7f5e381 100644 --- a/app-misc/razertool/metadata.xml +++ b/app-misc/razertool/metadata.xml @@ -2,6 +2,10 @@ http://www.gentoo.org/dtd/metadata.dtd;> + polynomia...@gentoo.org + Lars Wendler + + voyag...@gentoo.org Bernard Cafarelli
[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/
commit: ca3a7e1977fabcdce3378520add3f0edb81723a1 Author: Lars Wendler gentoo org> AuthorDate: Mon Nov 21 14:14:39 2016 + Commit: Lars Wendler gentoo org> CommitDate: Mon Nov 21 14:15:07 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca3a7e19 app-misc/razertool: Removed old. Package-Manager: portage-2.3.2 app-misc/razertool/razertool-0.0.7-r3.ebuild | 62 1 file changed, 62 deletions(-) diff --git a/app-misc/razertool/razertool-0.0.7-r3.ebuild b/app-misc/razertool/razertool-0.0.7-r3.ebuild deleted file mode 100644 index aac0ec2.. --- a/app-misc/razertool/razertool-0.0.7-r3.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=2 -inherit eutils - -DESCRIPTION="Unofficial tool for controlling the Razer Copperhead mouse" -HOMEPAGE="http://razertool.sourceforge.net/; -SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="gtk" - -RDEPEND="virtual/libusb:0 - gtk? ( - >=gnome-base/librsvg-2.0 - >=x11-libs/cairo-1.0.0 - >=x11-libs/gtk+-2.8.0:2 )" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -src_prepare() { - sed -i razertool.rules.example \ - -e 's:ACTION=="add", ::;s:BUS=:SUBSYSTEMS=:;s:SYSFS{:ATTRS{:g' \ - || die "sed razertool.rules.example action failed" - - # 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" -} - -src_configure() { - econf $(use_enable gtk) -} - -src_install() { - emake DESTDIR="${D}" install || die - - insinto /lib/udev/rules.d - newins razertool.rules.example 90-razertool.rules || die - - dodoc AUTHORS ChangeLog NEWS README - - # Icon and desktop entry - dosym /usr/share/${PN}/pixmaps/${PN}-icon.png /usr/share/pixmaps/${PN}-icon.png - make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" -} - -pkg_postinst() { - elog "Razer Copperhead mice need firmware version 6.20 or higher" - elog "to work properly. Running ${PN} on mice with older firmwares" - elog "might lead to random USB-disconnects." - elog "To run as non-root, add yourself to the usb group:" - elog " gpasswd -a usb" - elog "or adapt permissions/owner/group in:" - elog " /etc/udev/rules.d/90-razertool.rules" - elog "Then unplug and plug in the mouse." -}
[gentoo-commits] repo/gentoo:master commit in: app-misc/razertool/
commit: f20a383e3e2605086bf2d64fac1a724de484f095 Author: Lars Wendler gentoo org> AuthorDate: Mon Nov 21 14:14:17 2016 + Commit: Lars Wendler gentoo org> CommitDate: Mon Nov 21 14:15:05 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f20a383e app-misc/razertool: Revbump to fix gtk deps. Also bumped to EAPI-6. Package-Manager: portage-2.3.2 app-misc/razertool/razertool-0.0.7-r4.ebuild | 68 1 file changed, 68 insertions(+) diff --git a/app-misc/razertool/razertool-0.0.7-r4.ebuild b/app-misc/razertool/razertool-0.0.7-r4.ebuild new file mode 100644 index ..391fc4f --- /dev/null +++ b/app-misc/razertool/razertool-0.0.7-r4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils + +DESCRIPTION="Unofficial tool for controlling the Razer Copperhead mouse" +HOMEPAGE="http://razertool.sourceforge.net/; +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk" + +RDEPEND="virtual/libusb:0 + gtk? ( + dev-libs/atk + dev-libs/glib:2 + >=gnome-base/librsvg-2.0 + >=x11-libs/cairo-1.0.0 + x11-libs/gdk-pixbuf + >=x11-libs/gtk+-2.8.0:2 + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS ChangeLog NEWS README ) + +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" + + # 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" +} + +src_configure() { + econf $(use_enable gtk) +} + +src_install() { + default + + insinto /lib/udev/rules.d + newins razertool.rules.example 90-razertool.rules + + # Icon and desktop entry + dosym /usr/share/${PN}/pixmaps/${PN}-icon.png /usr/share/pixmaps/${PN}-icon.png + make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" +} + +pkg_postinst() { + elog "Razer Copperhead mice need firmware version 6.20 or higher" + elog "to work properly. Running ${PN} on mice with older firmwares" + elog "might lead to random USB-disconnects." + elog "To run as non-root, add yourself to the usb group:" + elog " gpasswd -a usb" + elog "or adapt permissions/owner/group in:" + elog " /etc/udev/rules.d/90-razertool.rules" + elog "Then unplug and plug in the mouse." +}