From 58175cd3384d5601485a578ccbb1b4aba1010e4f Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Sat, 2 Jul 2022 00:50:12 +0200 Subject: dev-scheme/mit-scheme-c: minor fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/855605 Signed-off-by: Maciej Barć --- dev-scheme/mit-scheme-c/mit-scheme-c-9.2.ebuild | 33 ++++++++++++++----------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/dev-scheme/mit-scheme-c/mit-scheme-c-9.2.ebuild b/dev-scheme/mit-scheme-c/mit-scheme-c-9.2.ebuild index 30b49908..abbbbb33 100644 --- a/dev-scheme/mit-scheme-c/mit-scheme-c-9.2.ebuild +++ b/dev-scheme/mit-scheme-c/mit-scheme-c-9.2.ebuild @@ -16,17 +16,21 @@ IUSE="doc" # emacs" #SITEFILE="50mitscheme-gentoo.el" -RDEPEND="app-crypt/mhash +RDEPEND=" + app-crypt/mhash dev-db/postgresql dev-libs/libmcrypt dev-libs/openssl sys-libs/gdbm sys-libs/ncurses - x11-libs/libX11" + x11-libs/libX11 +" DEPEND="${RDEPEND}" BDEPEND="doc? ( dev-texlive/texlive-latexextra )" src_prepare() { + default + sed "s:@for:@+for:" -i \ Makefile || die "sed failed" sed "s:make:make -j1:" -i \ @@ -36,34 +40,35 @@ src_prepare() { } src_configure() { - if use doc; then + if use doc ; then cd "${S}"/doc econf fi } src_compile() { - cd "${S}"/src - ./etc/make-liarc.sh --prefix=/usr --exec-prefix=/usr --libdir=/usr/$(get_libdir) || die "making liar C failed" - - if use doc ; then - cd "${S}"/doc - emake -j1 || die "emake doc failed" - fi + cd "${S}"/src || die - cd .. + ./etc/make-liarc.sh \ + --prefix=/usr --exec-prefix=/usr --libdir=/usr/$(get_libdir) || + die "making liar C failed" # if use emacs ; then -# elisp-compile etc/*.el || die +# elisp-compile "${S}"/etc/*.el || die # fi + + use doc && emake -C "${S}"/doc -j1 } src_install() { - cd "${S}"/src - emake DESTDIR="${D}" install || die "make install failed" + emake -C "${S}"/src DESTDIR="${D}" install || die "make install failed" + + # elisp cd "${S}"/doc + doman scheme.1 || die "doman failed" + if use doc ; then docinto html dodoc index.html || die "dhtml failed" -- cgit v1.2.3-65-gdbad