blob: 36d436ae99371f3d226f40f7d6a53221a5ee2415 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PV="${PV/_r/r}"
DESCRIPTION="A native port of Lotus 1-2-3 to Linux"
HOMEPAGE="https://github.com/taviso/123elf"
SRC_URI="
https://github.com/taviso/123elf/archive/refs/tags/v${MY_PV}.tar.gz
https://archive.org/download/123-unix/123UNIX1.IMG
https://archive.org/download/123-unix/123UNIX2.IMG
https://archive.org/download/123-unix/123UNIX3.IMG
https://archive.org/download/123-unix/123UNIX4.IMG
https://archive.org/download/123-unix/123UNIX5.IMG
"
S="${WORKDIR}/123elf-${MY_PV}"
# It's abandonware, see: https://github.com/taviso/123elf/issues/105
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="+abi_x86_32"
RESTRICT="bindist mirror"
DEPEND="sys-libs/ncurses-compat:5"
RDEPEND="${DEPEND}"
BDEPEND="
app-alternatives/cpio
app-alternatives/gzip[reference]
sys-devel/binutils[multitarget]
sys-libs/ncurses[abi_x86_32(-)]
"
QA_PREBUILT="usr/bin/123"
src_prepare() {
default
cp "${DISTDIR}"/123UNIX*.IMG "${S}"/
./extract.sh
# Fix the Makefile
sed -i \
-e 's|prefix = /usr/local|prefix = $(DESTDIR)/usr|g' \
-e 's/^all: check /all: /' \
Makefile
# Respect CFLAGS in other Makefiles
sed -i 's/-ggdb3 -O0//' keymap/Makefile res/Makefile
}
|