[libnet-dbus-perl] 142/335: Exclude CVS files from blib/lib. Die immediately if pkg-config fails
Intrigeri
intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.
commit a07cdb96606313d206591a3e9c53f3db19aa6901
Author: Daniel P. Berrange <dan at berrange.com>
Date: Sun Oct 23 15:25:41 2005 +0000
Exclude CVS files from blib/lib. Die immediately if pkg-config fails
---
Makefile.PL | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index 502073b..c47babe 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -6,6 +6,13 @@ use ExtUtils::MakeMaker;
my $DBUS_LIBS = `pkg-config --libs dbus-1`;
my $DBUS_CFLAGS = `pkg-config --cflags dbus-1`;
+if (!defined $DBUS_LIBS || !defined DBUS_CFLAGS) {
+ die "could not run 'pkg-config' to determine compiler/linker flags for dbus library: $!\n";
+}
+if (!$DBUS_LIBS || !$DBUS_CFLAGS) {
+ die "'pkg-config' didn't report any compiler/linker flags for dbus library\n";
+}
+
WriteMakefile(
'NAME' => 'Net::DBus',
'VERSION_FROM' => 'lib/Net/DBus.pm',
@@ -31,14 +38,14 @@ package MY;
sub libscan
{
my ($self, $path) = @_;
- ($path =~ /\~$/) ? undef : $path;
+ ($path =~ /\~$/ || $path =~ m,/CVS/,) ? undef : $path;
}
sub postamble {
return '
TO_TEST_PM = $(TO_INST_PM:lib/%.pm=blib/test/%.pm)
-stest :: $(TO_TEST_PM)
+XXXtest :: $(TO_TEST_PM)
blib/test/%.pm: blib/lib/%.pm
@echo -n "Checking $@: "
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git
More information about the Pkg-perl-cvs-commits
mailing list