Ticket #40612: highlight.diff
File highlight.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago) |
---|
-
files/patch-makefile.diff
1 --- work/highlight-3.9/makefile 2010-07-28 23:16:48.000000000 +0200 2 +++ makefile 2012-06-09 10:20:54.000000000 +0200 3 @@ -5,10 +5,10 @@ 4 # Installation directories: 5 6 # Destination directory for installation (intended for packagers) 7 -DESTDIR = 8 +DESTDIR = @destroot@ 9 10 # Root directory for final installation 11 -PREFIX = /usr 12 +PREFIX = @prefix@ 13 14 # Location of the highlight data files: 15 data_dir = ${PREFIX}/share/highlight/ 16 @@ -26,7 +26,7 @@ 1 --- makefile.orig 2013-06-27 15:36:48.000000000 -0500 2 +++ makefile 2013-08-18 18:47:08.000000000 -0500 3 @@ -25,7 +25,7 @@ 17 4 examples_dir = ${doc_dir}examples/ 18 5 19 6 # Location of the highlight config files: -
Portfile
24 24 25 25 patchfiles patch-makefile.diff 26 26 27 configure { 28 reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/makefile 29 reinplace "s|@destroot@|${destroot}|g" ${worksrcpath}/makefile 30 } 27 use_configure no 31 28 32 build.args CXX="${configure.cxx}" LDFLAGS="${configure.ldflags}" CXXFLAGS="${configure.cxxflags}"33 29 build.target cli lib 34 30 31 # Yes, this project's makefile uses CFLAGS to compile its C++ code. 32 build.args CXX="${configure.cxx}" \ 33 CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ 34 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \ 35 PREFIX="${prefix}" 36 37 destroot.args PREFIX="${prefix}" 38 35 39 post-destroot { 36 40 file rename ${destroot}${prefix}/etc/highlight/filetypes.conf \ 37 41 ${destroot}${prefix}/etc/highlight/filetypes.conf.sample … … 45 49 } 46 50 } 47 51 52 livecheck.type regex 53 livecheck.url [lindex ${master_sites} 0]download.html 54 livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}