Created
December 27, 2008 13:41
-
-
Save tsukkee/40252 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% diff -u Portfile_old Portfile_new | |
--- Portfile_old 2008-06-07 12:49:27.000000000 +0900 | |
+++ Portfile_new 2008-12-27 22:37:04.000000000 +0900 | |
@@ -19,8 +19,9 @@ | |
configure.args --enable-gui=macvim --without-x --disable-gpm \ | |
--with-features=huge --enable-multibyte \ | |
--mandir=${prefix}/share/man --with-tlib=ncurses | |
-patchfiles-append patch-os_mac.h \ | |
- patch-MMTextView.m patch-MMTextStorage.h patch-MMTextStorage.m | |
+patchfiles-append patch-os_mac.h | |
+# patchfiles-append patch-os_mac.h \ | |
+ # patch-MMTextView.m patch-MMTextStorage.h patch-MMTextStorage.m | |
test.run yes | |
@@ -51,12 +52,10 @@ | |
} | |
post-fetch { | |
- cd ${distpath} | |
if {[file exists ${distpath}/${worksrcdir}]} { | |
- cd ${worksrcdir} | |
- system "git pull" | |
+ system "cd ${distpath}/${worksrcdir}; git pull" | |
} else { | |
- system "git clone git://repo.or.cz/MacVim.git" | |
+ system "cd ${distpath}; git clone git://repo.or.cz/MacVim.git" | |
#system "git clone http://repo.or.cz/r/MacVim.git" | |
} | |
} | |
@@ -74,14 +73,14 @@ | |
checksums-append vim71-20080531-kaoriya-w32j.exe md5 ca5f5cc543e18256e235205d59bc0a1a | |
depends_lib-append bin:7za:p7zip | |
post-patch { | |
- cd ${worksrcpath} | |
- system "7za x ${distpath}/vim71-20080531-kaoriya-w32j.exe" | |
- system "rm vim71-kaoriya-w32j/patches/0001-memwatch.diff" | |
- system "rm vim71-kaoriya-w32j/patches/1002-changelog_dateentry.diff" | |
- system "cat vim71-kaoriya-w32j/patches/* | patch -p0 -F3" | |
- system "cat ${portpath}/${filesdir}/patch-configure.in | patch -p0" | |
- system "cat ${portpath}/${filesdir}/patch-gui_macvim.m | patch -p0" | |
- system "cat ${portpath}/${filesdir}/patch-mbyte.c | patch -p0" | |
+ system "cd ${worksrcpath}; | |
+ 7za x ${distpath}/vim71-20080531-kaoriya-w32j.exe; | |
+ rm vim71-kaoriya-w32j/patches/0001-memwatch.diff; | |
+ rm vim71-kaoriya-w32j/patches/1002-changelog_dateentry.diff; | |
+ cat vim71-kaoriya-w32j/patches/* | patch -p0 -F3; | |
+ cat ${portpath}/${filesdir}/patch-configure.in | patch -p0; | |
+ cat ${portpath}/${filesdir}/patch-gui_macvim.m | patch -p0; | |
+ cat ${portpath}/${filesdir}/patch-mbyte.c | patch -p0" | |
#system "cat ${portpath}/${filesdir}/patch-option.c | patch -p0" | |
#system "cat ${portpath}/${filesdir}/patch-syntax.c | patch -p0" | |
} | |
@@ -90,16 +89,14 @@ | |
} | |
pre-configure { | |
- cd ${worksrcpath}/src | |
- system "make autoconf" | |
+ system "cd ${worksrcpath}/src; make autoconf" | |
} | |
post-build { | |
- cd ${worksrcpath}/src/MacVim | |
if {[variant_isset universal]} { | |
- system "xcodebuild -configuration Release ARCHS='i386 ppc'" | |
+ system "cd ${worksrcpath}/src/MacVim; xcodebuild -configuration Release ARCHS='i386 ppc'" | |
} else { | |
- system "xcodebuild -configuration Release" | |
+ system "cd ${worksrcpath}/src/MacVim; xcodebuild -configuration Release" | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment