mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
Tested in both amd64(multilib) and x86. Closes: https://bugs.gentoo.org/962001 Signed-off-by: Joe Kappus <joe@wt.gd>
60 lines
1.3 KiB
Bash
60 lines
1.3 KiB
Bash
# Copyright 1999-2025 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
|
|
|
|
}
|