commit:     ab5323899177ed87341c97b4a75f76a2781e5d10
Author:     Alexander Holcomb <alex <AT> alexsdigital <DOT> rodeo>
AuthorDate: Thu Feb  3 15:03:20 2022 +0000
Commit:     Alexander Holcomb <alex <AT> alexsdigital <DOT> rodeo>
CommitDate: Thu Feb  3 15:03:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ab532389

app-editors/mined: Make Ebuild Respect CFLAGS

This changes the build process to use the src/mkmined script,
rather than the makemined script called by the makefile. This
should solve bug 831704 (https://bugs.gentoo.org/831704), by
making the script use CFLAGS, rather than having them explicity
set.
Also, I changed the copyright notice to "2022," rather than
"1998-2022," because repoman mentioned it as a minor issue.

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alex Holcomb <alex <AT> alexsdigital.rodeo>

 app-editors/mined/mined-2015.25.ebuild | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/app-editors/mined/mined-2015.25.ebuild 
b/app-editors/mined/mined-2015.25.ebuild
index 79ac97d1c..006d7fe6d 100644
--- a/app-editors/mined/mined-2015.25.ebuild
+++ b/app-editors/mined/mined-2015.25.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,13 +14,18 @@ IUSE=""
 RDEPEND=""
 DEPEND="${RDEPEND}"
 BDEPEND=""
-#src_configure() {
-#      econf
-#}
+S=${S}/src
+src_configure() {
+       sed -in 's/OBJDIR=..\/bin\/sh/OBJDIR=bin\/sh/' mkmined
+       sed -in 's/\"\${COPT--DTERMIO \$W}\"/\"${CFLAGS} \${COPT--DTERMIO}\"/' 
mkmined
+}
+
 src_compile() {
-       emake -j1
+       mkdir bin/
+       ./mkmined
 }
+
 src_install() {
-       dobin bin/Linux.x86_64/mined
-       doman man/mined.1
+       dobin bin/sh/mined
+       doman ../man/mined.1
 }

Reply via email to