--- libtext-bibtex-perl-0.38.orig/debian/rules +++ libtext-bibtex-perl-0.38/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f +# +# 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 + +include /usr/share/dpatch/dpatch.make + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP =$(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + + # build the package + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) OPTIMIZE="-Wall -O2 -g" + + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + + [ ! -f Makefile ] || $(MAKE) realclean + -rm -rf btparse + + dh_clean build-stamp install-stamp + +test: + @echo '#######################################################' + @echo 'RUNNING TESTS' + @echo '#######################################################' + # make a link for the test bibtex files from libbtparse + mkdir -p -m0755 btparse/tests/ + -rm -f btparse/tests/data + ln -s ../../debian/test-data btparse/tests/data + $(MAKE) test + +install: install-stamp +install-stamp: build-stamp test + dh_testdir + dh_testroot + dh_clean -k + + # install files + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + + touch install-stamp + +binary-arch: install-stamp + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs + dh_installexamples + dh_install + dh_installman + dh_makeshlibs + dh_perl + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch + +.PHONY: build clean clean-patched binary-indep binary-arch binary + +# vim:ft=make:fileencoding=utf-8:ts=4: --- libtext-bibtex-perl-0.38.orig/debian/watch +++ libtext-bibtex-perl-0.38/debian/watch @@ -0,0 +1,4 @@ +version=3 + +http://search.cpan.org/~ambs/ \ + .*/Text-BibTeX-([\d.]+).tar.gz --- libtext-bibtex-perl-0.38.orig/debian/control +++ libtext-bibtex-perl-0.38/debian/control @@ -0,0 +1,14 @@ +Source: libtext-bibtex-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>>5), dpatch, perl (>>5.8), libbtparse-dev +Maintainer: Bas Zoetekouw +Standards-Version: 3.8.2 +Homepage: http://search.cpan.org/~ambs/Text-BibTeX/ + +Package: libtext-bibtex-perl +Architecture: any +Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} +Description: Perl extension to read and parse BibTeX files + The Text::bibTeX module provides functions to read, parse and write bibTeX + files using perl. --- libtext-bibtex-perl-0.38.orig/debian/changelog +++ libtext-bibtex-perl-0.38/debian/changelog @@ -0,0 +1,15 @@ +libtext-bibtex-perl (0.38-1) unstable; urgency=low + + * New upstream release: + - fixed problem when creating an empty Entry. + - added support for 'conference' key (alias for inproceedings) + * Move to policy version 3.8.2 + - add Homepage field to control file + + -- Bas Zoetekouw Tue, 30 Jun 2009 12:06:35 +0200 + +libtext-bibtex-perl (0.36-1) unstable; urgency=low + + * Initial release (closes: #361429) + + -- Bas Zoetekouw Sat, 8 Apr 2006 17:18:40 +0200 --- libtext-bibtex-perl-0.38.orig/debian/compat +++ libtext-bibtex-perl-0.38/debian/compat @@ -0,0 +1 @@ +5 --- libtext-bibtex-perl-0.38.orig/debian/copyright +++ libtext-bibtex-perl-0.38/debian/copyright @@ -0,0 +1,36 @@ +This is the debian package for the Text::bibTeX +It was created by Bas Zoetekouw . + +The upstream author is: + Greg Ward + +The package was downloaded from: + http://search.cpan.org/~ambs/ + +Copyright (c) 1997-2000 by Gregory P. Ward. All rights reserved. + + This library is free software; you may redistribute it and/or modify it under + the same terms as Perl itself. + + Perl is distributed under your choice of the GNU General Public License or + the Artistic License. + +The test files in debian/test-data were taken from libbtparse's source. + + Those files are (c) 1997-2003 by Gregory P. Ward and and may be used, + modified and redistributed under the terms of the GNU General Public License + as published by the Free Software Foundation; version 2 dated June, 1991. + +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'. + +You should have received a copy of the GNU General Public License along with +this program; if not, write to the Free Software Foundation, Inc., 51 Franklin +St, Fifth Floor, Boston, MA 02110-1301 USA + +The Debian packaging, including the patches in debian/patches, is (c) 2006 by +Bas Zoetekouw and is licensed under the same terms as Perl +itself, see above. + + --- libtext-bibtex-perl-0.38.orig/debian/test-data/TESTS +++ libtext-bibtex-perl-0.38/debian/test-data/TESTS @@ -0,0 +1,7 @@ +The test data files are as follows: + + regular.bib a simple regular entry (no errors) + macro.bib a simple @string (macro definition) entry (no errors) + comment.bib a simple @comment entry (no errors) + preamble.bib a simple @preamble entry (no errors) + simple.bib all of the above concatenated --- libtext-bibtex-perl-0.38.orig/debian/test-data/macro.bib +++ libtext-bibtex-perl-0.38/debian/test-data/macro.bib @@ -0,0 +1,2 @@ +@string(macro = "macro text ", + foo = {blah blah } # " ding dong ") --- libtext-bibtex-perl-0.38.orig/debian/test-data/preamble.bib +++ libtext-bibtex-perl-0.38/debian/test-data/preamble.bib @@ -0,0 +1,2 @@ +@preamble{" This is a preamble" # + {---the concatenation of several strings}} --- libtext-bibtex-perl-0.38.orig/debian/test-data/comment.bib +++ libtext-bibtex-perl-0.38/debian/test-data/comment.bib @@ -0,0 +1,6 @@ + +% this is a lexical comment, which is never seen by the grammar and +% thus can't be tested (well, not yet at least) + +@comment(this is a comment entry, anything at all can go in it (as long + as parentheses are balanced), even {braces}) --- libtext-bibtex-perl-0.38.orig/debian/test-data/simple.bib +++ libtext-bibtex-perl-0.38/debian/test-data/simple.bib @@ -0,0 +1,18 @@ +% a sample "regular" entry (ie. not a @comment, @preamble, or @string) + +@book{abook, +title = {A } # "Book", % an in-entry comment +editor = { John Q. Random} # junk, +publisher = {Foo Bar \& Sons}, +year = 1922 +} +@string(macro = "macro text ", + foo = {blah blah } # " ding dong ") + +% this is a lexical comment, which is never seen by the grammar and +% thus can't be tested (well, not yet at least) + +@comment(this is a comment entry, anything at all can go in it (as long + as parentheses are balanced), even {braces}) +@preamble{" This is a preamble" # + {---the concatenation of several strings}} --- libtext-bibtex-perl-0.38.orig/debian/test-data/regular.bib +++ libtext-bibtex-perl-0.38/debian/test-data/regular.bib @@ -0,0 +1,8 @@ +% a sample "regular" entry (ie. not a @comment, @preamble, or @string) + +@book{abook, +title = {A } # "Book", % an in-entry comment +editor = { John Q. Random} # junk, +publisher = {Foo Bar \& Sons}, +year = 1922 +} --- libtext-bibtex-perl-0.38.orig/debian/patches/00list +++ libtext-bibtex-perl-0.38/debian/patches/00list @@ -0,0 +1 @@ +01_Makefile.dpatch --- libtext-bibtex-perl-0.38.orig/debian/patches/01_Makefile.dpatch +++ libtext-bibtex-perl-0.38/debian/patches/01_Makefile.dpatch @@ -0,0 +1,40 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 001_Makefile.dpatch by Bas Zoetekouw +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix the makefile to not download and build libbtparse, but rather link +## dynamically + +@DPATCH@ + +--- ../libtext-bibtex-perl-0.36.orig/Makefile.PL 2005-07-24 17:24:01.000000000 +0200 ++++ ./Makefile.PL 2006-04-08 18:17:58.000000000 +0200 +@@ -366,7 +366,7 @@ + # but can still have Makefile.PL take care of unpacking btparse for + # building anywhere else. + +-unpack_btparse (\@btparse_versions, ['.', '..']); ++#unpack_btparse (\@btparse_versions, ['.', '..']); + + my @support_files = ('btxs_support$(OBJ_EXT)'); + +@@ -376,16 +376,16 @@ + 'NAME' => 'Text::BibTeX', + 'VERSION_FROM' => 'BibTeX.pm', + 'XSPROTOARG' => '-prototypes', +- 'LIBS' => [''], # e.g., '-lm' ++ 'LIBS' => ['-lbtparse'], # e.g., '-lm' + 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' + 'INC' => '-Ibtparse/src', +- 'MYEXTLIB' => 'btparse/src/.libs/libbtparse$(LIB_EXT)', ++# 'MYEXTLIB' => 'btparse/src/.libs/libbtparse$(LIB_EXT)', + 'OBJECT' => 'BibTeX$(OBJ_EXT) ' . join (' ', @support_files), + 'dynamic_lib' => { INST_DYNAMIC_DEP => join (' ', @support_files) }, + 'dist' => { COMPRESS => "gzip", SUFFIX => "gz" } + ); + +-configure_btparse ('btparse'); ++#configure_btparse ('btparse'); + + # -- END main ---------------------------------------------------------- +