app-emulation/x48: Makes decode_8_thru_f static
authorChema Alonso Josa <nimiux@gentoo.org>
Sat, 25 Nov 2017 16:59:29 +0000 (17:59 +0100)
committerChema Alonso Josa <nimiux@gentoo.org>
Sat, 25 Nov 2017 16:59:29 +0000 (17:59 +0100)
Closes: https://bugs.gentoo.org/638234
Package-Manager: Portage-2.3.13, Repoman-2.3.3

app-emulation/x48/Manifest
app-emulation/x48/x48-0.6.4-r1.ebuild [new file with mode: 0644]

index 51ebcbff2b58691e21fcae8fc2cde0ba6bca8886..48fd8a60ca83f9622675bce3a88022c9c9e70a2b 100644 (file)
@@ -1 +1 @@
-DIST x48-0.6.4.tar.bz2 227991 SHA256 dd42fb3dfde860abb758f8e6d5ccd01845bbf0dcd808b87786eec3ef7091067f SHA512 60fdba1171a02e4a5f9bcefb29fff9398fdbda50553c3d3b952fab0b4ebf87b219d4615139ca3673b1c61ff6d6559aab3e93218334aa6cdb442d4861347138ce WHIRLPOOL ff2ec2d5930d677a4cde53d8edeec564dea6fff342b2b41059424ad42314e682e412675f98aba7439eb125cf255ee841032e79226f8536e34a2ae4353aa3c2d1
+DIST x48-0.6.4.tar.bz2 227991 BLAKE2B 8db2962860eeb161a8efc9d46730c71d95d0331157e3e2481a978385ad54b04b7a4eb601c68e7df966194b23e0cd04bed4e80511d22695bb7ccdd3959d8fd8d7 SHA512 60fdba1171a02e4a5f9bcefb29fff9398fdbda50553c3d3b952fab0b4ebf87b219d4615139ca3673b1c61ff6d6559aab3e93218334aa6cdb442d4861347138ce
diff --git a/app-emulation/x48/x48-0.6.4-r1.ebuild b/app-emulation/x48/x48-0.6.4-r1.ebuild
new file mode 100644 (file)
index 0000000..ecfda88
--- /dev/null
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 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."
+}