/[gentoo-x86]/dev-lang/mozart/mozart-1.4.0-r3.ebuild
Gentoo

Contents of /dev-lang/mozart/mozart-1.4.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 15 12:03:51 2015 UTC (4 years, 8 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
ppc stable wrt bug #548688

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/mozart-1.4.0-r3.ebuild,v 1.1 2015/03/25 12:27:23 jlec Exp $
4
5 EAPI=5
6
7 inherit elisp-common eutils
8
9 PATCHSET_VER="5"
10 MY_P="mozart-${PV}.20080704"
11
12 DESCRIPTION="Advanced development platform for intelligent, distributed applications"
13 HOMEPAGE="http://www.mozart-oz.org/"
14 SRC_URI="
15 http://www.mozart-oz.org/download/mozart-ftp/store/1.4.0-2008-07-02-tar/mozart-1.4.0.20080704-src.tar.gz
16 mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz
17 doc? ( http://www.mozart-oz.org/download/mozart-ftp/store/1.4.0-2008-07-02-tar/mozart-1.4.0.20080704-doc.tar.gz )"
18
19 SLOT="0"
20 LICENSE="Mozart"
21 KEYWORDS="-amd64 ppc -ppc64 ~x86"
22 IUSE="doc emacs examples gdbm static tcl threads tk"
23
24 RDEPEND="
25 dev-lang/perl
26 dev-libs/gmp
27 sys-libs/zlib
28 emacs? ( virtual/emacs )
29 gdbm? ( sys-libs/gdbm )
30 tcl? (
31 tk? (
32 dev-lang/tk:0=
33 dev-lang/tcl:0=
34 )
35 )"
36 DEPEND="${RDEPEND}
37 sys-devel/bison
38 sys-devel/flex"
39
40 SITEFILE=50${PN}-gentoo.el
41
42 S="${WORKDIR}"/${MY_P}
43
44 src_prepare() {
45 EPATCH_FORCE=yes
46 EPATCH_SUFFIX=patch
47 epatch "${WORKDIR}"/${PV}
48 }
49
50 src_configure() {
51 local myconf="\
52 --without-global-oz \
53 --enable-opt=none"
54
55 if use tcl && use tk ; then
56 myconf="${myconf} --enable-wish"
57 else
58 myconf="${myconf} --disable-wish"
59 fi
60
61 econf \
62 ${myconf} \
63 --disable-doc \
64 --enable-contrib \
65 --disable-contrib-micq \
66 $(use_enable doc contrib-doc) \
67 $(use_enable gdbm contrib-gdbm) \
68 $(use_enable tk contrib-tk) \
69 $(use_enable emacs compile-elisp) \
70 $(use_enable static link-static) \
71 $(use_enable threads threaded)
72 }
73
74 src_compile() {
75 emake bootstrap
76 }
77
78 src_test() {
79 # Mozart tests must be run single-threaded
80 cd "${S}"/share/test || die
81 emake -j1 boot-oztest
82 emake -j1 boot-check
83 }
84
85 src_install() {
86 emake \
87 PREFIX="${D}"/usr/lib/mozart \
88 ELISPDIR="${D}${SITELISP}/${PN}" \
89 install
90
91 dosym /usr/lib/mozart/bin/convertTextPickle /usr/bin/convertTextPickle
92 dosym /usr/lib/mozart/bin/oldpickle2text /usr/bin/oldpickle2text
93 dosym /usr/lib/mozart/bin/ozc /usr/bin/ozc
94 dosym /usr/lib/mozart/bin/ozd /usr/bin/ozd
95 dosym /usr/lib/mozart/bin/ozengine /usr/bin/ozengine
96 dosym /usr/lib/mozart/bin/ozl /usr/bin/ozl
97 dosym /usr/lib/mozart/bin/ozplatform /usr/bin/ozplatform
98 dosym /usr/lib/mozart/bin/oztool /usr/bin/oztool
99 dosym /usr/lib/mozart/bin/pickle2text /usr/bin/pickle2text
100 dosym /usr/lib/mozart/bin/text2pickle /usr/bin/text2pickle
101
102 if use emacs; then
103 dosym /usr/lib/mozart/bin/oz /usr/bin/oz
104 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
105 fi
106
107 dodoc "${S}"/README
108 use doc && dohtml -r "${WORKDIR}"/mozart/doc/*
109
110 if use examples; then
111 cd "${S}"/share || die
112 insinto /usr/share/doc/${PF}
113 doins -r examples demo
114 rm -rf $(find "${ED}"/usr/share/doc/${PF}/examples \
115 -name Makefile -o -name Makefile.in) || die
116 fi
117 }
118
119 pkg_postinst() {
120 use emacs && elisp-site-regen
121 }
122
123 pkg_postrm() {
124 use emacs && elisp-site-regen
125 }

  ViewVC Help
Powered by ViewVC 1.1.20