Changeset 15425


Ignore:
Timestamp:
Dec 11, 2005, 11:27:09 AM (15 years ago)
Author:
mww
Message:

Bug: #6038
Submitted by: pjenvey@…
Reviewed by: mww@

update to 2.4.3, add missing manpages, docs, config-files, transfer maintainership to pjenvey@…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/highlight/Portfile

    r9157 r15425  
    1 # $Id: Portfile,v 1.1 2004/11/05 16:44:10 mww Exp $
     1# $Id: Portfile,v 1.2 2005/12/11 11:27:09 mww Exp $
    22
    33PortSystem 1.0
    44
    55name                    highlight
    6 version                 2.2-5
     6version                 2.4.3
    77categories              textproc devel
    88platforms               darwin
    9 maintainers             mww@opendarwin.org
     9maintainers             pjenvey@groovie.org
    1010description             converts source code to formatted text with syntax highlighting
    1111long_description        ${description}
    1212
    1313homepage                http://www.andre-simon.de/
    14 master_sites    ${homepage}/zip/
    15 checksums               md5 4b5df6974cb8cf631a8cccfd4f838db5
     14master_sites            ${homepage}/zip/
     15checksums               md5 0f1371272e4328201b1421c7e78c878a
    1616use_bzip2               yes
    1717
    18 use_configure   no
    19 
    20 configure       {
     18configure {
    2119        reinplace "s|/usr/share/highlight/|${prefix}/share/${name}/|g" \
     20                ${worksrcpath}/highlight/datadir.cpp
     21        reinplace "s|/etc/highlight/|${prefix}/etc/highlight/|g" \
    2222                ${worksrcpath}/highlight/datadir.cpp
    2323}
    2424
    25 destroot        {
     25set conf_files { "scriptre.conf" "extensions.conf" }
     26destroot {
    2627        xinstall -m 755 ${worksrcpath}/highlight/highlight ${destroot}${prefix}/bin
     28
     29        xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
     30        foreach file $conf_files {
     31                xinstall -m 644 ${worksrcpath}/${file} \
     32                        ${destroot}${prefix}/etc/${name}/${file}.sample
     33        }
     34
    2735        xinstall -m 755 -d ${destroot}${prefix}/share/${name}
    28         file rename ${worksrcpath}/langDefs/extensions.conf \
    29                 ${destroot}${prefix}/share/${name}/extensions.conf
    30         file copy ${worksrcpath}/langDefs ${destroot}${prefix}/share/${name}
    31         file copy ${worksrcpath}/themes ${destroot}${prefix}/share/${name}
    32         file copy ${worksrcpath}/indentSchemes ${destroot}${prefix}/share/${name}
    33         file copy ${worksrcpath}/helpmsg ${destroot}${prefix}/share/${name}
     36        foreach dir { "langDefs" "themes" "indentSchemes" "helpmsg" } {
     37                file copy ${worksrcpath}/${dir} ${destroot}${prefix}/share/${name}
     38                        system "chmod 644 ${destroot}${prefix}/share/${name}/${dir}/*"
     39        }
     40
     41        xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
     42        xinstall -m 644 ${worksrcpath}/man/highlight.1.gz \
     43                ${destroot}${prefix}/share/man/man1
     44
     45        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     46        foreach file { "AUTHORS" "README" "README_DE" "README_INDENT" "ChangeLog" \
     47                "COPYING" "INSTALL" } {
     48                xinstall -m 644 ${worksrcpath}/${file} \
     49                        ${destroot}${prefix}/share/doc/${name}
     50        }
     51
     52        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
    3453}
     54
     55post-activate {
     56        # copy over the sample conf file if necessary
     57        foreach file $conf_files {
     58                if { ![file exists ${prefix}/etc/${name}/${file}] } {
     59                        file copy ${prefix}/etc/${name}/${file}.sample \
     60                                ${prefix}/etc/${name}/${file}
     61                }
     62        }
     63}
     64
Note: See TracChangeset for help on using the changeset viewer.