Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/6038

Submitted by:   pjenvey@groovie.org
Reviewed by:    mww@

update to 2.4.3, add missing manpages, docs, config-files, transfer maintainership to pjenvey@groovie.org

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15425 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Dec 11, 2005
1 parent adfda35 commit 2b79e46ae4bf0f4af6e2f6e6a89c4a6bc555ef2c
Showing with 45 additions and 15 deletions.
  1. +45 −15 textproc/highlight/Portfile
@@ -1,34 +1,64 @@
# $Id: Portfile,v 1.1 2004/11/05 16:44:10 mww Exp $
# $Id: Portfile,v 1.2 2005/12/11 11:27:09 mww Exp $

PortSystem 1.0

name highlight
version 2.2-5
version 2.4.3
categories textproc devel
platforms darwin
maintainers mww@opendarwin.org
maintainers pjenvey@groovie.org
description converts source code to formatted text with syntax highlighting
long_description ${description}

homepage http://www.andre-simon.de/
master_sites ${homepage}/zip/
checksums md5 4b5df6974cb8cf631a8cccfd4f838db5
master_sites ${homepage}/zip/
checksums md5 0f1371272e4328201b1421c7e78c878a
use_bzip2 yes

use_configure no

configure {
configure {
reinplace "s|/usr/share/highlight/|${prefix}/share/${name}/|g" \
${worksrcpath}/highlight/datadir.cpp
reinplace "s|/etc/highlight/|${prefix}/etc/highlight/|g" \
${worksrcpath}/highlight/datadir.cpp
}

destroot {
set conf_files { "scriptre.conf" "extensions.conf" }
destroot {
xinstall -m 755 ${worksrcpath}/highlight/highlight ${destroot}${prefix}/bin

xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
foreach file $conf_files {
xinstall -m 644 ${worksrcpath}/${file} \
${destroot}${prefix}/etc/${name}/${file}.sample
}

xinstall -m 755 -d ${destroot}${prefix}/share/${name}
file rename ${worksrcpath}/langDefs/extensions.conf \
${destroot}${prefix}/share/${name}/extensions.conf
file copy ${worksrcpath}/langDefs ${destroot}${prefix}/share/${name}
file copy ${worksrcpath}/themes ${destroot}${prefix}/share/${name}
file copy ${worksrcpath}/indentSchemes ${destroot}${prefix}/share/${name}
file copy ${worksrcpath}/helpmsg ${destroot}${prefix}/share/${name}
foreach dir { "langDefs" "themes" "indentSchemes" "helpmsg" } {
file copy ${worksrcpath}/${dir} ${destroot}${prefix}/share/${name}
system "chmod 644 ${destroot}${prefix}/share/${name}/${dir}/*"
}

xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
xinstall -m 644 ${worksrcpath}/man/highlight.1.gz \
${destroot}${prefix}/share/man/man1

xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
foreach file { "AUTHORS" "README" "README_DE" "README_INDENT" "ChangeLog" \
"COPYING" "INSTALL" } {
xinstall -m 644 ${worksrcpath}/${file} \
${destroot}${prefix}/share/doc/${name}
}

file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
}

post-activate {
# copy over the sample conf file if necessary
foreach file $conf_files {
if { ![file exists ${prefix}/etc/${name}/${file}] } {
file copy ${prefix}/etc/${name}/${file}.sample \
${prefix}/etc/${name}/${file}
}
}
}

0 comments on commit 2b79e46

Please sign in to comment.
You can’t perform that action at this time.