1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit elisp-common eutils
9 MY_P="mozart-${PV}.20080704"
11 DESCRIPTION="Advanced development platform for intelligent, distributed applications"
12 HOMEPAGE="https://mozart.github.io/ https://github.com/mozart/mozart"
14 mirror://sourceforge/project/mozart-oz/v1/1.4.0-2008-07-02-tar/${MY_P}-src.tar.gz
15 mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz
16 doc? ( mirror://sourceforge/project/mozart-oz/v1/1.4.0-2008-07-02-tar/${MY_P}-doc.tar.gz )"
20 KEYWORDS="-amd64 ppc -ppc64 x86"
21 IUSE="doc emacs examples gdbm static tcl threads tk"
27 emacs? ( >=app-editors/emacs-23.1:* )
28 gdbm? ( sys-libs/gdbm )
39 SITEFILE=50${PN}-gentoo.el
41 S="${WORKDIR}"/${MY_P}
46 epatch "${WORKDIR}"/${PV}
54 if use tcl && use tk ; then
55 myconf="${myconf} --enable-wish"
57 myconf="${myconf} --disable-wish"
64 --disable-contrib-micq \
65 $(use_enable doc contrib-doc) \
66 $(use_enable gdbm contrib-gdbm) \
67 $(use_enable tk contrib-tk) \
68 $(use_enable emacs compile-elisp) \
69 $(use_enable static link-static) \
70 $(use_enable threads threaded)
78 # Mozart tests must be run single-threaded
79 cd "${S}"/share/test || die
86 PREFIX="${D}"/usr/lib/mozart \
87 ELISPDIR="${D}${SITELISP}/${PN}" \
90 dosym /usr/lib/mozart/bin/convertTextPickle /usr/bin/convertTextPickle
91 dosym /usr/lib/mozart/bin/oldpickle2text /usr/bin/oldpickle2text
92 dosym /usr/lib/mozart/bin/ozc /usr/bin/ozc
93 dosym /usr/lib/mozart/bin/ozd /usr/bin/ozd
94 dosym /usr/lib/mozart/bin/ozengine /usr/bin/ozengine
95 dosym /usr/lib/mozart/bin/ozl /usr/bin/ozl
96 dosym /usr/lib/mozart/bin/ozplatform /usr/bin/ozplatform
97 dosym /usr/lib/mozart/bin/oztool /usr/bin/oztool
98 dosym /usr/lib/mozart/bin/pickle2text /usr/bin/pickle2text
99 dosym /usr/lib/mozart/bin/text2pickle /usr/bin/text2pickle
102 dosym /usr/lib/mozart/bin/oz /usr/bin/oz
103 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
107 use doc && dohtml -r "${WORKDIR}"/mozart/doc/*
109 if use examples; then
110 cd "${S}"/share || die
111 insinto /usr/share/doc/${PF}
112 doins -r examples demo
113 rm -rf $(find "${ED}"/usr/share/doc/${PF}/examples \
114 -name Makefile -o -name Makefile.in) || die
119 use emacs && elisp-site-regen
123 use emacs && elisp-site-regen