blob: e79cafad0a1764f9c3563bb8cc480746aec26d92 (
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
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
DESCRIPTION="HP48 Calculator Emulator"
HOMEPAGE="http://x48.berlios.de/"
SRC_URI="mirror://sourceforge/x48.berlios/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 hppa ia64 ppc ppc64 ~sparc x86"
IUSE="readline"
RDEPEND="x11-libs/libX11
x11-libs/libXext
readline? ( sys-libs/readline:5 )"
DEPEND="${RDEPEND}
virtual/pkgconfig
x11-libs/libXt"
src_unpack() {
mkdir -p "${S}"
cd "${S}"
unpack ${A}
}
src_prepare() {
eapply_user
sed -i '698s/inline/static inline/' src/emulate.c || die
eautoreconf
}
src_configure() {
econf $(use_enable readline)
}
src_install() {
emake DESTDIR="${D}" install
insinto /usr/share/"${PN}"/romdump
doins -r romdump/{README,ROMDump*}
dodoc AUTHORS README ChangeLog
}
pkg_postinst() {
elog "The X48 emulator requires an HP48 ROM image to run."
elog
elog "If you own an HP-48 calculator, you can use the ROMDump utility"
elog "included with this package to obtain it from your calculator."
elog "The instructions of how to do this are included in the package."
elog
elog "Alternatively, HP has provided the ROM images for non-commercial"
elog "use only."
elog
elog "Due to confusion over the legal status of these ROMs you must"
elog "manually download one from http://www.hpcalc.org/hp48/pc/emulators/"
elog
elog "If you do not know which one to use, try 'HP 48GX Revision R ROM.'"
elog
elog "Once you have a ROM, you will need to install it by running:"
elog
elog "x48 -rom gxrom-r"
elog
elog "You will only have to do this the first time you run X48. The"
elog "ROM will be stored in ~/.hp48/rom for future runs."
}
|