Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 194604 | Differences between
and this patch

Collapse All | Expand All

(-)mozart-1.3.2.ebuild (-7 / +17 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/mozart-1.3.2.ebuild,v 1.6 2007/09/29 05:49:54 keri Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/mozart-1.3.2.ebuild,v 1.6 2007/09/29 05:49:54 keri Exp $
4
4
5
inherit eutils
5
inherit elisp-common eutils
6
6
7
MY_P="mozart-${PV}.20060615"
7
MY_P="mozart-${PV}.20060615"
8
8
Lines 21-32 Link Here
21
	sys-devel/bison
21
	sys-devel/bison
22
	sys-devel/flex
22
	sys-devel/flex
23
	sys-libs/zlib
23
	sys-libs/zlib
24
	emacs? ( virtual/emacs )
24
	gdbm? ( sys-libs/gdbm  )
25
	gdbm? ( sys-libs/gdbm  )
25
	tcl? ( tk? (
26
	tcl? ( tk? (
26
			dev-lang/tk
27
			dev-lang/tk
27
			dev-lang/tcl ) )"
28
			dev-lang/tcl ) )"
28
RDEPEND="${DEPEND}"
29
RDEPEND="${DEPEND}"
29
30
31
SITEFILE=50${PN}-gentoo.el
32
30
S="${WORKDIR}"/${MY_P}
33
S="${WORKDIR}"/${MY_P}
31
34
32
src_unpack() {
35
src_unpack() {
Lines 47-58 Link Here
47
			--without-global-oz \
50
			--without-global-oz \
48
			--enable-opt=none"
51
			--enable-opt=none"
49
52
50
	if use emacs ; then
51
		myconf="${myconf} --enable-compile-elisp"
52
	else
53
		myconf="${myconf} --disable-compile-elisp"
54
	fi
55
56
	if use tcl && use tk ; then
53
	if use tcl && use tk ; then
57
		myconf="${myconf} --enable-wish"
54
		myconf="${myconf} --enable-wish"
58
	else
55
	else
Lines 77-82 Link Here
77
		--disable-doc \
74
		--disable-doc \
78
		$(use_enable doc contrib-doc) \
75
		$(use_enable doc contrib-doc) \
79
		$(use_enable gdbm contrib-gdbm) \
76
		$(use_enable gdbm contrib-gdbm) \
77
		$(use_enable emacs compile-elisp) \
80
		$(use_enable static link-static) \
78
		$(use_enable static link-static) \
81
		$(use_enable threads threaded) \
79
		$(use_enable threads threaded) \
82
		|| die "econf failed"
80
		|| die "econf failed"
Lines 88-98 Link Here
88
	emake -j1 \
86
	emake -j1 \
89
		PREFIX="${D}"/usr/lib/mozart \
87
		PREFIX="${D}"/usr/lib/mozart \
90
		BINDIR="${D}"/usr/bin \
88
		BINDIR="${D}"/usr/bin \
89
		ELISPDIR="${D}${SITELISP}/${PN}" \
91
		install || die "emake install failed"
90
		install || die "emake install failed"
92
91
92
	elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
93
		|| die "elisp-site-file-install failed"
94
93
	if use doc ; then
95
	if use doc ; then
94
		dohtml -r "${WORKDIR}"/mozart/doc/*
96
		dohtml -r "${WORKDIR}"/mozart/doc/*
95
	fi
97
	fi
96
98
97
	dodoc README
99
	dodoc README
98
}
100
}
101
102
pkg_postinst() {
103
	use emacs && elisp-site-regen
104
}
105
106
pkg_postrm() {
107
	use emacs && elisp-site-regen
108
}

Return to bug 194604