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@alexsdigital.rodeo>
This commit is contained in:
Alexander Holcomb
2022-02-03 09:03:20 -06:00
parent b5e6e07976
commit ab53238991

View File

@@ -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
}