• R/O
  • HTTP
  • SSH
  • HTTPS

MacPorts: Commit

My MacPorts


Commit MetaInfo

Revision5dfbb0996028fcd40ba11943fa1d8bfa936674dd (tree)
Time2009-07-10 22:46:39
AuthorKazuki Sakamoto <sakamoto@splh...>
CommiterKazuki Sakamoto

Log Message

macvim: enable netbeans, add vimproc, remove +gdb

Change Summary

  • modified: editors/macvim/Portfile (diff)
  • delete: editors/macvim/files/gdb
  • delete: editors/macvim/files/patch-gdb.c
  • delete: editors/macvim/files/patch-option.c

Incremental Difference

--- a/editors/macvim/Portfile
+++ b/editors/macvim/Portfile
@@ -2,7 +2,7 @@
22 PortSystem 1.0
33
44 name macvim
5-version 20090620
5+version 20090710
66 revision 0
77 categories editors
88 platforms darwin
@@ -12,11 +12,12 @@ long_description MacVim supports multiple windows with tabbed editing and a host
1212 MacVim brings you the full power of Vim to Mac OS X.
1313 homepage http://code.google.com/p/macvim-kaoriya/
1414
15-set gittag ${version}
15+#set gittag ${version}
16+set gittag ba738f99cdb041b8036d3a5347f423ebe0ab8049
1617 distname KaoriYa-${gittag}
1718 use_zip yes
1819 checksums \
19- ${distname}.zip sha1 ff8e8cddb21ccdb51ea90e244be645fcc6d8278b
20+ ${distname}.zip sha1 9e5051886dff986083fe383127d2b925eb06c0c5
2021 master_sites \
2122 "http://repo.or.cz/w/MacVim/KaoriYa.git?a=snapshot;h=${gittag};sf=zip&"
2223 worksrcdir KaoriYa/src
@@ -25,7 +26,8 @@ extract.only ${distname}.zip
2526 depends_lib port:cmigemo \
2627 port:gettext \
2728 port:libiconv \
28- port:ncurses
29+ port:ncurses \
30+ port:vimproc
2931
3032 configure.pre_args --prefix=${applications_dir}
3133 configure.args --enable-gui=macvim \
@@ -33,6 +35,7 @@ configure.args --enable-gui=macvim \
3335 --disable-gpm \
3436 --with-features=huge \
3537 --enable-multibyte \
38+ --enable-netbeans \
3639 --with-tlib=ncurses
3740 configure.cppflags -I${prefix}/include
3841 configure.ldflags -L${prefix}/lib
@@ -108,6 +111,7 @@ variant standalone description {Enable standalonize} {
108111 reinplace "s|^RUBY_LIBS|#RUBY_LIBS|" ${worksrcpath}/auto/config.mk
109112 }
110113 post-destroot {
114+ # dylibs
111115 foreach dylib {intl.8 iconv.2 migemo.1 ncurses.5} {
112116 set libname [lindex [split ${dylib} .] 0]
113117 set instname "@executable_path/../Frameworks/lib${libname}.dylib"
@@ -128,6 +132,7 @@ variant standalone description {Enable standalonize} {
128132 @executable_path/../Frameworks/libiconv.dylib \
129133 ${appPath}/Frameworks/libintl.dylib"
130134
135+ # migemo dicts
131136 xinstall -d 755 ${runtimePath}/dict
132137 foreach mdict {han2zen.dat hira2kata.dat \
133138 migemo-dict roma2hira.dat zen2han.dat} {
@@ -135,8 +140,12 @@ variant standalone description {Enable standalonize} {
135140 ${runtimePath}/dict
136141 }
137142
143+ # ctags
138144 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
139150 }
140151 }
141-
142-include gdb
--- a/editors/macvim/files/gdb
+++ /dev/null
@@ -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-}
--- a/editors/macvim/files/patch-gdb.c
+++ /dev/null
@@ -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);
--- a/editors/macvim/files/patch-option.c
+++ /dev/null
@@ -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},
Show on old repository browser