Ticket #24927: highlight-2.4.8-2.16.patch
File highlight-2.4.8-2.16.patch, 2.7 KB (added by lists@…, 14 years ago) |
---|
-
(a) Portfile vs. (b) (clipboard)
a b 3 3 PortSystem 1.0 4 4 5 5 name highlight 6 version 2. 4.86 version 2.16 7 7 categories textproc devel 8 8 platforms darwin 9 9 maintainers groovie.org:pjenvey … … 12 12 13 13 homepage http://www.andre-simon.de 14 14 master_sites ${homepage}/zip/ 15 checksums sha1 091689fde96c9f4e3de75ea1b7c1838e8d25708c15 checksums sha1 b5fed14bb1a973fe134dd2133766bb86fdc7494e 16 16 use_bzip2 yes 17 17 18 use_configure no 19 18 20 configure { 19 reinplace "s| /usr/share/highlight/|${prefix}/share/${name}/|g" \20 ${worksrcpath}/ highlight/datadir.cpp21 reinplace "s| /etc/highlight/|${prefix}/etc/highlight/|g" \22 ${worksrcpath}/highlight/datadir.cpp 21 reinplace "s|^PREFIX = /usr$|PREFIX = ${prefix}|g" \ 22 ${worksrcpath}/makefile 23 reinplace "s|^conf_dir = /etc/highlight/$|conf_dir = ${prefix}/etc/highlight/|g" \ 24 ${worksrcpath}/makefile 23 25 } 24 26 25 27 # Avoid stripping the binary (-s flag) during linking as this corrupts the executable. … … 27 29 platform darwin 8 { build.args LDFLAGS="" } 28 30 29 31 set conf_file "filetypes.conf" 30 set old_conf_files { "scriptre.conf" "extensions.conf" }31 32 destroot { 32 xinstall -m 755 ${worksrcpath}/ highlight/highlight ${destroot}${prefix}/bin33 xinstall -m 755 ${worksrcpath}/src/highlight ${destroot}${prefix}/bin 33 34 34 35 xinstall -m 755 -d ${destroot}${prefix}/etc/${name} 35 36 ${destroot}${prefix}/etc/${name}/${conf_file}.sample36 xinstall -m 644 ${worksrcpath}/${conf_file} \ 37 ${destroot}${prefix}/etc/${name}/${conf_file}.sample 37 38 38 39 xinstall -m 755 -d ${destroot}${prefix}/share/${name} 39 foreach dir { "langDefs" "themes" "indentSchemes" "helpmsg"} {40 foreach dir { "langDefs" "themes" } { 40 41 file copy ${worksrcpath}/${dir} ${destroot}${prefix}/share/${name} 41 42 system "chmod 644 ${destroot}${prefix}/share/${name}/${dir}/*" 42 43 } … … 46 47 ${destroot}${prefix}/share/man/man1 47 48 48 49 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 49 foreach file { "AUTHORS" "README" "README_DE" " README_INDENT" "ChangeLog" \50 "COPYING" "INSTALL" } {50 foreach file { "AUTHORS" "README" "README_DE" "ChangeLog" \ 51 "COPYING" "INSTALL" "README_LANGLIST" "README_REGEX" } { 51 52 xinstall -m 644 ${worksrcpath}/${file} \ 52 53 ${destroot}${prefix}/share/doc/${name} 53 54 } … … 55 56 file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name} 56 57 } 57 58 59 set old_conf_files { "scriptre.conf" "extensions.conf" } 58 60 post-activate { 59 61 # copy over the sample conf file if necessary 60 62 if { ![file exists ${prefix}/etc/${name}/${conf_file}] } { 61 63 file copy ${prefix}/etc/${name}/${conf_file}.sample \ 62 64 ${prefix}/etc/${name}/${conf_file} 63 65 } 64 66 65 67 # warn the user of deprecated conf files 66 68 set deprecated_conf_files {} 67 69 foreach file $old_conf_files { … … 84 86 } 85 87 } 86 88 }