Skip to content

Commit

Permalink
Merge branch 'develop' into release-1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed Aug 21, 2015
2 parents c001057 + 8a05095 commit 7cb596a
Show file tree
Hide file tree
Showing 12 changed files with 233 additions and 87 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ You can install libsixel via the following package systems.
- [Homebrew tap](https://github.com/aki017/homebrew-sixel)
- [yacp](https://github.com/fd00/yacp/tree/master/libsixel)
- [Debian](https://packages.debian.org/search?searchon=names&keywords=libsixel)
- [AUR](https://aur.archlinux.org/packages/libsixel/)
- [AUR](https://aur.archlinux.org/packages/libsixel-git/)
- [Portage](http://packages.gentoo.org/package/media-libs/libsixel)
- [Ubuntu](https://launchpad.net/ubuntu/+source/libsixel)

Expand Down
8 changes: 8 additions & 0 deletions perl/Build.PL
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# =========================================================================
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
# DO NOT EDIT DIRECTLY.
# =========================================================================

use 5.008_001;
use strict;

use Module::Build;

my $builder = Module::Build->new (
Expand Down
6 changes: 6 additions & 0 deletions perl/Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Revision history for Perl extension Image::LibSIXEL

{{$NEXT}}

- initial version

1 change: 1 addition & 0 deletions perl/MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ lib/Image/LibSIXEL.pm
lib/Image/LibSIXEL/Encoder.pm
lib/Image/LibSIXEL/Decoder.pm
t/libsixel.t
LICENSE
Makefile.PL
MANIFEST This list of files
MANIFEST.SKIP
Expand Down
76 changes: 76 additions & 0 deletions perl/META.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"abstract" : "The Perl interface for libsixel (A lightweight, fast implementation of DEC SIXEL graphics codec)",
"author" : [
"Hayaki Saito <saitoha@me.com>"
],
"dynamic_config" : 0,
"generated_by" : "Minilla/v2.4.1, CPAN::Meta::Converter version 2.150001",
"license" : [
"unknown"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
},
"name" : "Image-LibSIXEL",
"no_index" : {
"directory" : [
"t",
"xt",
"inc",
"share",
"eg",
"examples",
"author",
"builder"
]
},
"prereqs" : {
"configure" : {
"requires" : {
"Module::Build::Tiny" : "0.035"
}
},
"build" : {
"requires" : {
"ExtUtils::CBuilder" : "0",
"Test::More" : "0"
}
},
"develop" : {
"requires" : {
"Test::CPAN::Meta" : "0",
"Test::MinimumVersion::Fast" : "0.04",
"Test::PAUSE::Permissions" : "0.04",
"Test::Pod" : "1.41",
"Test::Spellunker" : "v0.2.7"
}
},
"runtime" : {
"requires" : {
"perl" : "5.012001"
}
},
"test" : {
"requires" : {
"Test::More" : "0.98"
}
}
},
"release_status" : "unstable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/saitoha/libsixel-perl/issues"
},
"homepage" : "https://github.com/saitoha/libsixel-perl",
"repository" : {
"type" : "git",
"url" : "git://github.com/saitoha/libsixel-perl.git",
"web" : "https://github.com/saitoha/libsixel-perl"
}
},
"version" : "0.01",
"x_contributors" : [
"Hayaki Saito <user@zuse.jp>"
]
}
4 changes: 4 additions & 0 deletions perl/META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ provides:
file: lib/Image/LibSIXEL/Encoder.pm
version: 0
resources:
bugtracker: https://github.com/saitoha/libsixel-perl/issues
homepage: https://github.com/saitoha/libsixel-perl
license: http://opensource.org/licenses/mit-license.php
version: 0.01
x_contributors:
- 'Hayaki Saito <saitoha@me.com>'
55 changes: 36 additions & 19 deletions perl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,22 @@ Image::LibSIXEL - The Perl interface for libsixel (A lightweight, fast implement

# SYNOPSIS

```perl
use Image::LibSIXEL;

$encoder = Image::LibSIXEL::Encoder->new();
$encoder->setopt("w", 400);
$encoder->setopt("p", 16);
$encoder->encode("images/egret.jpg");
```

```perl
use Image::LibSIXEL;

$decoder = Image::LibSIXEL::Decoder->new();
$decoder->setopt("i", "images/egret.six");
$decoder->setopt("o", "egret.png");
$decoder->decode();
```
use Image::LibSIXEL;
$encoder = Image::LibSIXEL::Encoder->new();
$encoder->setopt("w", 400);
$encoder->setopt("p", 16);
$encoder->encode("images/egret.jpg");
$decoder = Image::LibSIXEL::Decoder->new();
$decoder->setopt("i", "images/egret.six");
$decoder->setopt("o", "egret.png");
$decoder->decode();

# DESCRIPTION

This perl module provides wrapper objects for part of [libsixel](http://saitoha.github.io/libsixel/) interface.

This perl module provides wrapper objects for part of libsixel interface.
http://saitoha.github.io/libsixel/

# LICENSE

Expand All @@ -48,8 +42,31 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# DESCRIPTION


## Class Methods

&#x3d;Image::LibSIXEL::Encoder->new

Create Encoder object

&#x3d;Image::LibSIXEL::Decoder->new

Create Decoder object

## Object Methods

&#x3d;Image::LibSIXEL::Encoder->setopt

&#x3d;Image::LibSIXEL::Encoder->encode

&#x3d;Image::LibSIXEL::Decoder->setopt

&#x3d;Image::LibSIXEL::Decoder->decode

# AUTHOR

Hayaki Saito <saitoha@me.com>

# SEE ALSO
17 changes: 17 additions & 0 deletions perl/builder/MyBuilder.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package MyBuilder;

use strict;
use warnings;
use parent qw(Module::Build);
use File::Copy;

sub new {
my ($self, %args) = @_;
$self->SUPER::new(
%args,
extra_compiler_flags => [scalar `libsixel-config --cflags`],
extra_linker_flags => [scalar `libsixel-config --libs`],
);
}

1;

0 comments on commit 7cb596a

Please sign in to comment.