Ignore:
Timestamp:
Apr 11, 2009, 12:13:21 AM (11 years ago)
Author:
raimue@…
Message:

editors/MacVim:
Instead of patching the configure script directly, patch configure.in and run
autoconf. See also r49481.
Strip src/ from worksrcdir as it allows unmodified use of patches applied to vim.

Location:
trunk/dports/editors/MacVim
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/editors/MacVim/Portfile

    r49226 r49486  
    2222                    rmd160  63ac0431d43ce6c72b6ec53b7c032b0d60c1ff16
    2323use_zip             yes
    24 worksrcdir          MacVim/src
     24worksrcdir          ${name}
    2525
    2626depends_build       bin:gnutar:gnutar \
    27                     bin:grep:grep
     27                    bin:grep:grep \
     28                    bin:autoconf:autoconf
    2829depends_lib         port:ncurses \
    2930                    port:libiconv \
    3031                    port:ctags
    3132
    32 patchfiles          patch-configure.diff
     33patchfiles          patch-x-includes.diff
     34
     35pre-configure {
     36    system "cd ${worksrcpath}/src && autoconf"
     37}
    3338
    3439configure.args      --enable-gui=macvim \
     
    4348post-patch {
    4449    reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \
    45          ${worksrcpath}/MacVim/mvim
     50         ${worksrcpath}/src/MacVim/mvim
    4651}
    4752
     53build.dir ${worksrcpath}/src
    4854post-build {
    49     system "cd ${worksrcpath}/MacVim && xcodebuild"
     55    system "cd ${worksrcpath}/src/MacVim && xcodebuild"
    5056}
    5157
     
    5662
    5763destroot {
    58     copy ${worksrcpath}/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
    59     copy ${worksrcpath}/MacVim/mvim ${destroot}${prefix}/bin
     64    copy ${worksrcpath}/src/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
     65    copy ${worksrcpath}/src/MacVim/mvim ${destroot}${prefix}/bin
    6066}
    6167
Note: See TracChangeset for help on using the changeset viewer.