1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="HP48 Calculator Emulator"
9 HOMEPAGE="http://x48.berlios.de/"
10 SRC_URI="mirror://sourceforge/x48.berlios/${P}.tar.bz2"
14 KEYWORDS="~alpha amd64 hppa ~ia64 ppc ppc64 sparc x86"
20 readline? ( sys-libs/readline:0= )"
33 sed -i '698s/inline/static inline/' src/emulate.c || die
38 econf $(use_enable readline)
44 insinto /usr/share/"${PN}"/romdump
45 doins -r romdump/{README,ROMDump*}
49 elog "The X48 emulator requires an HP48 ROM image to run."
51 elog "If you own an HP-48 calculator, you can use the ROMDump utility"
52 elog "included with this package to obtain it from your calculator."
53 elog "The instructions of how to do this are included in the package."
55 elog "Alternatively, HP has provided the ROM images for non-commercial"
58 elog "Due to confusion over the legal status of these ROMs you must"
59 elog "manually download one from http://www.hpcalc.org/hp48/pc/emulators/"
61 elog "If you do not know which one to use, try 'HP 48GX Revision R ROM.'"
63 elog "Once you have a ROM, you will need to install it by running:"
65 elog "x48 -rom gxrom-r"
67 elog "You will only have to do this the first time you run X48. The"
68 elog "ROM will be stored in ~/.hp48/rom for future runs."