public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-electronics/minipro/, sci-electronics/minipro/files/
@ 2022-08-08 18:47 Andrew Ammerlaan
  0 siblings, 0 replies; only message in thread
From: Andrew Ammerlaan @ 2022-08-08 18:47 UTC (permalink / raw
  To: gentoo-commits

commit:     4dc9caa6ff4caaccfa27a67324725df1d372ecc9
Author:     Scott Alfter <salfter <AT> catholiccharities <DOT> com>
AuthorDate: Mon Jul 25 17:22:17 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 18:46:59 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=4dc9caa6

sci-electronics/minipro: version bump 0.5

Signed-off-by: Scott Alfter <scott <AT> alfter.us>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
Closes: https://github.com/gentoo/sci/pull/1163

 .../minipro/files/minipro-0.5-makefile.patch          | 12 ++++++++++++
 sci-electronics/minipro/metadata.xml                  |  7 +++++++
 .../{minipro-0.4.ebuild => minipro-0.5.ebuild}        | 19 +++++++++++--------
 3 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/sci-electronics/minipro/files/minipro-0.5-makefile.patch b/sci-electronics/minipro/files/minipro-0.5-makefile.patch
new file mode 100644
index 000000000..221643895
--- /dev/null
+++ b/sci-electronics/minipro/files/minipro-0.5-makefile.patch
@@ -0,0 +1,12 @@
+can't seem to override PREFIX at build time, so patch it
+--- minipro-0.5/Makefile	2020-11-04 21:35:31.000000000 -0800
++++ minipro-0.5/Makefile	2022-07-22 11:42:54.866390621 -0700
+@@ -9,7 +9,7 @@
+ 
+ # Normally minipro is installed to /usr/local.  If you want to put it
+ # somewhere else, define that location here.
+-PREFIX ?= /usr/local
++PREFIX ?= /usr
+ MANDIR ?= $(PREFIX)/share/man
+ 
+ # Some older releases of MacOS need some extra library flags.

diff --git a/sci-electronics/minipro/metadata.xml b/sci-electronics/minipro/metadata.xml
index 430c9ea1b..438079e92 100644
--- a/sci-electronics/minipro/metadata.xml
+++ b/sci-electronics/minipro/metadata.xml
@@ -5,6 +5,13 @@
 		<email>sci-electronics@gentoo.org</email>
 		<name>Gentoo Electronics Project</name>
 	</maintainer>
+	<maintainer type="person">
+		<email>scott@alfter.us</email>
+		<name>Scott Alfter</name>
+	</maintainer>
+	<longdescription lang="en">
+		an open-source program for controlling the MiniPRO TL866xx series of chip programmers
+	</longdescription>
 	<upstream>
 		<remote-id type="github">vdudouyt/minipro</remote-id>
 	</upstream>

diff --git a/sci-electronics/minipro/minipro-0.4.ebuild b/sci-electronics/minipro/minipro-0.5.ebuild
similarity index 62%
rename from sci-electronics/minipro/minipro-0.4.ebuild
rename to sci-electronics/minipro/minipro-0.5.ebuild
index ab75d6774..60854d55c 100644
--- a/sci-electronics/minipro/minipro-0.4.ebuild
+++ b/sci-electronics/minipro/minipro-0.5.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-inherit bash-completion-r1 udev
+inherit udev
 
 DESCRIPTION="A free and open TL866XX programmer"
 HOMEPAGE="https://gitlab.com/DavidGriffith/minipro"
@@ -16,9 +16,12 @@ KEYWORDS="~amd64"
 RDEPEND="virtual/libusb:1"
 DEPEND="${RDEPEND}"
 
-src_install() {
-	dobin minipro miniprohex
-	doman man/minipro.1
-	udev_dorules udev/*.rules
-	dobashcomp bash_completion.d/minipro
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
+
+pkg_postinst() {
+	udev_reload
+}
+
+pkg_postrm() {
+	udev_reload
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-08 18:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-08 18:47 [gentoo-commits] proj/sci:master commit in: sci-electronics/minipro/, sci-electronics/minipro/files/ Andrew Ammerlaan

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