[112091] trunk/dports/textproc/highlight

ryandesign at macports.org ryandesign at macports.org
Fri Oct 11 12:12:47 PDT 2013


Revision: 112091
          https://trac.macports.org/changeset/112091
Author:   ryandesign at macports.org
Date:     2013-10-11 12:12:47 -0700 (Fri, 11 Oct 2013)
Log Message:
-----------
highlight: use -arch flags; uses args to specify prefix instead of using a patchfile; actually pass the CXXFLAGS to the makefile; livecheck from the project's homepage (#40612, maintainer timeout)

Modified Paths:
--------------
    trunk/dports/textproc/highlight/Portfile
    trunk/dports/textproc/highlight/files/patch-makefile.diff

Modified: trunk/dports/textproc/highlight/Portfile
===================================================================
--- trunk/dports/textproc/highlight/Portfile	2013-10-11 16:58:30 UTC (rev 112090)
+++ trunk/dports/textproc/highlight/Portfile	2013-10-11 19:12:47 UTC (rev 112091)
@@ -24,14 +24,18 @@
 
 patchfiles          patch-makefile.diff
 
-configure {
-    reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/makefile
-    reinplace "s|@destroot@|${destroot}|g" ${worksrcpath}/makefile
-}
+use_configure       no
 
-build.args           CXX="${configure.cxx}" LDFLAGS="${configure.ldflags}" CXXFLAGS="${configure.cxxflags}"
 build.target         cli lib
 
+# Yes, this project's makefile uses CFLAGS to compile its C++ code.
+build.args          CXX="${configure.cxx}" \
+                    CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
+                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
+                    PREFIX="${prefix}"
+
+destroot.args       PREFIX="${prefix}"
+
 post-destroot {
     file rename ${destroot}${prefix}/etc/highlight/filetypes.conf \
         ${destroot}${prefix}/etc/highlight/filetypes.conf.sample
@@ -45,3 +49,6 @@
     }
 }
 
+livecheck.type      regex
+livecheck.url       [lindex ${master_sites} 0]download.html
+livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}

Modified: trunk/dports/textproc/highlight/files/patch-makefile.diff
===================================================================
--- trunk/dports/textproc/highlight/files/patch-makefile.diff	2013-10-11 16:58:30 UTC (rev 112090)
+++ trunk/dports/textproc/highlight/files/patch-makefile.diff	2013-10-11 19:12:47 UTC (rev 112091)
@@ -1,19 +1,6 @@
---- work/highlight-3.9/makefile	2010-07-28 23:16:48.000000000 +0200
-+++ makefile	2012-06-09 10:20:54.000000000 +0200
-@@ -5,10 +5,10 @@
- # Installation directories:
- 
- # Destination directory for installation (intended for packagers)
--DESTDIR =
-+DESTDIR = @destroot@
- 
- # Root directory for final installation
--PREFIX = /usr
-+PREFIX = @prefix@
- 
- # Location of the highlight data files:
- data_dir = ${PREFIX}/share/highlight/
-@@ -26,7 +26,7 @@
+--- makefile.orig	2013-06-27 15:36:48.000000000 -0500
++++ makefile	2013-08-18 18:47:08.000000000 -0500
+@@ -25,7 +25,7 @@
  examples_dir = ${doc_dir}examples/
  
  # Location of the highlight config files:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131011/110daa54/attachment.html>


More information about the macports-changes mailing list