Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emacs/cedet: cedet-1.0_pre6.ebuild
Date: Sun, 01 Mar 2009 16:10:14
Message-Id: E1LdoF2-0002nD-1m@stork.gentoo.org
1 ulm 09/03/01 16:10:12
2
3 Modified: cedet-1.0_pre6.ebuild
4 Log:
5 Replace basename and dirname by their shell equivalents.
6 (Portage version: 2.2_rc23/cvs/Linux i686)
7
8 Revision Changes Path
9 1.2 app-emacs/cedet/cedet-1.0_pre6.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/cedet/cedet-1.0_pre6.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/cedet/cedet-1.0_pre6.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/cedet/cedet-1.0_pre6.ebuild?r1=1.1&r2=1.2
14
15 Index: cedet-1.0_pre6.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/app-emacs/cedet/cedet-1.0_pre6.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- cedet-1.0_pre6.ebuild 1 Mar 2009 15:38:25 -0000 1.1
22 +++ cedet-1.0_pre6.ebuild 1 Mar 2009 16:10:11 -0000 1.2
23 @@ -1,6 +1,6 @@
24 # Copyright 1999-2009 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/app-emacs/cedet/cedet-1.0_pre6.ebuild,v 1.1 2009/03/01 15:38:25 ulm Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/cedet/cedet-1.0_pre6.ebuild,v 1.2 2009/03/01 16:10:11 ulm Exp $
28
29 NEED_EMACS=22
30
31 @@ -33,30 +33,31 @@
32 }
33
34 src_install() {
35 + local target file dir
36 find . -type d -name tests -prune -o -type f -print | while read target
37 do
38 - local directory=$(dirname ${target}) file=$(basename ${target})
39 - local sub_directory=$(echo ${directory} | sed "s%^${S}/*%%;s/^$/./")
40 - case $file in
41 + file=${target##*/}
42 + dir=${target%/*}; dir=${dir#./}
43 + case "${file}" in
44 *~ | Makefile | *.texi | *-script | PRERELEASE_CHECKLIST \
45 | Project.ede | USING_CEDET_FROM_CVS | grammar-fw-ov.txt)
46 ;;
47 ChangeLog | README | AUTHORS | *NEWS | INSTALL \
48 | renamelist.txt | semanticdb.sh)
49 - docinto ${sub_directory}
50 - dodoc ${target} || die ;;
51 + docinto "${dir}"
52 + dodoc "${target}" || die ;;
53 *.el | *.elc | *.by | *.wy)
54 # install grammar sources along with the elisp files, since
55 # the location where semantic expects them is not configurable
56 - insinto ${SITELISP}/${PN}/${sub_directory}
57 - doins ${target} || die ;;
58 + insinto "${SITELISP}/${PN}/${dir}"
59 + doins "${target}" || die ;;
60 *.srt | *.xpm)
61 - insinto ${SITEETC}/${PN}/${sub_directory}
62 - doins ${target} || die ;;
63 + insinto "${SITEETC}/${PN}/${dir}"
64 + doins "${target}" || die ;;
65 *.info* | grammar-fw-ov.png)
66 - doinfo ${target} || die ;;
67 + doinfo "${target}" || die ;;
68 *)
69 - die "Unrecognised file ${sub_directory}/${file}" ;;
70 + die "Unrecognised file ${target}" ;;
71 esac
72 done