r28038 - in /trunk/dh-make-perl: Build.PL Makefile debian/rules lib/ lib/App/ lib/App/DhMakePerl.pm test.pl

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Thu Dec 11 08:07:59 UTC 2008


Author: dmn
Date: Thu Dec 11 08:07:53 2008
New Revision: 28038

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=28038
Log:
Converted to Module-Build

Added:
    trunk/dh-make-perl/Build.PL
    trunk/dh-make-perl/lib/
    trunk/dh-make-perl/lib/App/
    trunk/dh-make-perl/lib/App/DhMakePerl.pm
Removed:
    trunk/dh-make-perl/Makefile
    trunk/dh-make-perl/test.pl
Modified:
    trunk/dh-make-perl/debian/rules

Added: trunk/dh-make-perl/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/Build.PL?rev=28038&op=file
==============================================================================
--- trunk/dh-make-perl/Build.PL (added)
+++ trunk/dh-make-perl/Build.PL Thu Dec 11 08:07:53 2008
@@ -1,0 +1,21 @@
+use strict;
+use warnings;
+use Module::Build;
+
+my $builder = Module::Build->new(
+    module_name         => 'App::DhMakePerl',
+    license             => 'gpl2',
+    build_requires => {
+        'Test::More' => 0,
+    },
+    add_to_cleanup      => [ 'App-DhMakePerl-*' ],
+    create_makefile_pl => 'traditional',
+    script_files    => [ 'dh-make-perl' ],
+    install_path    => {
+        share   => '/usr/share/dh-make-perl',
+    },
+    share_files => { map( ( $_ => $_ ), glob 'share/*' ) },
+);
+
+$builder->add_build_element('share');
+$builder->create_build_script();

Modified: trunk/dh-make-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/debian/rules?rev=28038&op=diff
==============================================================================
--- trunk/dh-make-perl/debian/rules (original)
+++ trunk/dh-make-perl/debian/rules Thu Dec 11 08:07:53 2008
@@ -7,17 +7,15 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-INST=$(CURDIR)/debian/dh-make-perl
+INST  = $(CURDIR)/debian/dh-make-perl
+PERL ?= /usr/bin/perl
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-
-	# Add here commands to compile the package.
-	pod2man --center debian dh-make-perl > dh-make-perl.1
-
-	NO_NETWORK=1 $(MAKE) test
-
+	$(PERL) Build.PL installdirs=vendor
+	./Build
+	NO_NETWORK=1 ./Build test
 	touch build-stamp
 
 clean:
@@ -37,20 +35,15 @@
 		fi \
 	done
 
-	dh_clean dh-make-perl.1 $(wildcard *.changes) $(wildcard *.deb) $(wildcard *.gz)
+	! [ -f Build ] || ./Build realclean
+	dh_clean
 
-install:
+install: build
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
 
-	# Add here commands to install the package into debian/tmp.
-	#$(MAKE) install DESTDIR=`pwd`/debian/tmp
-	mkdir -p $(INST)/usr/bin
-	mkdir -p $(INST)/usr/share/dh-make-perl
-	cp dh-make-perl $(INST)/usr/bin
-	cp share/* $(INST)/usr/share/dh-make-perl/
+	./Build install --destdir=$(INST) create_packlist=0
 
 
 # Build architecture-independent files here.
@@ -62,18 +55,15 @@
 	dh_testdir
 	dh_testroot
 	dh_installdocs README
-	dh_installman dh-make-perl.1
+	dh_installman
 	dh_installchangelogs
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
+	dh_perl
 	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 binary-indep binary-arch binary

Added: trunk/dh-make-perl/lib/App/DhMakePerl.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/App/DhMakePerl.pm?rev=28038&op=file
==============================================================================
--- trunk/dh-make-perl/lib/App/DhMakePerl.pm (added)
+++ trunk/dh-make-perl/lib/App/DhMakePerl.pm Thu Dec 11 08:07:53 2008
@@ -1,0 +1,107 @@
+package App::DhMakePerl;
+
+use warnings;
+use strict;
+
+=head1 NAME
+
+App::DhMakePerl - The great new App::DhMakePerl!
+
+=head1 VERSION
+
+Version 0.01
+
+=cut
+
+our $VERSION = '0.01';
+
+
+=head1 SYNOPSIS
+
+Quick summary of what the module does.
+
+Perhaps a little code snippet.
+
+    use App::DhMakePerl;
+
+    my $foo = App::DhMakePerl->new();
+    ...
+
+=head1 EXPORT
+
+A list of functions that can be exported.  You can delete this section
+if you don't export anything, such as for a purely object-oriented module.
+
+=head1 FUNCTIONS
+
+=head2 function1
+
+=cut
+
+sub function1 {
+}
+
+=head2 function2
+
+=cut
+
+sub function2 {
+}
+
+=head1 AUTHOR
+
+Paolo Molaro and others, C<< <lupus at debian.org> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to C<bug-app-dhmakeperl at rt.cpan.org>, or through
+the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-DhMakePerl>.  I will be notified, and then you'll
+automatically be notified of progress on your bug as I make changes.
+
+
+
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+    perldoc App::DhMakePerl
+
+
+You can also look for information at:
+
+=over 4
+
+=item * RT: CPAN's request tracker
+
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-DhMakePerl>
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/App-DhMakePerl>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/d/App-DhMakePerl>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/App-DhMakePerl>
+
+=back
+
+
+=head1 ACKNOWLEDGEMENTS
+
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2008 Paolo Molaro and others, all rights reserved.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+
+=cut
+
+1; # End of App::DhMakePerl




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