diff options
author | 2021-11-02 03:24:54 -0400 | |
---|---|---|
committer | 2021-11-02 04:25:32 -0400 | |
commit | a44a7c839ea3519df999b99fcf2e86fd8cd15e8e (patch) | |
tree | add5060ad655b5eff107dc357041249f77c9b75e /dev-lang/inform/inform-6.35_p4.ebuild | |
parent | dev-lang/inform: add gitlab remote-id (diff) | |
download | gentoo-a44a7c839ea3519df999b99fcf2e86fd8cd15e8e.tar.gz gentoo-a44a7c839ea3519df999b99fcf2e86fd8cd15e8e.tar.bz2 gentoo-a44a7c839ea3519df999b99fcf2e86fd8cd15e8e.zip |
dev-lang/inform: add 6.35_p4, EAPI5->8
May still need work, not familiar with this package and it
changed a few things around in the last 7 years.
Bug: https://bugs.gentoo.org/819627
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-lang/inform/inform-6.35_p4.ebuild')
-rw-r--r-- | dev-lang/inform/inform-6.35_p4.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-lang/inform/inform-6.35_p4.ebuild b/dev-lang/inform/inform-6.35_p4.ebuild new file mode 100644 index 000000000000..3b193b357e92 --- /dev/null +++ b/dev-lang/inform/inform-6.35_p4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_P="${P/_p/-r}" + +DESCRIPTION="Design system for interactive fiction" +HOMEPAGE="https://www.inform-fiction.org/" +SRC_URI="https://ifarchive.org/if-archive/infocom/compilers/inform6/source/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="Artistic-2 Inform" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="emacs tools" +# non-interactive tests use ruby, seem broken, and return true even on failure +RESTRICT="test" + +RDEPEND=" + tools? ( + dev-lang/perl + dev-perl/DateTime + )" +PDEPEND="emacs? ( app-emacs/inform-mode )" + +src_compile() { + tc-export CC + + emake PREFIX="${EPREFIX}"/usr OPTS="${CFLAGS} ${CPPFLAGS}" +} + +src_install() { + local emakeargs=( + PREFIX="${ED}"/usr + REAL_PREFIX="${EPREFIX}"/usr + MANDIR="${ED}"/usr/share/man/man1 + PUNYDOCS="${ED}"/usr/share/doc/${PF}/punyinform + PUNYTESTS="${T}" # don't install tests + ) + + emake -j1 "${emakeargs[@]}" install + + dodoc AUTHORS NEWS README.md VERSION docs/README* + + use tools || rm "${ED}"/usr/bin/*blorb* || die + + find "${ED}"/usr/share/doc \( -name Makefile -o -name 'custom.*' \) -delete || die +} |