--- libtext-wikicreole-perl-0.05.orig/debian/compat +++ libtext-wikicreole-perl-0.05/debian/compat @@ -0,0 +1 @@ +5 --- libtext-wikicreole-perl-0.05.orig/debian/control +++ libtext-wikicreole-perl-0.05/debian/control @@ -0,0 +1,17 @@ +Source: libtext-wikicreole-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5), quilt +Build-Depends-Indep: perl (>= 5.6.10-12) +Maintainer: Bernd Zeimetz +Standards-Version: 3.8.0 +Homepage: http://search.cpan.org/dist/Text-WikiCreole/ +Vcs-Browser: http://git.recluse.de/debian/pkg-libtext-wikicreole-perl.git/ +Vcs-Git: git://git.recluse.de/debian/pkg-libtext-wikicreole-perl.git + +Package: libtext-wikicreole-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends} +Description: Convert Wiki Creole 1.0 markup to XHTML + Text::WikiCreole implements the Wiki Creole markup language, + version 1.0. It reads Creole 1.0 markup and returns XHTML. --- libtext-wikicreole-perl-0.05.orig/debian/changelog +++ libtext-wikicreole-perl-0.05/debian/changelog @@ -0,0 +1,15 @@ +libtext-wikicreole-perl (0.05-2) unstable; urgency=low + + * debian/rules, debian/control, debian/README.source: + - Adding quilt patch management system and document how to use it. + + * debian/patches: + - Adding creole-barelink.patch to allow custom handling of "bare" links. + + -- Bernd Zeimetz Sun, 22 Jun 2008 00:57:45 +0200 + +libtext-wikicreole-perl (0.05-1) unstable; urgency=low + + * Initial Release (Closes: #487020) + + -- Bernd Zeimetz Thu, 19 Jun 2008 10:27:55 +0200 --- libtext-wikicreole-perl-0.05.orig/debian/watch +++ libtext-wikicreole-perl-0.05/debian/watch @@ -0,0 +1,5 @@ +# format version number, currently 3; this line is compulsory! +version=3 +# URL to the package page followed by a regex to search +opts=filenamemangle=s/.*Text-WikiCreole/libtext-wikicreole-perl/ \ +http://search.cpan.org/dist/Text-WikiCreole/ .*/Text-WikiCreole-?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ --- libtext-wikicreole-perl-0.05.orig/debian/rules +++ libtext-wikicreole-perl-0.05/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 + +PERL ?= /usr/bin/perl +PACKAGE = $(shell dh_listpackages) +TMP = $(CURDIR)/debian/$(PACKAGE) + + +include /usr/share/quilt/quilt.make + +build: build-stamp +build-stamp: patch + dh_testdir + # Add commands to compile the package here + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + $(MAKE) test + touch $@ + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + dh_clean build-stamp install-stamp + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + # Add commands to install the package into $(TMP) here + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + [ ! -d $(TMP)/usr/lib/perl5 ] || \ + rmdir --ignore-fail-on-non-empty --parents --verbose \ + $(TMP)/usr/lib/perl5 + touch $@ + +binary-arch: +# We have nothing to do here for an architecture-independent package + +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installchangelogs Changes + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libtext-wikicreole-perl-0.05.orig/debian/copyright +++ libtext-wikicreole-perl-0.05/debian/copyright @@ -0,0 +1,33 @@ +This is the debian package for the Text-WikiCreole module. +It was created by Bernd Zeimetz using dh-make-perl. + +It was downloaded from http://search.cpan.org/dist/Text-WikiCreole/ + +Upstream author: + Jason Burnett + +Copyright: + Copyright (C) 2007 Jason Burnett + +License: + This program is free software; you can redistribute it and/or modify it + under the same terms as Perl itself. + + +The license Perl is distributed under is: + This program is free software; you can redistribute it and/or modify + it under the terms of either: + + a) the GNU General Public License as published by the Free Software + Foundation; either version 1, or (at your option) any later + version, or + + b) the "Artistic License" which comes with Perl. + + On Debian GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL' and + the Artistic Licence in `/usr/share/common-licenses/Artistic'. + + +The Debian packaging is (C) 2008, Bernd Zeimetz and +is licensed under the same terms as the software itself (see above). --- libtext-wikicreole-perl-0.05.orig/debian/README.source +++ libtext-wikicreole-perl-0.05/debian/README.source @@ -0,0 +1,8 @@ +libtext-wikicreole-perl (0.05-2) unstable; urgency=low + + * Since this version the package uses quilt to manage patches + at build time. Please install the package 'quilt' and see + /usr/share/doc/quilt/README.source + for details. + + -- Bernd Zeimetz Sat, 21 Jun 2008 02:44:11 +0200 --- libtext-wikicreole-perl-0.05.orig/debian/patches/creole-barelink.patch +++ libtext-wikicreole-perl-0.05/debian/patches/creole-barelink.patch @@ -0,0 +1,81 @@ +Allow custom 'bare' link handling. + +--- a/lib/Text/WikiCreole.pm ++++ b/lib/Text/WikiCreole.pm +@@ -1,7 +1,8 @@ + package Text::WikiCreole; + require Exporter; + @ISA = (Exporter); +-@EXPORT = qw(creole_parse creole_plugin creole_link creole_tag creole_img creole_customlinks creole_customimgs); ++@EXPORT = qw(creole_parse creole_plugin creole_tag creole_img creole_customimgs ++ creole_link creole_barelink creole_customlinks creole_custombarelinks); + use vars qw($VERSION); + use strict; + use warnings; +@@ -44,6 +45,8 @@ my $bol = '(?:^|\n)'; # beginning of lin + my $plugin_function; + # user-supplied link URL parser function + my $link_function; ++# user-supplied bare link parser function ++my $barelink_function; + # user-supplied image URL parser function + my $img_function; + +@@ -321,9 +324,12 @@ my %chunks = ( + curpat => '(?=(?:https?|ftp):\/\/)', + stops => '(?=[[:punct:]]?(?:\s|$))', + hint => ['h', 'f'], +- filter => sub { ++ filter => sub { + $_[0] =~ s/^\s*//o; + $_[0] =~ s/\s*$//o; ++ if($barelink_function) { ++ $_[0] = &$barelink_function($_[0]); ++ } + return "href=\"$_[0]\">$_[0]"; }, + open => " "", + }, +@@ -643,6 +649,22 @@ sub creole_customlinks { + } + } + ++sub creole_barelink { ++ return unless defined $_[0]; ++ $barelink_function = $_[0]; ++} ++ ++sub creole_custombarelinks { ++ $chunks{ilink}{open} = ""; ++ $chunks{ilink}{close} = ""; ++ $chunks{ilink}{filter} = sub { ++ if($barelink_function) { ++ $_[0] = &$barelink_function($_[0]); ++ } ++ return $_[0]; ++ } ++} ++ + sub creole_customimgs { + $chunks{img}{open} = ""; + $chunks{img}{close} = ""; +@@ -756,6 +778,20 @@ reads Creole 1.0 markup and returns XHTM + + This has no effect on "bare" link markup, such as http://cpan.org. + ++=head2 creole_barelink ++ ++ Same purpose as creole_link, but for "bare" link markup. ++ ++ sub mybarelink { ++ return "$_[0].html"; ++ return $_[0]; ++ } ++ creole_barelink \&mybarelink; ++ ++=head2 creole_custombarelinks ++ ++ Same purpose as creole_customlinks, but for "bare" link markup. ++ + =head2 creole_img + + Same purpose as creole_link, but for image URLs. --- libtext-wikicreole-perl-0.05.orig/debian/patches/series +++ libtext-wikicreole-perl-0.05/debian/patches/series @@ -0,0 +1 @@ +creole-barelink.patch #allow custom 'bare' link handling