Changeset 15425 for trunk/dports
- Timestamp:
- Dec 11, 2005, 11:27:09 AM (18 years ago)
- 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:10mww Exp $1 # $Id: Portfile,v 1.2 2005/12/11 11:27:09 mww Exp $ 2 2 3 3 PortSystem 1.0 4 4 5 5 name highlight 6 version 2. 2-56 version 2.4.3 7 7 categories textproc devel 8 8 platforms darwin 9 maintainers mww@opendarwin.org9 maintainers pjenvey@groovie.org 10 10 description converts source code to formatted text with syntax highlighting 11 11 long_description ${description} 12 12 13 13 homepage http://www.andre-simon.de/ 14 master_sites ${homepage}/zip/15 checksums md5 4b5df6974cb8cf631a8cccfd4f838db514 master_sites ${homepage}/zip/ 15 checksums md5 0f1371272e4328201b1421c7e78c878a 16 16 use_bzip2 yes 17 17 18 use_configure no 19 20 configure { 18 configure { 21 19 reinplace "s|/usr/share/highlight/|${prefix}/share/${name}/|g" \ 20 ${worksrcpath}/highlight/datadir.cpp 21 reinplace "s|/etc/highlight/|${prefix}/etc/highlight/|g" \ 22 22 ${worksrcpath}/highlight/datadir.cpp 23 23 } 24 24 25 destroot { 25 set conf_files { "scriptre.conf" "extensions.conf" } 26 destroot { 26 27 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 27 35 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} 34 53 } 54 55 post-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.