blob: b0de9f1998de9a5e2413002f3ec6068a80de2119 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/cedet/cedet-1.0.ebuild,v 1.4 2010/10/12 15:58:30 armin76 Exp $
NEED_EMACS=22
inherit elisp
MY_P=${P/_}
DESCRIPTION="CEDET: Collection of Emacs Development Environment Tools"
HOMEPAGE="http://cedet.sourceforge.net/"
SRC_URI="mirror://sourceforge/cedet/${MY_P}.tar.gz"
LICENSE="GPL-2 FDL-1.2"
SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86 ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris"
IUSE=""
DEPEND=""
RDEPEND="!app-emacs/semantic
!app-emacs/eieio
!app-emacs/speedbar"
S="${WORKDIR}/${MY_P}"
SITEFILE="50${PN}-gentoo.el"
src_compile() {
emake -j1 \
EMACS="${EMACS}" \
EMACSFLAGS="${EMACSFLAGS}" \
|| die "emake failed"
}
src_test() {
emake -j1 \
EMACS="${EMACS}" \
EMACSFLAGS="${EMACSFLAGS}" \
utest || die "make utest failed"
}
src_install() {
local target file dir
find . -type d -name tests -prune -o -type f -print | while read target
do
file=${target##*/}
dir=${target%/*}; dir=${dir#./}
case "${file}" in
*~ | Makefile | *.texi | *-script | PRERELEASE_CHECKLIST \
| Project.ede | USING_CEDET_FROM_CVS | grammar-fw-ov.txt)
;;
ChangeLog | README | AUTHORS | *NEWS | INSTALL \
| renamelist.txt | semanticdb.sh)
docinto "${dir}"
dodoc "${target}" || die ;;
*.el | *.by | *.wy)
# install grammar sources along with the elisp files, since
# the location where semantic expects them is not configurable
insinto "${SITELISP}/${PN}/${dir}"
doins "${target}" || die ;;
*.elc)
# we are in a subshell, so collecting in a variable won't work
echo "${target}" >>"${T}/elc-list.txt" ;;
*.srt | *.xpm)
insinto "${SITEETC}/${PN}/${dir}"
doins "${target}" || die ;;
*.info* | grammar-fw-ov.png)
doinfo "${target}" || die ;;
*)
die "Unrecognised file ${target}" ;;
esac
done
# make sure that the compiled elisp files have a later time stamp than
# the corresponding sources, in order to suppress warnings at run time
while read target; do
dir=${target%/*}; dir=${dir#./}
insinto "${SITELISP}/${PN}/${dir}"
doins "${target}" || die
done <"${T}/elc-list.txt"
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
}
|