public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-misc/mx5000tools/files/, app-misc/mx5000tools/
@ 2018-11-10 18:16 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2018-11-10 18:16 UTC (permalink / raw
  To: gentoo-commits

commit:     0ca9ae31322b5d0afc5ee40037848cb74438cbba
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Tue Oct 30 11:27:26 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 10 18:15:44 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ca9ae31

app-misc/mx5000tools: New package

Tools for controlling the LCD on a Logitech MX5000 keyboard.

Closes: https://bugs.gentoo.org/667808
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-misc/mx5000tools/Manifest                      |  1 +
 .../mx5000tools-0.1.2-find-netpbm-header.patch     | 22 +++++++++++++
 app-misc/mx5000tools/metadata.xml                  | 18 ++++++++++
 app-misc/mx5000tools/mx5000tools-0.1.2.ebuild      | 38 ++++++++++++++++++++++
 4 files changed, 79 insertions(+)

diff --git a/app-misc/mx5000tools/Manifest b/app-misc/mx5000tools/Manifest
new file mode 100644
index 00000000000..7190e16863a
--- /dev/null
+++ b/app-misc/mx5000tools/Manifest
@@ -0,0 +1 @@
+DIST mx5000tools-0.1.2.tar.gz 343118 BLAKE2B 74316ca3c730b5e03aa73a8cf5422eb3690b0e088254f9078da549f2d964df065ca7cd09f5f822cb3e66ad5bac0eab546c49703eaf837a132a61ab0755e729b8 SHA512 3773b8b233f02711bb7a768a68ccd3bf72e3d51fbb64ee2a70197d1b51e884a4f40048ba6b7dcde4be0703f25672ccb0fac9b0d6612b8a94f9e01b6a9f463613

diff --git a/app-misc/mx5000tools/files/mx5000tools-0.1.2-find-netpbm-header.patch b/app-misc/mx5000tools/files/mx5000tools-0.1.2-find-netpbm-header.patch
new file mode 100644
index 00000000000..9fb03d5b6aa
--- /dev/null
+++ b/app-misc/mx5000tools/files/mx5000tools-0.1.2-find-netpbm-header.patch
@@ -0,0 +1,22 @@
+--- a/configure.ac	2006-12-05 05:37:05.000000000 +0100
++++ b/configure.ac	2018-10-05 14:42:12.449181591 +0200
+@@ -13,7 +13,7 @@
+ AC_CHECK_HEADER([linux/hiddev.h], [], [AC_MSG_ERROR([You need kernel headers that supports hiddev\, that is Linux 2.4 or greater])], [#include <asm/types.h>]) 
+ 
+ 
+-AC_CHECK_HEADER([pbm.h], [], [AC_MSG_ERROR([You need pbm.h from the netpbm package\, possible the netpbm-devel package of your distribution])])
++AC_CHECK_HEADER([netpbm/pbm.h], [], [AC_MSG_ERROR([You need pbm.h from the netpbm package\, possible the netpbm-devel package of your distribution])])
+ AC_CHECK_LIB([netpbm],[pbm_readpbm], [], [AC_MSG_ERROR([You need netpbm installed])])
+ 
+ 
+--- a/libmx5000/mx5000image.c	2006-12-05 05:13:50.000000000 +0100
++++ b/libmx5000/mx5000image.c	2018-10-05 14:48:44.093392505 +0200
+@@ -3,7 +3,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ 
+-#include <pbm.h>
++#include <netpbm/pbm.h>
+ #include "config.h"
+ 
+ 

diff --git a/app-misc/mx5000tools/metadata.xml b/app-misc/mx5000tools/metadata.xml
new file mode 100644
index 00000000000..eb2ca7b6522
--- /dev/null
+++ b/app-misc/mx5000tools/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>ck+gentoo@bl4ckb0x.de</email>
+		<name>Conrad Kostecki</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<longdescription>
+		The Logitech Cordless Desktop MX 5000 Laser comes with a keyboard that has a nice LCD.
+		But Logitech did not provide any way to control the LCD on a Free operating system.
+		These tools make it possible to control what is displayed on the LCD and to use some
+		of the keys that are not recognized by the stock Linux HID driver.
+	</longdescription>
+</pkgmetadata>

diff --git a/app-misc/mx5000tools/mx5000tools-0.1.2.ebuild b/app-misc/mx5000tools/mx5000tools-0.1.2.ebuild
new file mode 100644
index 00000000000..bcb95fa59cf
--- /dev/null
+++ b/app-misc/mx5000tools/mx5000tools-0.1.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Tools for controlling the LCD on a Logitech MX5000 keyboard"
+HOMEPAGE="https://web.archive.org/web/20160409073317/http://home.gna.org/mx5000tools/"
+SRC_URI="https://web.archive.org/web/20170225160711/http://download.gna.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+DEPEND="media-libs/netpbm:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-find-netpbm-header.patch" )
+
+src_prepare() {
+	default
+
+	eautoreconf
+}
+src_configure() {
+	local myeconfargs=(
+		--disable-static
+	)
+
+	econf "${myeconfargs[@]}"
+}
+
+src_install() {
+	default
+
+	find "${D}" -name '*.la' -delete || die
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-misc/mx5000tools/files/, app-misc/mx5000tools/
@ 2024-01-02 18:13 Conrad Kostecki
  0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2024-01-02 18:13 UTC (permalink / raw
  To: gentoo-commits

commit:     d1e0ed53ba619b4c47644a63693b00955e0ab522
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  2 18:12:43 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jan  2 18:13:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1e0ed53

app-misc/mx5000tools: fix musl

Closes: https://bugs.gentoo.org/906195
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../files/mx5000tools-0.1.2_p20190613-musl.patch     | 20 ++++++++++++++++++++
 .../mx5000tools/mx5000tools-0.1.2_p20190613.ebuild   |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/app-misc/mx5000tools/files/mx5000tools-0.1.2_p20190613-musl.patch b/app-misc/mx5000tools/files/mx5000tools-0.1.2_p20190613-musl.patch
new file mode 100644
index 000000000000..e3442ed54435
--- /dev/null
+++ b/app-misc/mx5000tools/files/mx5000tools-0.1.2_p20190613-musl.patch
@@ -0,0 +1,20 @@
+--- a/libmx5000/mx5000screencontent.c
++++ b/libmx5000/mx5000screencontent.c
+@@ -27,6 +27,7 @@
+ 
+ #include <asm/types.h>
+ #include <linux/hiddev.h>
++#include <linux/limits.h>
+ 
+ #include "libmx5000/mx5000screencontent.h"
+ #include "libmx5000/mx5000.h"
+--- a/libmx5000/hidraw_lib.c
++++ b/libmx5000/hidraw_lib.c
+@@ -8,6 +8,7 @@
+ #include <dirent.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <linux/limits.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>

diff --git a/app-misc/mx5000tools/mx5000tools-0.1.2_p20190613.ebuild b/app-misc/mx5000tools/mx5000tools-0.1.2_p20190613.ebuild
index cca3815e7eaa..cc67f3251ff3 100644
--- a/app-misc/mx5000tools/mx5000tools-0.1.2_p20190613.ebuild
+++ b/app-misc/mx5000tools/mx5000tools-0.1.2_p20190613.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -22,6 +22,8 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=( "${FILESDIR}/${PN}-0.1.2_p20190613-musl.patch" )
+
 src_prepare() {
 	default
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-02 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-10 18:16 [gentoo-commits] repo/gentoo:master commit in: app-misc/mx5000tools/files/, app-misc/mx5000tools/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2024-01-02 18:13 Conrad Kostecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox