diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2019-03-06 19:53:27 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2019-04-10 00:21:22 +0200 |
commit | 9ac35ce64910753c8f89a3e1471dc85be2b0d6be (patch) | |
tree | e612cd21b909587579c617fbafbedc62516fb35b /dev-lang/mozart | |
parent | dev-lang/mozart: fix HOMEPAGE and SRC_URI. (diff) | |
download | gentoo-9ac35ce64910753c8f89a3e1471dc85be2b0d6be.tar.gz gentoo-9ac35ce64910753c8f89a3e1471dc85be2b0d6be.tar.bz2 gentoo-9ac35ce64910753c8f89a3e1471dc85be2b0d6be.zip |
dev-lang/mozart: EAPI7, improve ebuild.
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-lang/mozart')
-rw-r--r-- | dev-lang/mozart/mozart-1.4.0-r4.ebuild | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/dev-lang/mozart/mozart-1.4.0-r4.ebuild b/dev-lang/mozart/mozart-1.4.0-r4.ebuild new file mode 100644 index 000000000000..f94dc9760e3b --- /dev/null +++ b/dev-lang/mozart/mozart-1.4.0-r4.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit elisp-common + +PATCHSET_VER="5" +MY_P="mozart-${PV}.20080704" + +DESCRIPTION="Advanced development platform for intelligent, distributed applications" +HOMEPAGE="https://mozart.github.io/ https://github.com/mozart/mozart" +SRC_URI=" + mirror://sourceforge/project/mozart-oz/v1/1.4.0-2008-07-02-tar/${MY_P}-src.tar.gz + mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz + doc? ( mirror://sourceforge/project/mozart-oz/v1/1.4.0-2008-07-02-tar/${MY_P}-doc.tar.gz )" + +SLOT="0" +LICENSE="Mozart" +KEYWORDS="-amd64 ~ppc -ppc64 ~x86" +IUSE="doc emacs examples gdbm static tcl threads tk" + +RDEPEND=" + dev-lang/perl + dev-libs/gmp:0= + sys-libs/zlib + emacs? ( virtual/emacs ) + gdbm? ( sys-libs/gdbm ) + tcl? ( + tk? ( + dev-lang/tk:0= + dev-lang/tcl:0= + ) + )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex" + +SITEFILE=50${PN}-gentoo.el + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + default + eapply "${WORKDIR}"/${PV} +} + +src_configure() { + local myconf="\ + --without-global-oz \ + --enable-opt=none" + + if use tcl && use tk ; then + myconf="${myconf} --enable-wish" + else + myconf="${myconf} --disable-wish" + fi + + econf \ + ${myconf} \ + --disable-doc \ + --enable-contrib \ + --disable-contrib-micq \ + $(use_enable doc contrib-doc) \ + $(use_enable gdbm contrib-gdbm) \ + $(use_enable tk contrib-tk) \ + $(use_enable emacs compile-elisp) \ + $(use_enable static link-static) \ + $(use_enable threads threaded) +} + +src_compile() { + emake bootstrap +} + +src_test() { + # Mozart tests must be run single-threaded + cd "${S}"/share/test || die + emake -j1 boot-oztest + emake -j1 boot-check +} + +src_install() { + emake \ + PREFIX="${D}"/usr/lib/mozart \ + ELISPDIR="${D}${SITELISP}/${PN}" \ + install + + dosym /usr/lib/mozart/bin/convertTextPickle /usr/bin/convertTextPickle + dosym /usr/lib/mozart/bin/oldpickle2text /usr/bin/oldpickle2text + dosym /usr/lib/mozart/bin/ozc /usr/bin/ozc + dosym /usr/lib/mozart/bin/ozd /usr/bin/ozd + dosym /usr/lib/mozart/bin/ozengine /usr/bin/ozengine + dosym /usr/lib/mozart/bin/ozl /usr/bin/ozl + dosym /usr/lib/mozart/bin/ozplatform /usr/bin/ozplatform + dosym /usr/lib/mozart/bin/oztool /usr/bin/oztool + dosym /usr/lib/mozart/bin/pickle2text /usr/bin/pickle2text + dosym /usr/lib/mozart/bin/text2pickle /usr/bin/text2pickle + + if use emacs; then + dosym /usr/lib/mozart/bin/oz /usr/bin/oz + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + dodoc "${S}"/README + if use doc ; then + docinto html + dodoc -r "${WORKDIR}"/mozart/doc/* + fi + + if use examples; then + cd "${S}"/share || die + insinto /usr/share/doc/${PF} + doins -r examples demo + rm -rf $(find "${ED}"/usr/share/doc/${PF}/examples \ + -name Makefile -o -name Makefile.in) || die + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |