most recent changes, diff for highlight
Index: textproc/highlight/Portfile
--- textproc/highlight/Portfile (revision 21346)
+++ textproc/highlight/Portfile (revision 21347)
@@ -3,16 +3,16 @@
PortSystem 1.0
name highlight
-version 2.4.7
+version 2.4.8
categories textproc devel
platforms darwin
maintainers pjenvey@groovie.org
description converts source code to formatted text with syntax highlighting
long_description ${description}
-homepage http://www.andre-simon.de/
+homepage http://www.andre-simon.de
master_sites ${homepage}/zip/
-checksums sha1 a7f326537e29f9c05fcab7f7a74279fdaf357fa5
+checksums sha1 091689fde96c9f4e3de75ea1b7c1838e8d25708c
use_bzip2 yes
configure {
@@ -22,7 +22,9 @@
${worksrcpath}/highlight/datadir.cpp
}
-platform darwin 8 { build.args CXX=/usr/bin/g++-3.3 }
+# Avoid stripping the binary (-s flag) during linking as this corrupts the executable.
+# Strip after building
+platform darwin 8 { build.args LDFLAGS="" }
set conf_file "filetypes.conf"
set old_conf_files { "scriptre.conf" "extensions.conf" }
@@ -53,6 +55,11 @@
file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
}
+post-build {
+ cd ${worksrcpath}/highlight
+ system "strip highlight"
+}
+
post-activate {
# copy over the sample conf file if necessary
if { ![file exists ${prefix}/etc/${name}/${conf_file}] } {