linamh/dev-embedded/calypsi/calypsi-5.7.1.ebuild

48 lines
1.3 KiB
Bash
Raw Normal View History

2024-12-16 09:17:46 +01:00
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
2025-01-30 13:16:59 +01:00
inherit rpm
2024-12-16 09:17:46 +01:00
DESCRIPTION="Calypsi is a series of C compiler and assembly language cross compiler tool chains. The current tool chains are aimed towards the retro and hobby communities."
HOMEPAGE="https://www.calypsi.cc/"
2025-01-30 13:16:59 +01:00
SRC_URI="https://github.com/hth313/Calypsi-tool-chains/releases/download/${PV}/calypsi-6502-${PV}-1.x86_64.rpm
https://github.com/hth313/Calypsi-tool-chains/releases/download/${PV}/calypsi-65816-${PV}-1.x86_64.rpm
https://github.com/hth313/Calypsi-tool-chains/releases/download/${PV}/calypsi-68000-${PV}-1.x86_64.rpm"
2024-12-16 09:17:46 +01:00
LICENSE="Calypsi"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="strip mirror test"
DEPEND="sys-process/numactl"
RDEPEND="${DEPEND}"
S=${WORKDIR}
src_unpack() {
2025-01-30 13:16:59 +01:00
rpm_unpack calypsi-6502-${PV}-1.x86_64.rpm
rpm_unpack calypsi-65816-${PV}-1.x86_64.rpm
rpm_unpack calypsi-68000-${PV}-1.x86_64.rpm
2024-12-16 09:17:46 +01:00
}
src_install() {
dodir /opt/calypsi/6502
cp -aR usr/local/lib/calypsi-6502-${PV}/* "${D}/opt/calypsi/6502"
doenvd "${FILESDIR}"/50calypsi-6502
dodir /opt/calypsi/65816
cp -aR usr/local/lib/calypsi-65816-${PV}/* "${D}/opt/calypsi/65816"
doenvd "${FILESDIR}"/50calypsi-65816
dodir /opt/calypsi/68000
cp -aR usr/local/lib/calypsi-68000-${PV}/* "${D}/opt/calypsi/68000"
doenvd "${FILESDIR}"/50calypsi-68000
}