source: trunk/dports/editors/cedet/Portfile

Last change on this file was 94228, checked in by dports@…, 5 years ago

cedet: update to v1.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 94228 2012-06-13 00:10:08Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            cedet
7version         1.1
8categories      editors
9platforms       darwin
10license         GPL-2+
11maintainers     nomaintainer
12supported_archs noarch
13
14description     Infrastructure for parser based text analysis in Emacs
15
16long_description \
17    Semantic is an infrastructure for parser based text analysis in Emacs. \
18    It is a lexer, parser-generator, and parser. It is written in Emacs \
19    Lisp and is customized to the way Emacs thinks about language files, \
20    and is optimized to use Emacs' parsing capabilities.
21
22homepage        http://cedet.sourceforge.net/
23master_sites    sourceforge:project/cedet/cedet
24
25checksums       rmd160  4995ba86c3e0516a3391dad6d1c45ca7e80145e3 \
26                sha256  42c0650fa1d0c9a428d186b421f0057294bcfaec09c8b7bb4a0128ce2fe54b5c
27
28depends_lib     port:emacs
29
30use_configure   no
31
32use_parallel_build  no
33
34destroot {
35    set lispdir $prefix/share/emacs/site-lisp
36
37    set packages {
38        common
39        ede
40        speedbar
41        eieio
42        semantic
43        cogre
44        contrib
45        srecode
46    }
47
48    proc destroot_package package_dir {
49        global  destroot worksrcpath
50        upvar   lispdir lispdir
51
52        xinstall -d $destroot$lispdir/$package_dir
53        foreach f [glob -directory $worksrcpath/$package_dir *] {
54            if {[file isdirectory $f]} {
55                set p [file tail $f]
56
57                if {$p ne "." && $p ne ".."} {
58                    destroot_package $package_dir/$p
59                }
60            } else {
61                set ext [file extension $f]
62
63                if {$ext eq ".el" || $ext eq ".elc"} {
64                    xinstall -m 644 $f $destroot$lispdir/$package_dir
65                }
66            }
67        }
68    }
69
70    foreach p $packages {
71        destroot_package $p
72    }
73}
Note: See TracBrowser for help on using the repository browser.