[libanyevent-rabbitmq-perl] 61/151: Use install_share and dist_dir to allow locating amqp_spec file without loading Coro.

Damyan Ivanov dmn at moszumanska.debian.org
Thu Jan 16 11:03:04 UTC 2014


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to annotated tag debian/1.12-1
in repository libanyevent-rabbitmq-perl.

commit 4e19c01e83c0f79ae142d67d5ab979540db3f9fb
Author: Chia-liang Kao <clkao at clkao.org>
Date:   Mon Aug 16 15:08:35 2010 +0800

    Use install_share and dist_dir to allow locating amqp_spec file without loading Coro.
---
 Makefile.PL                                          | 1 +
 lib/Net/RabbitFoot.pm                                | 2 +-
 {lib/auto/Net/RabbitFoot => share}/fixed_amqp0-8.xml | 0
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.PL b/Makefile.PL
index 6fd0078..bdbd891 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -19,6 +19,7 @@ requires 'File::ShareDir';
 
 tests 't/*.t';
 author_tests 'xt';
+install_share;
 
 build_requires 'Test::More';
 build_requires 'Test::Exception';
diff --git a/lib/Net/RabbitFoot.pm b/lib/Net/RabbitFoot.pm
index c121df6..280ae97 100644
--- a/lib/Net/RabbitFoot.pm
+++ b/lib/Net/RabbitFoot.pm
@@ -38,7 +38,7 @@ sub load_xml_spec {
 }
 
 sub default_amqp_spec {
-    my $dir = File::ShareDir::module_dir(__PACKAGE__);
+    my $dir = File::ShareDir::dist_dir("Net-RabbitFoot");
     return "$dir/fixed_amqp0-8.xml";
 }
 
diff --git a/lib/auto/Net/RabbitFoot/fixed_amqp0-8.xml b/share/fixed_amqp0-8.xml
similarity index 100%
rename from lib/auto/Net/RabbitFoot/fixed_amqp0-8.xml
rename to share/fixed_amqp0-8.xml

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libanyevent-rabbitmq-perl.git



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