diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-31 21:06:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-31 21:06:00 +0000 |
commit | c9c609463fab9bcfb35694627bca1429a21fdbb2 (patch) | |
tree | 024860c3c54aa33cdb6972acd3e2e0b8484f3aa7 /app-shells/esh/esh-0.8.5-r3.ebuild | |
parent | 6dd9db91dd6ce9bbe3197aa82642866e637ba68d (diff) |
gentoo auto-resync : 31:10:2022 - 21:05:59
Diffstat (limited to 'app-shells/esh/esh-0.8.5-r3.ebuild')
-rw-r--r-- | app-shells/esh/esh-0.8.5-r3.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/app-shells/esh/esh-0.8.5-r3.ebuild b/app-shells/esh/esh-0.8.5-r3.ebuild new file mode 100644 index 000000000000..29ed1611a7a0 --- /dev/null +++ b/app-shells/esh/esh-0.8.5-r3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="A UNIX Shell with a simplified Scheme syntax" +HOMEPAGE="http://slon.ttk.ru/esh/" +SRC_URI="http://slon.ttk.ru/esh/${P}.tar.gz" +S="${WORKDIR}"/${PN} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="debug" + +DEPEND=">=sys-libs/readline-4.1:=" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-fix-build-for-clang16.patch +) + +src_prepare() { + + # For some reason, this tarball has binary files in it for x86. + # Make clean so we can rebuild for our arch and optimization. + emake clean + + default + + sed -i \ + -e 's|-g ||' \ + -e 's|-DMEM_DEBUG ||' \ + -e 's|^CFLAGS|&+|g' \ + -e 's|$(CC) |&$(CFLAGS) $(CPPFLAGS) $(INC) $(LDFLAGS) $(LIB) $(LIBS)|g' \ + -e 's:-ltermcap::' \ + -e "s:/usr/include/readline:${ESYSROOT}/usr/include/readline:" \ + -e "s:LIB=-readline:$($(tc-getPKG_CONFIG) --libs readline):" \ + Makefile || die +} + +src_compile() { + use debug && append-flags -DMEM_DEBUG + + append-cppflags "$($(tc-getPKG_CONFIG) --cflags readline)" + + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} \$(INC)" \ + CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin esh + doinfo doc/esh.info + dodoc CHANGELOG CREDITS GC_README HEADER READLINE-HACKS TODO + + docinto html + dodoc doc/*.html + + docinto examples + dodoc examples/* +} |