[SCM] Debian packaging of Text-BibTeX CPAN distribution branch, master, updated. upstream/0.62-41-g1fe36a4

gregor herrmann gregoa at debian.org
Sun Mar 4 03:22:41 UTC 2012


The following commit has been merged in the master branch:
commit 20367c938dd57f8d6ff4c7b6b5bf5d772cb4306d
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Mar 4 04:20:09 2012 +0100

    Add a patch to fix the manpage section, and install the manpages.

diff --git a/debian/libbtparse-dev.install b/debian/libbtparse-dev.install
index 6d75645..b539a2c 100644
--- a/debian/libbtparse-dev.install
+++ b/debian/libbtparse-dev.install
@@ -1,4 +1,4 @@
 btparse/src/bt_config.h  /usr/include
 btparse/src/btparse.h   /usr/include
 btparse/src/libbtparse.so /usr/lib
-
+usr/share/man/man3
diff --git a/debian/patches/0006-manpage-section.patch b/debian/patches/0006-manpage-section.patch
new file mode 100644
index 0000000..cec63e2
--- /dev/null
+++ b/debian/patches/0006-manpage-section.patch
@@ -0,0 +1,31 @@
+Description: install manpages into section 3
+Origin: vendor
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2012-03-04
+
+--- a/inc/MyBuilder.pm
++++ b/inc/MyBuilder.pm
+@@ -138,18 +138,18 @@
+     my $version = $self->notes('btparse_version');
+     for my $pod (@$pods) {
+         my $man = $pod;
+-        $man =~ s!.pod!.1!;
++        $man =~ s!.pod!.3!;
+         $man =~ s!btparse/doc!blib/bindoc!;   ## FIXME - path
+         next if $self->up_to_date($pod, $man);
+         ## FIXME
+-        `pod2man --section=1 --center="btparse" --release="btparse, version $version" $pod $man`;
++        `pod2man --section=3 --center="btparse" --release="btparse, version $version" $pod $man`;
+     }
+ 
+     my $pod = 'btool_faq.pod';
+-    my $man = catfile('blib','bindoc','btool_faq.1');
++    my $man = catfile('blib','bindoc','btool_faq.3');
+     unless ($self->up_to_date($pod, $man)) {
+         ## FIXME
+-        `pod2man --section=1 --center="btparse" --release="btparse, version $version" $pod $man`;
++        `pod2man --section=3 --center="btparse" --release="btparse, version $version" $pod $man`;
+     }
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 66b50d0..59e75bb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 0003-Introduce-a-btparse_api_version-note-and-use-it-in-d.patch
 0004-disable-rpath-if-installing-into-usr-lib.patch
 0005-no-ldconfig.patch
+0006-manpage-section.patch
diff --git a/debian/rules b/debian/rules
index 2d33f6a..d4d2ca8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,9 @@
 
 %:
 	dh $@
+
+override_dh_auto_install:
+	dh_auto_install
+	# move manpages. should be done via Module::Build but meh
+	mv -v $(CURDIR)/debian/tmp/usr/share/man/man1/* $(CURDIR)/debian/tmp/usr/share/man/man3/
+	rmdir --verbose --ignore-fail-on-non-empty $(CURDIR)/debian/tmp/usr/share/man/man1

-- 
Debian packaging of Text-BibTeX CPAN distribution



More information about the Pkg-perl-cvs-commits mailing list