diff options
author | 2010-04-05 22:24:08 +0000 | |
---|---|---|
committer | 2010-04-05 22:24:08 +0000 | |
commit | 3cefb6266d0f6ce11db21ec257b2121a0fa0040b (patch) | |
tree | a389b9d979f7e5e1e4bf70ea248b24f9a5967153 /app-text/code2html/files | |
parent | Bump to EAPI=3, add prefix keywords (diff) | |
download | gentoo-2-3cefb6266d0f6ce11db21ec257b2121a0fa0040b.tar.gz gentoo-2-3cefb6266d0f6ce11db21ec257b2121a0fa0040b.tar.bz2 gentoo-2-3cefb6266d0f6ce11db21ec257b2121a0fa0040b.zip |
Bump to EAPI=3, add prefix keywords & patch
(Portage version: -svn/cvs/Linux i686)
Diffstat (limited to 'app-text/code2html/files')
-rw-r--r-- | app-text/code2html/files/code2html-0.9.1-prefix.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app-text/code2html/files/code2html-0.9.1-prefix.patch b/app-text/code2html/files/code2html-0.9.1-prefix.patch new file mode 100644 index 000000000000..cc27296fb71c --- /dev/null +++ b/app-text/code2html/files/code2html-0.9.1-prefix.patch @@ -0,0 +1,30 @@ +--- code2html ++++ code2html +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl -w + use locale; + my $vernr = "0.9.1"; + my $monthshort = "Jan"; +@@ -45,9 +45,9 @@ + # PP: A hash would be nicer but then it would not possible to get the keys in this very order (AFAIK) + # PP: If names contain meta characters, then those must be metaquoted (if you don't want the meta chars to be meta chars of course) + my @CGI_ENCODING = ( +- ['bzip2' , '/usr/bin/bzip2' , '--stdout' ], +- ['gzip' , '/bin/gzip' , '--stdout' ], +- ['compress' , '/usr/bin/compress' , '-c' ] ++ ['bzip2' , '@GENTOO_PORTAGE_EPREFIX@/usr/bin/bzip2' , '--stdout' ], ++ ['gzip' , '@GENTOO_PORTAGE_EPREFIX@/bin/gzip' , '--stdout' ], ++ ['compress' , '@GENTOO_PORTAGE_EPREFIX@/usr/bin/compress' , '-c' ] + ); + + +@@ -147,7 +147,7 @@ + # building up the database + # newer entries overwrite old ones + my @CONFIG_FILES; +- push @CONFIG_FILES, "/etc/code2html.config"; ++ push @CONFIG_FILES, "@GENTOO_PORTAGE_EPREFIX@/etc/code2html.config"; + push @CONFIG_FILES, $ENV{'HOME'}."/.code2html.config" if (defined($ENV{'HOME'})); + push @CONFIG_FILES, split(/:/,$ENV{'CODE2HTML_CONFIG'}) if ($ENV{'CODE2HTML_CONFIG'}); + push @CONFIG_FILES, split(/:/,$params{'langfile'}) if defined($params{'langfile'}); |