1 |
commit: 9ac35ce64910753c8f89a3e1471dc85be2b0d6be |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Mar 6 18:53:27 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 9 22:21:22 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ac35ce6 |
7 |
|
8 |
dev-lang/mozart: EAPI7, improve ebuild. |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
dev-lang/mozart/mozart-1.4.0-r4.ebuild | 126 +++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 126 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/mozart/mozart-1.4.0-r4.ebuild b/dev-lang/mozart/mozart-1.4.0-r4.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..f94dc9760e3 |
19 |
--- /dev/null |
20 |
+++ b/dev-lang/mozart/mozart-1.4.0-r4.ebuild |
21 |
@@ -0,0 +1,126 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit elisp-common |
28 |
+ |
29 |
+PATCHSET_VER="5" |
30 |
+MY_P="mozart-${PV}.20080704" |
31 |
+ |
32 |
+DESCRIPTION="Advanced development platform for intelligent, distributed applications" |
33 |
+HOMEPAGE="https://mozart.github.io/ https://github.com/mozart/mozart" |
34 |
+SRC_URI=" |
35 |
+ mirror://sourceforge/project/mozart-oz/v1/1.4.0-2008-07-02-tar/${MY_P}-src.tar.gz |
36 |
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz |
37 |
+ doc? ( mirror://sourceforge/project/mozart-oz/v1/1.4.0-2008-07-02-tar/${MY_P}-doc.tar.gz )" |
38 |
+ |
39 |
+SLOT="0" |
40 |
+LICENSE="Mozart" |
41 |
+KEYWORDS="-amd64 ~ppc -ppc64 ~x86" |
42 |
+IUSE="doc emacs examples gdbm static tcl threads tk" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ dev-lang/perl |
46 |
+ dev-libs/gmp:0= |
47 |
+ sys-libs/zlib |
48 |
+ emacs? ( virtual/emacs ) |
49 |
+ gdbm? ( sys-libs/gdbm ) |
50 |
+ tcl? ( |
51 |
+ tk? ( |
52 |
+ dev-lang/tk:0= |
53 |
+ dev-lang/tcl:0= |
54 |
+ ) |
55 |
+ )" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ sys-devel/bison |
58 |
+ sys-devel/flex" |
59 |
+ |
60 |
+SITEFILE=50${PN}-gentoo.el |
61 |
+ |
62 |
+S="${WORKDIR}"/${MY_P} |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ eapply "${WORKDIR}"/${PV} |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local myconf="\ |
71 |
+ --without-global-oz \ |
72 |
+ --enable-opt=none" |
73 |
+ |
74 |
+ if use tcl && use tk ; then |
75 |
+ myconf="${myconf} --enable-wish" |
76 |
+ else |
77 |
+ myconf="${myconf} --disable-wish" |
78 |
+ fi |
79 |
+ |
80 |
+ econf \ |
81 |
+ ${myconf} \ |
82 |
+ --disable-doc \ |
83 |
+ --enable-contrib \ |
84 |
+ --disable-contrib-micq \ |
85 |
+ $(use_enable doc contrib-doc) \ |
86 |
+ $(use_enable gdbm contrib-gdbm) \ |
87 |
+ $(use_enable tk contrib-tk) \ |
88 |
+ $(use_enable emacs compile-elisp) \ |
89 |
+ $(use_enable static link-static) \ |
90 |
+ $(use_enable threads threaded) |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ emake bootstrap |
95 |
+} |
96 |
+ |
97 |
+src_test() { |
98 |
+ # Mozart tests must be run single-threaded |
99 |
+ cd "${S}"/share/test || die |
100 |
+ emake -j1 boot-oztest |
101 |
+ emake -j1 boot-check |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ emake \ |
106 |
+ PREFIX="${D}"/usr/lib/mozart \ |
107 |
+ ELISPDIR="${D}${SITELISP}/${PN}" \ |
108 |
+ install |
109 |
+ |
110 |
+ dosym /usr/lib/mozart/bin/convertTextPickle /usr/bin/convertTextPickle |
111 |
+ dosym /usr/lib/mozart/bin/oldpickle2text /usr/bin/oldpickle2text |
112 |
+ dosym /usr/lib/mozart/bin/ozc /usr/bin/ozc |
113 |
+ dosym /usr/lib/mozart/bin/ozd /usr/bin/ozd |
114 |
+ dosym /usr/lib/mozart/bin/ozengine /usr/bin/ozengine |
115 |
+ dosym /usr/lib/mozart/bin/ozl /usr/bin/ozl |
116 |
+ dosym /usr/lib/mozart/bin/ozplatform /usr/bin/ozplatform |
117 |
+ dosym /usr/lib/mozart/bin/oztool /usr/bin/oztool |
118 |
+ dosym /usr/lib/mozart/bin/pickle2text /usr/bin/pickle2text |
119 |
+ dosym /usr/lib/mozart/bin/text2pickle /usr/bin/text2pickle |
120 |
+ |
121 |
+ if use emacs; then |
122 |
+ dosym /usr/lib/mozart/bin/oz /usr/bin/oz |
123 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
124 |
+ fi |
125 |
+ |
126 |
+ dodoc "${S}"/README |
127 |
+ if use doc ; then |
128 |
+ docinto html |
129 |
+ dodoc -r "${WORKDIR}"/mozart/doc/* |
130 |
+ fi |
131 |
+ |
132 |
+ if use examples; then |
133 |
+ cd "${S}"/share || die |
134 |
+ insinto /usr/share/doc/${PF} |
135 |
+ doins -r examples demo |
136 |
+ rm -rf $(find "${ED}"/usr/share/doc/${PF}/examples \ |
137 |
+ -name Makefile -o -name Makefile.in) || die |
138 |
+ fi |
139 |
+} |
140 |
+ |
141 |
+pkg_postinst() { |
142 |
+ use emacs && elisp-site-regen |
143 |
+} |
144 |
+ |
145 |
+pkg_postrm() { |
146 |
+ use emacs && elisp-site-regen |
147 |
+} |