01 Mar 2016 18:39:21 UTC
- Distribution: Alien-OpenVcdiff
- Module version: 0.101
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (165 / 13 / 0)
- KwaliteeBus factor: 0
- License: apache_2_0
- Perl: v5.8.1
- Activity24 month
- Download (742.72KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionFRACTAL Doug Hoyte
- SEE ALSO
- COPYRIGHT & LICENSE
Alien::OpenVcdiff - Build and install Google's open-vcdiff delta encoding library
use Alien::OpenVcdiff; say Alien::OpenVcdiff::vcdiff_binary(); ## /usr/local/share/perl/5.16.2/auto/share/dist/Alien-OpenVcdiff/bin/vcdiff system(Alien::OpenVcdiff::vcdiff_binary() . " encode -dictionary file1 -target file2 -json");
my $openvcdiff = Alien::OpenVcdiff->new; my $cflags = $openvcdiff->cflags; ## "-I/usr/local/share/perl/5.16.2/auto/share/dist/Alien-OpenVcdiff/include/google" my $libs = $openvcdiff->libs; ## "-L/usr/local/share/perl/5.16.2/auto/share/dist/Alien-OpenVcdiff/lib -lvcdcom -lvcddec -lvcdenc"
The above methods are inherited from Alien::Base which has worked really well so far except with
$cflagsI found I had to strip the "google" off the end of the include directory.
This package configures, builds, and installs Google's open-vcdiff. This library and its associated command-line utility
vcdiffimplement RFC 3284, "The VCDIFF Generic Differencing and Compression Data Format". This RFC specifies a file format for delta encoding and can be thought of as a diff/patch equivalent for binary data (or any kind of data really).
vcdiffcommand-line utility binary's location can be found by calling
Alien::OpenVcdiff::vcdiff_binary()after the package has been loaded.
Although the binary might come in handy sometimes, the primary purpose of this module is to install the
libvcddec.soshared libraries so that they can be used by the Vcdiff::OpenVcdiff module. Nothing from
open-vcdiffis installed globally -- it's all contained in the perl auto directory.
Copyright 2013 Doug Hoyte.
This module includes open-vcdiff which is copyright Google Inc and Lincoln Smith. open-vcdiff is licensed under the Apache 2.0 license which can be found in the included open-vcdiff distribution.
This module is licensed under the same terms as perl itself or under the Apache 2.0 license, whichever you prefer.
Module Install Instructions
To install Alien::OpenVcdiff, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Alien::OpenVcdiff
For more information on module installation, please visit the detailed CPAN module installation guide.