Ticket #36118: ne-2.4.diff
File ne-2.4.diff, 3.0 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago) |
---|
-
files/patch-makefile
1 --- makefile.orig 2010-04-28 20:59:02.000000000 -0700 2 +++ makefile 2010-04-28 20:59:08.000000000 -0700 3 @@ -7,7 +7,7 @@ 4 # to install ne locally into the directory <dir>. 1 --- makefile.orig 2012-04-18 17:53:26.000000000 -0500 2 +++ makefile 2012-09-12 13:51:38.000000000 -0500 3 @@ -8,7 +8,7 @@ 5 4 5 .PHONY: install 6 6 7 7 -PREFIX=/usr/local 8 8 +PREFIX=__PREFIX__ -
files/patch-src☃makefile
1 --- src/makefile.orig 201 0-04-28 21:01:25.000000000 -07002 +++ src/makefile 201 0-04-28 21:02:08.000000000 -07001 --- src/makefile.orig 2012-04-18 17:46:29.000000000 -0500 2 +++ src/makefile 2012-09-12 14:08:50.000000000 -0500 3 3 @@ -88,6 +88,8 @@ 4 4 NE_DEBUG= 5 5 NE_TEST= … … 12 12 @@ -97,9 +99,10 @@ 13 13 $(if $(NE_POSIX), -D_POSIX_C_SOURCE=199506L,) \ 14 14 $(if $(NE_NOWCHAR), -DNOWCHAR,) \ 15 $(if $(NE_TEST), -DNE_TEST ,) \15 $(if $(NE_TEST), -DNE_TEST -coverage,) \ 16 16 - $(if $(NE_DEBUG), -g,-O3 -DNDEBUG) \ 17 17 + __CFLAGS__ \ 18 18 $(if $(NE_TERMCAP), -DTERMCAP,) \ 19 19 $(if $(NE_ANSI), -DTERMCAP -DANSI,) 20 20 +LDFLAGS=__LDFLAGS__ 21 21 22 22 23 LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses) 23 -
Portfile
2 2 3 3 PortSystem 1.0 4 4 name ne 5 version 2. 15 version 2.4 6 6 categories editors 7 7 maintainers toby 8 8 description ne - nice editor … … 13 13 resource usage. 14 14 homepage http://ne.dsi.unimi.it/ 15 15 platforms darwin 16 license GPL- 216 license GPL-3+ 17 17 18 18 master_sites ${homepage} 19 checksums md5 4fc50834fd2036fd0bb5f125aa4124eb \20 sha1 d7a3b15d550705a940ebed14d5ca8e99bb06f72e \21 rmd160 8dca4b4c361712b674a3f2b3c1f122b611cf201f22 19 20 checksums rmd160 269ce9cee57c0677dc8a0ec94a0d28535e1caa13 \ 21 sha256 a4951b212e7aab71f24ac80f2baec50aa490fc119b09abd6a2cc351e3209d0d4 22 23 23 patchfiles patch-makefile patch-src☃makefile 24 24 25 25 configure { 26 26 reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/makefile 27 27 reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/src/makefile 28 reinplace "s|__CFLAGS__|${configure.cflags} |" ${worksrcpath}/src/makefile29 reinplace "s|__LDFLAGS__|${configure.ldflags} |" ${worksrcpath}/src/makefile28 reinplace "s|__CFLAGS__|${configure.cflags} [get_canonical_archflags cc]|" ${worksrcpath}/src/makefile 29 reinplace "s|__LDFLAGS__|${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/src/makefile 30 30 } 31 31 32 32 build.target 33 33 34 34 livecheck.type regex 35 livecheck.regex HREF=\"ne-(.*)\\.tar\\.gz\">general35 livecheck.regex \"${name}-(.*)${extract.suffix}\"