Permalink
Browse files

Use Thrift::XS when possible. Updated debian packaging.

  • Loading branch information...
1 parent 4cdd34d commit de6f1bfe9949f3f12a846598e964afefa0461593 @fmgoncalves committed Jan 3, 2012
Showing with 4 additions and 23 deletions.
  1. +1 −1 debian/compat
  2. +1 −1 debian/control
  3. +0 −20 debian/control~
  4. +2 −1 lib/Cassandra/Pool/CassandraServer.pm
View
@@ -1 +1 @@
-8
+7
View
@@ -2,7 +2,7 @@ Source: libcassandra-simple-perl
Section: perl
Priority: optional
Maintainer: Filipe Gonçalves <the.wa.syndrome@gmail>
-Build-Depends: debhelper (>= 7)
+Build-Depends: debhelper (>= 7.0)
Build-Depends-Indep: perl
Standards-Version: 3.9.2
Homepage: http://search.cpan.org/dist/Cassandra-Simple/
View
@@ -1,20 +0,0 @@
-Source: libcassandra-simple-perl
-Section: perl
-Priority: optional
-Maintainer: filipe <the.wa.syndrome@gmail.com>
-Build-Depends: debhelper (>= 8)
-Build-Depends-Indep: perl
-Standards-Version: 3.9.2
-Homepage: http://search.cpan.org/dist/Cassandra-Simple/
-
-Package: libcassandra-simple-perl
-Architecture: all
-Depends: ${misc:Depends}, ${perl:Depends}
-Description: Cassandra::Simple
- Easy to use, Perl oriented client interface to Apache Cassandra.
- .
- Cassandra::Simple attempts to abstract the underlying Thrift methods as much
- as possible to allow any Perl developer a small learning curve when using
- Cassandra.
- .
- This description was automagically extracted from the module by dh-make-perl.
@@ -6,7 +6,8 @@ use warnings;
use Cassandra::Cassandra;
use Cassandra::Types;
use Thrift;
-use Thrift::BinaryProtocol;
+eval "use Thrift::XS::BinaryProtocol";
+if ($@) {use Thrift::BinaryProtocol }
use Thrift::FramedTransport;
use Thrift::Socket;

0 comments on commit de6f1bf

Please sign in to comment.