My MacPorts
Revision | 5dfbb0996028fcd40ba11943fa1d8bfa936674dd (tree) |
---|---|
Time | 2009-07-10 22:46:39 |
Author | Kazuki Sakamoto <sakamoto@splh...> |
Commiter | Kazuki Sakamoto |
macvim: enable netbeans, add vimproc, remove +gdb
@@ -2,7 +2,7 @@ | ||
2 | 2 | PortSystem 1.0 |
3 | 3 | |
4 | 4 | name macvim |
5 | -version 20090620 | |
5 | +version 20090710 | |
6 | 6 | revision 0 |
7 | 7 | categories editors |
8 | 8 | platforms darwin |
@@ -12,11 +12,12 @@ long_description MacVim supports multiple windows with tabbed editing and a host | ||
12 | 12 | MacVim brings you the full power of Vim to Mac OS X. |
13 | 13 | homepage http://code.google.com/p/macvim-kaoriya/ |
14 | 14 | |
15 | -set gittag ${version} | |
15 | +#set gittag ${version} | |
16 | +set gittag ba738f99cdb041b8036d3a5347f423ebe0ab8049 | |
16 | 17 | distname KaoriYa-${gittag} |
17 | 18 | use_zip yes |
18 | 19 | checksums \ |
19 | - ${distname}.zip sha1 ff8e8cddb21ccdb51ea90e244be645fcc6d8278b | |
20 | + ${distname}.zip sha1 9e5051886dff986083fe383127d2b925eb06c0c5 | |
20 | 21 | master_sites \ |
21 | 22 | "http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&" |
22 | 23 | worksrcdir KaoriYa/src |
@@ -25,7 +26,8 @@ extract.only ${distname}.zip | ||
25 | 26 | depends_lib port:cmigemo \ |
26 | 27 | port:gettext \ |
27 | 28 | port:libiconv \ |
28 | - port:ncurses | |
29 | + port:ncurses \ | |
30 | + port:vimproc | |
29 | 31 | |
30 | 32 | configure.pre_args --prefix=${applications_dir} |
31 | 33 | configure.args --enable-gui=macvim \ |
@@ -33,6 +35,7 @@ configure.args --enable-gui=macvim \ | ||
33 | 35 | --disable-gpm \ |
34 | 36 | --with-features=huge \ |
35 | 37 | --enable-multibyte \ |
38 | + --enable-netbeans \ | |
36 | 39 | --with-tlib=ncurses |
37 | 40 | configure.cppflags -I${prefix}/include |
38 | 41 | configure.ldflags -L${prefix}/lib |
@@ -108,6 +111,7 @@ variant standalone description {Enable standalonize} { | ||
108 | 111 | reinplace "s|^RUBY_LIBS|#RUBY_LIBS|" ${worksrcpath}/auto/config.mk |
109 | 112 | } |
110 | 113 | post-destroot { |
114 | + # dylibs | |
111 | 115 | foreach dylib {intl.8 iconv.2 migemo.1 ncurses.5} { |
112 | 116 | set libname [lindex [split ${dylib} .] 0] |
113 | 117 | set instname "@executable_path/../Frameworks/lib${libname}.dylib" |
@@ -128,6 +132,7 @@ variant standalone description {Enable standalonize} { | ||
128 | 132 | @executable_path/../Frameworks/libiconv.dylib \ |
129 | 133 | ${appPath}/Frameworks/libintl.dylib" |
130 | 134 | |
135 | + # migemo dicts | |
131 | 136 | xinstall -d 755 ${runtimePath}/dict |
132 | 137 | foreach mdict {han2zen.dat hira2kata.dat \ |
133 | 138 | migemo-dict roma2hira.dat zen2han.dat} { |
@@ -135,8 +140,12 @@ variant standalone description {Enable standalonize} { | ||
135 | 140 | ${runtimePath}/dict |
136 | 141 | } |
137 | 142 | |
143 | + # ctags | |
138 | 144 | xinstall -m 755 ${prefix}/bin/ctags ${appPath}/MacOS/ctags |
145 | + | |
146 | + # vimproc | |
147 | + set vimprocPath ${prefix}/share/vimproc/autoload | |
148 | + xinstall -m 755 ${vimprocPath}/proc.so ${runtimePath}/autoload | |
149 | + xinstall -m 644 ${vimprocPath}/proc.vim ${runtimePath}/autoload | |
139 | 150 | } |
140 | 151 | } |
141 | - | |
142 | -include gdb |
@@ -1,25 +0,0 @@ | ||
1 | -set gdbdistfile vimgdb72-1.14.tar.gz | |
2 | -variant gdb description {Enable GDB integration} { | |
3 | - depends_build-append bin:gnutar:gnutar | |
4 | - master_sites-append sourceforge:clewn:gdb | |
5 | - distfiles-append ${gdbdistfile}:gdb | |
6 | - checksums-append ${gdbdistfile} md5 e406c64d29a3152a3f5d0fffe3d2bba8 | |
7 | - configure.args-append --enable-gdb | |
8 | - patchfiles-append patch-gdb.c patch-option.c | |
9 | - post-extract { | |
10 | - system "gnutar xvfz ${distpath}/${gdbdistfile} -C ${workpath}" | |
11 | - } | |
12 | - pre-patch { | |
13 | - system "patch -d ${worksrcpath} -F3 -p1 < \ | |
14 | - ${workpath}/vimgdb/vim72.diff || /usr/bin/true" | |
15 | - } | |
16 | - post-destroot { | |
17 | - set appPath "${destroot}${applications_dir}/MacVim.app" | |
18 | - set runtimePath "${appPath}/Contents/Resources/vim/runtime" | |
19 | - system "gnutar xvfz ${workpath}/vimgdb/vimgdb_runtime.tgz \ | |
20 | - -C ${runtimePath}" | |
21 | - system "${appPath}/Contents/MacOS/Vim \ | |
22 | - --cmd \"helptag ${runtimePath}/doc\" \ | |
23 | - --cmd exit" | |
24 | - } | |
25 | -} |
@@ -1,29 +0,0 @@ | ||
1 | ---- gdb.c.orig | |
2 | -+++ gdb.c | |
3 | -@@ -1605,7 +1605,7 @@ | |
4 | - if (this->buf == NULL) | |
5 | - { | |
6 | - p_mm = MAXMEM; /* buffer max virtual memory */ | |
7 | -- (void)do_ecmd(0, name, NULL, NULL, ECMD_ONE, ECMD_HIDE); | |
8 | -+ (void)do_ecmd(0, name, NULL, NULL, ECMD_ONE, ECMD_HIDE, NULL); | |
9 | - p_mm = s_mm; | |
10 | - | |
11 | - vim_free(name); /* free name with vim_free */ | |
12 | -@@ -1665,7 +1665,7 @@ | |
13 | - if (win_split(0, WSP_BOT) == OK) | |
14 | - { | |
15 | - /* create the asm buffer empty */ | |
16 | -- (void)do_ecmd(0, NULL, NULL, NULL, ECMD_ONE, ECMD_HIDE); | |
17 | -+ (void)do_ecmd(0, NULL, NULL, NULL, ECMD_ONE, ECMD_HIDE, NULL); | |
18 | - gdb_as_setname(name); | |
19 | - # ifdef FEAT_AUTOCMD | |
20 | - /* allow autocommands for loading syntax */ | |
21 | -@@ -1972,7 +1972,7 @@ | |
22 | - } | |
23 | - | |
24 | - (void)do_ecmd(0, fpn, NULL, NULL, lnum, | |
25 | -- (P_HID(curbuf) ? ECMD_HIDE : 0) + ECMD_OLDBUF); | |
26 | -+ (P_HID(curbuf) ? ECMD_HIDE : 0) + ECMD_OLDBUF, NULL); | |
27 | - } | |
28 | - else if (buf != curbuf) | |
29 | - set_curbuf(buf, DOBUF_GOTO); |
@@ -1,56 +0,0 @@ | ||
1 | ---- option.c.orig | |
2 | -+++ option.c | |
3 | -@@ -524,11 +524,6 @@ | |
4 | - (char_u *)NULL, PV_NONE, | |
5 | - #endif | |
6 | - {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, | |
7 | --#ifdef FEAT_GDB | |
8 | -- {"asm", NULL, P_NUM|P_VI_DEF, | |
9 | -- (char_u *)&p_asm, PV_NONE, | |
10 | -- {(char_u *)10L, (char_u *)0L}}, | |
11 | --#endif | |
12 | - {"altkeymap", "akm", P_BOOL|P_VI_DEF, | |
13 | - #ifdef FEAT_FKMAP | |
14 | - (char_u *)&p_altkeymap, PV_NONE, | |
15 | -@@ -545,6 +540,11 @@ | |
16 | - {(char_u *)0L, (char_u *)0L} | |
17 | - #endif | |
18 | - SCRIPTID_INIT}, | |
19 | -+#ifdef FEAT_GDB | |
20 | -+ {"asm", NULL, P_NUM|P_VI_DEF, | |
21 | -+ (char_u *)&p_asm, PV_NONE, | |
22 | -+ {(char_u *)10L, (char_u *)0L}}, | |
23 | -+#endif | |
24 | - #ifdef FEAT_AUTOCHDIR | |
25 | - {"autochdir", "acd", P_BOOL|P_VI_DEF, | |
26 | - (char_u *)&p_acd, PV_NONE, | |
27 | -@@ -1158,14 +1158,6 @@ | |
28 | - # endif | |
29 | - SCRIPTID_INIT}, | |
30 | - #endif | |
31 | --#ifdef FEAT_GDB | |
32 | -- {"gdbvariables", "gdbvar",P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, | |
33 | -- (char_u *)&p_gvar, PV_NONE, | |
34 | -- {(char_u *)"gdb-variables", (char_u *)0L} }, | |
35 | -- {"gdbprg", "gdp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, | |
36 | -- (char_u *)&p_gdp, PV_NONE, | |
37 | -- {(char_u *)"gdb", (char_u *)0L} }, | |
38 | --#endif | |
39 | - {"formatexpr", "fex", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM, | |
40 | - #ifdef FEAT_EVAL | |
41 | - (char_u *)&p_fex, PV_FEX, | |
42 | -@@ -1211,6 +1203,14 @@ | |
43 | - {(char_u *)NULL, (char_u *)0L} | |
44 | - #endif | |
45 | - SCRIPTID_INIT}, | |
46 | -+#ifdef FEAT_GDB | |
47 | -+ {"gdbvariables", "gdbvar",P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, | |
48 | -+ (char_u *)&p_gvar, PV_NONE, | |
49 | -+ {(char_u *)"gdb-variables", (char_u *)0L} }, | |
50 | -+ {"gdbprg", "gdp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, | |
51 | -+ (char_u *)&p_gdp, PV_NONE, | |
52 | -+ {(char_u *)"gdb", (char_u *)0L} }, | |
53 | -+#endif | |
54 | - {"gdefault", "gd", P_BOOL|P_VI_DEF|P_VIM, | |
55 | - (char_u *)&p_gd, PV_NONE, | |
56 | - {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, |