Ticket #40612: highlight.diff

File highlight.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

proposed patch

  • 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 @@
    174 examples_dir = ${doc_dir}examples/
    185 
    196 # Location of the highlight config files:
  • Portfile

     
    2424
    2525patchfiles          patch-makefile.diff
    2626
    27 configure {
    28     reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/makefile
    29     reinplace "s|@destroot@|${destroot}|g" ${worksrcpath}/makefile
    30 }
     27use_configure       no
    3128
    32 build.args           CXX="${configure.cxx}" LDFLAGS="${configure.ldflags}" CXXFLAGS="${configure.cxxflags}"
    3329build.target         cli lib
    3430
     31# Yes, this project's makefile uses CFLAGS to compile its C++ code.
     32build.args          CXX="${configure.cxx}" \
     33                    CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
     34                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
     35                    PREFIX="${prefix}"
     36
     37destroot.args       PREFIX="${prefix}"
     38
    3539post-destroot {
    3640    file rename ${destroot}${prefix}/etc/highlight/filetypes.conf \
    3741        ${destroot}${prefix}/etc/highlight/filetypes.conf.sample
     
    4549    }
    4650}
    4751
     52livecheck.type      regex
     53livecheck.url       [lindex ${master_sites} 0]download.html
     54livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}