[packages/perl-Syntax-Highlight-Engine-Kate] - updated to 0.09 - removed obsolete insensitive patch

qboosh qboosh at pld-linux.org
Tue Jun 9 19:45:03 CEST 2015


commit 958c3f293f5bec2411c6c8030e40163cb824e920
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jun 9 19:46:16 2015 +0200

    - updated to 0.09
    - removed obsolete insensitive patch

 ...-Syntax-Highlight-Engine-Kate-insensitive.patch | 52 ----------------------
 perl-Syntax-Highlight-Engine-Kate.spec             | 11 +++--
 2 files changed, 5 insertions(+), 58 deletions(-)
---
diff --git a/perl-Syntax-Highlight-Engine-Kate.spec b/perl-Syntax-Highlight-Engine-Kate.spec
index ce06727..ea8e342 100644
--- a/perl-Syntax-Highlight-Engine-Kate.spec
+++ b/perl-Syntax-Highlight-Engine-Kate.spec
@@ -8,14 +8,13 @@
 Summary:	Syntax::Highlight::Engine::Kate - a port to Perl of the syntax highlight engine of the Kate texteditor
 Summary(pl.UTF-8):	Syntax::Highlight::Engine::Kate - perlowy port silnika podświetlania składni z edytora Kate
 Name:		perl-Syntax-Highlight-Engine-Kate
-Version:	0.08
-Release:	2
+Version:	0.09
+Release:	1
 # same as perl 5.8.3+
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Syntax/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	717f969580fb5894c818fbbc627cc37e
-Patch0:		%{name}-insensitive.patch
+# Source0-md5:	638f8cf2b3546dab0da850554d7a4a55
 URL:		http://search.cpan.org/dist/Syntax-Highlight-Engine-Kate/
 BuildRequires:	perl-ExtUtils-MakeMaker >= 6.59
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -23,7 +22,8 @@ BuildRequires:	rpm-perlprov >= 4.1-13
 %if %{with tests}
 BuildRequires:	perl-Term-ANSIColor
 BuildRequires:	perl-Test-Differences >= 0.61
-BuildRequires:	perl-Test-Simple >= 0.88
+BuildRequires:	perl-Test-Simple >= 1.00
+BuildRequires:	perl-Test-Warn >= 0.30
 %endif
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -45,7 +45,6 @@ modułu.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
-%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/perl-Syntax-Highlight-Engine-Kate-insensitive.patch b/perl-Syntax-Highlight-Engine-Kate-insensitive.patch
deleted file mode 100644
index 9bfdff7..0000000
--- a/perl-Syntax-Highlight-Engine-Kate-insensitive.patch
+++ /dev/null
@@ -1,52 +0,0 @@
---- Syntax-Highlight-Engine-Kate-0.07/lib/Syntax/Highlight/Engine/Kate.pm	2012-09-23 20:01:18.000000000 +1000
-+++ Syntax-Highlight-Engine-Kate-inse/lib/Syntax/Highlight/Engine/Kate.pm	2013-05-02 11:47:22.117779928 +1000
-@@ -616,11 +616,30 @@
- }
- 
- sub languagePlug {
--	my ($self, $req) = @_;
-+	my ($self, $req, $insensitive) = @_;
-+
- 	unless (exists($self->{'syntaxes'}->{$req})) {
--		warn "undefined language: $req";
--		return undef;
-+		if (defined($insensitive) && $insensitive) {
-+			my $matched = 0;
-+			foreach my $key (keys(%{$self->{'syntaxes'}})) {
-+				if ($key =~ /^$req$/i) {
-+					warn "substituting language $key for $req";
-+					$req = $key;
-+					$matched = 1;
-+					last;
-+				}
-+			}
-+
-+			unless ($matched) {
-+				warn "undefined language: $req";
-+				return undef;
-+			}
-+		} else {
-+			warn "undefined language: $req";
-+			return undef;
-+		}
- 	}
-+
- 	return $self->{'syntaxes'}->{$req};
- }
- 
-@@ -804,9 +823,13 @@
- 
- returns a list of languages for which plugins have been defined.
- 
--=item B<languagePlug>(I<$language>);
-+=item B<languagePlug>(I<$language>, I<?$insensitive?>);
-+
-+Returns the module name of the plugin for B<$language>.
-+
-+If B<$insensitive> is set it will also try to match names ignoring case and return the correct module name of the plugin.
- 
--returns the module name of the plugin for B<$language>
-+e.g. $highlighter->languagePlug('HtMl', 1); will return 'HTML'.
- 
- =item B<languagePropose>(I<$filename>);
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Syntax-Highlight-Engine-Kate.git/commitdiff/958c3f293f5bec2411c6c8030e40163cb824e920



More information about the pld-cvs-commit mailing list