summaryrefslogtreecommitdiff
path: root/app-text/code2html
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/code2html
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/code2html')
-rw-r--r--app-text/code2html/Manifest8
-rw-r--r--app-text/code2html/code2html-0.9.1-r2.ebuild43
-rw-r--r--app-text/code2html/files/code2html-0.9.1-prefix.patch30
-rw-r--r--app-text/code2html/files/code2html-0.9.1-scalar.patch20
-rw-r--r--app-text/code2html/metadata.xml10
5 files changed, 111 insertions, 0 deletions
diff --git a/app-text/code2html/Manifest b/app-text/code2html/Manifest
new file mode 100644
index 000000000000..12cbe91f5f49
--- /dev/null
+++ b/app-text/code2html/Manifest
@@ -0,0 +1,8 @@
+AUX code2html-0.9.1-prefix.patch 1393 SHA256 f07c9463f086a1afc4d672178ec37c55e1141393d248dd0580f0287290c9f3b8 SHA512 3331c0590e992b098548cc10deffc270b4ed7cb790b747124a2053ba8a96274bcdaa08eaf8513f24a6ec8d9fb6b9bb93f8690a55d00e767085c005dc2e5f7ca4 WHIRLPOOL 9ea0837fbc5259c967f1f58d84454223df7c32b75000ef70fe65ed6d84ec97ef1fed07479a576db8d2216e0ed483c32b68da2f7e3cd10038fce3d69b17dd6be7
+AUX code2html-0.9.1-scalar.patch 1435 SHA256 ef9872b3e5bba28d8678785b5efaffc10f4c877cf6ac7f596a9c85af64c3b779 SHA512 5e7124876b2888b24792d351d958efc09daee90422cf457a2a820920d6185df0d53dbd68f79acb084e4b4fed45fece8dcfc642ae94f0def78567e4f8366022b6 WHIRLPOOL 8cef153944f6788ec3e3c04eb031816359d9e5bc3018844ed928bc46fceb4cea34bf112a8c38043962002c9c1ac06ebdc293390cb954fffebabfd01ef8c29bb2
+DIST code2html-0.9.1-gentoo_patches.tar.bz2 2666 SHA256 e1a1ff10d861db2d52435e29707a7de0e779f0afeb6277cecde438cb98f12092 SHA512 cd478b53f0c11b9b4838a842bd8cb344698c85b1c3e09f03a75214f4002f4748a15f995530d6b6c743a4edb784c8aa703786ec10d3bda971b9485153e7090fdc WHIRLPOOL 7b7cbd9401a7cf1c7e815add7fb21c64927b80799a3cb3884968002f847145bf2d8417481190b217f6c1b3ae2e5bda09ffc8e71c9becf8f9e649f748dc8bab3a
+DIST code2html-0.9.1.tar.gz 39811 SHA256 f2fde58ba378766a21affc692eeac622aa1c6434f05c993aedf53203edec2d84 SHA512 97fb8cadfe64a389711c58b13b7b5d977849f3a242c32a2456f93d7abd39f5d0a4152416f5c73aa05f151316ea0d8486b2b9923a5390eefec3e9d8253cc0b2d3 WHIRLPOOL 949dea088ef02753b59b114d930bf02c4ae7ef14d23b2cc2df6d4dfd06e79b4e40cde043927ca9ab68f45edeb9b7ef25b6605ef2011d2af2b9cb09d9b69d8952
+EBUILD code2html-0.9.1-r2.ebuild 1024 SHA256 324f6ef773e88c3cea794de4aef63d1a5ca129efb0463f330eb58e1568c6b611 SHA512 17b5612546ef90b77cbaa14f3da9820dda7c7a11da5b7cf1d760b829aaafb14cd2b89bd8f5d3d8b5c3c1a0b34e3c72e12d380ad047decf3bacdd1a1831765a35 WHIRLPOOL cd864abb3efda62327a00cedb7ad8f04fa62990e7093105ad2e66db011ed972c2271f03f58406ad691fd1107d39e2f2e23a48920a870d543b2b8c49deccfd28b
+MISC ChangeLog 2674 SHA256 a36b69003569f2af8bfd57753c63d7048ca58b21460300652cc432bab28c4121 SHA512 97a6f2749e5247e0f4e643af3675c680466e978bcce9683b96e76031ab7ad3b45ef37660516dce35a3e4fb360b2fdab16762a71f76ae7344388cb7258de90d6c WHIRLPOOL f5b3c6d0b6faa9925546562867b11183fefa4218bb720d362c3d150a300a500efe31275c19afe3b3048af7ee8b54cb8c74697d86de3b8793d4e10f510be8c77c
+MISC ChangeLog-2015 3504 SHA256 3708ecc1b3fdd666d4a814f93bf8e2f42724fb71cef64b14c8c9f77215a2083e SHA512 af4b4b61737ac6f15fff856a94d0ac2e34eb540c45d6d1a41bf6eceb52d1e6b237aba96560b98697c29bdc0f3462d05d2a339e6c128d5e0d868a5c27ff4e7d92 WHIRLPOOL d0051a06c7d3e9593c6d34d530fc7fcd06fba450bbb40d767648dcc374e471c120f7c43b4a1a237d0c6a1186933238e2933ed4580254acf66fac954ccfede44a
+MISC metadata.xml 363 SHA256 fb0eb1def06cf0dbcdcbbf31c43eea9f75c282152a952e44b424659a6172697a SHA512 52e56f49ca7fa6b899f18be6602bd2e1c2987e5a4663593cc2e857a47e0f55637585801e656f79029e68d277a2b89d83f27953644fc778f6e7d425e2c3adb00f WHIRLPOOL 309d4001b0484efa92204c2d2ffc12917486a25086469820dd89746de98a26d41ae1f51a20007c0dcc901334f69eb7945ad661d49513ac64e5dd4c79ad56bafa
diff --git a/app-text/code2html/code2html-0.9.1-r2.ebuild b/app-text/code2html/code2html-0.9.1-r2.ebuild
new file mode 100644
index 000000000000..fbcb1710f60b
--- /dev/null
+++ b/app-text/code2html/code2html-0.9.1-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils prefix
+
+DESCRIPTION="Converts source files to colored HTML output"
+HOMEPAGE="http://www.palfrader.org/code2html/"
+SRC_URI="http://www.palfrader.org/code2html/all/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo_patches.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5"
+
+src_prepare() {
+ # Be consistent in color codes (bug #119406)
+ epatch "${WORKDIR}"/${P}-lowercase_color_codes.patch
+
+ # Improved C++ support (bug #133159)
+ epatch "${WORKDIR}"/${P}-cpp_keywords.patch
+
+ # Improved Ada support (bug #133176)
+ epatch "${WORKDIR}"/${P}-ada_identifiers.patch
+
+ # For prefix paths
+ epatch "${FILESDIR}"/${P}-prefix.patch
+ eprefixify code2html
+
+ # For newer Perl, bug 523610
+ epatch "${FILESDIR}"/${P}-scalar.patch
+}
+
+src_install() {
+ dobin code2html
+ dodoc ChangeLog CREDITS README
+ doman code2html.1
+}
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'});
diff --git a/app-text/code2html/files/code2html-0.9.1-scalar.patch b/app-text/code2html/files/code2html-0.9.1-scalar.patch
new file mode 100644
index 000000000000..eddc89a6a8f7
--- /dev/null
+++ b/app-text/code2html/files/code2html-0.9.1-scalar.patch
@@ -0,0 +1,20 @@
+--- code2html.orig 2002-01-12 22:17:02.000000000 +0100
++++ code2html 2014-09-24 13:52:52.000000000 +0200
+@@ -1357,7 +1357,7 @@
+ my @lines = split ( /\n/, $_[0] );
+
+ my $nr = 0;
+- my $lengthofnr = length(@lines);
++ my $lengthofnr = length(scalar(@lines));
+ my $format = qq{<a name="$_[1]line%u">%${lengthofnr}u</a> %s\n} ;
+ join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $_ )} @lines));
+ },
+@@ -1367,7 +1367,7 @@
+ my @lines = split ( /\n/, $_[0] );
+
+ my $nr = 0;
+- my $lengthofnr = length(@lines);
++ my $lengthofnr = length(scalar(@lines));
+ my $format = qq{<a name="$_[1]line%u" href="#$_[1]line%u">%$ {lengthofnr}u</a> %s\n};
+ join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $nr, $_ )} @lines));
+ }
diff --git a/app-text/code2html/metadata.xml b/app-text/code2html/metadata.xml
new file mode 100644
index 000000000000..a669204029fc
--- /dev/null
+++ b/app-text/code2html/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<longdescription>
+ Code2HTML converts a program source code to syntax highlighted
+ HTML. It may be called as a CGI script. It can also handle include
+ commands in HTML files.
+</longdescription>
+</pkgmetadata>