blob: e48862e1c259ec0733b19b13059ea89852f9b051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="A powerful text editor with extensive Unicode and CJK support"
HOMEPAGE="http://towo.net/mined/"
SRC_URI="https://downloads.sourceforge.net/project/mined/mined/mined%20${PV}/${P}.tar.gz?ts=gAAAAABhfF-EKWvxGfwH7tpfR0NI8LV87Muimvh4jUigxZZZAD1fN8xgcbBPJc1TQ3f8djMFDbHXXz6rQZI4_qwwEsqakvBpqg%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fmined%2Ffiles%2Fmined%2Fmined%2520${PV}%2Fmined-${P}.tar.gz%2Fdownload -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="test"
DEPEND="${RDEPEND}"
S=${S}/src
src_configure() {
tc-export CC
sed -in 's/OBJDIR=..\/bin\/sh/OBJDIR=bin\/sh/' mkmined
sed -in 's/\"\${COPT--DTERMIO \$W}\"/\"${CFLAGS} \${COPT--DTERMIO} \${LDFLAGS}\"/' mkmined
sed -in 's/name.o/name.o \$LDFLAGS/' mkmined
sed -in 's/link=false/link=true/' mkmined
sed -in 142's/$/ \$LDFLAGS/' mkmined
}
src_compile() {
mkdir bin/
./mkmined
}
src_install() {
dobin bin/sh/mined
doman ../man/mined.1
}
|