From 799533860e87ec6c8dddba3f16c9d32e5d5b4e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Sj=C3=B6din?= Date: Sun, 5 Aug 2018 23:17:28 +0300 Subject: [PATCH 1/2] Fix perl-pdf-api2 --- recipes/perl-pdf-api2/build.sh | 19 ++++- recipes/perl-pdf-api2/meta.yaml | 133 +++++++++++++++++++++++++++++--- 2 files changed, 139 insertions(+), 13 deletions(-) diff --git a/recipes/perl-pdf-api2/build.sh b/recipes/perl-pdf-api2/build.sh index f4854f7385109..67918fe672fe6 100644 --- a/recipes/perl-pdf-api2/build.sh +++ b/recipes/perl-pdf-api2/build.sh @@ -1,2 +1,19 @@ #!/bin/bash -cpanm -i . + +# If it has Build.PL use that, otherwise use Makefile.PL +if [ -f Build.PL ]; then + perl Build.PL + perl ./Build + perl ./Build test + # Make sure this goes in site + perl ./Build install --installdirs site +elif [ -f Makefile.PL ]; then + # Make sure this goes in site + perl Makefile.PL INSTALLDIRS=site + make + make test + make install +else + echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.' + exit 1 +fi diff --git a/recipes/perl-pdf-api2/meta.yaml b/recipes/perl-pdf-api2/meta.yaml index fb5b367aa3936..f2aadd6e087e3 100644 --- a/recipes/perl-pdf-api2/meta.yaml +++ b/recipes/perl-pdf-api2/meta.yaml @@ -1,29 +1,138 @@ +{% set name = "perl-pdf-api2" %} +{% set version = "2.033" %} +{% set sha256 = "9c0866ec1a3053f73afaca5f5cdbe6925903b4ce606f4bf4ac317731a69d27a0" %} + package: - name: perl-pdf-api2 - version: '2.025' + name: {{ name }} + version: {{ version }} source: - url: https://cpan.metacpan.org/authors/id/S/SS/SSIMMS/PDF-API2-2.025.tar.gz - sha256: 123b49cd459526662d9e0c98c68a52294132051327abe07af1255d599e6d62ea + url: https://cpan.metacpan.org/authors/id/S/SS/SSIMMS/PDF-API2-2.033.tar.gz + sha256: {{ sha256 }} build: - number: 3 + number: 0 requirements: - build: - - {{ compiler('c') }} host: - perl - - perl-app-cpanminus - - perl-module-build + - perl-extutils-makemaker + - perl-font-ttf + - perl-test-memory-cycle + - perl-test-exception + run: - perl + - perl-font-ttf test: imports: - PDF::API2 + - PDF::API2::Annotation + - PDF::API2::Basic::PDF::Array + - PDF::API2::Basic::PDF::Bool + - PDF::API2::Basic::PDF::Dict + - PDF::API2::Basic::PDF::File + - PDF::API2::Basic::PDF::Filter + - PDF::API2::Basic::PDF::Filter::ASCII85Decode + - PDF::API2::Basic::PDF::Filter::ASCIIHexDecode + - PDF::API2::Basic::PDF::Filter::FlateDecode + - PDF::API2::Basic::PDF::Filter::LZWDecode + - PDF::API2::Basic::PDF::Filter::RunLengthDecode + - PDF::API2::Basic::PDF::Literal + - PDF::API2::Basic::PDF::Name + - PDF::API2::Basic::PDF::Null + - PDF::API2::Basic::PDF::Number + - PDF::API2::Basic::PDF::Objind + - PDF::API2::Basic::PDF::Page + - PDF::API2::Basic::PDF::Pages + - PDF::API2::Basic::PDF::String + - PDF::API2::Basic::PDF::Utils + - PDF::API2::Content + - PDF::API2::Content::Text + - PDF::API2::Lite + - PDF::API2::Matrix + - PDF::API2::NamedDestination + - PDF::API2::Outline + - PDF::API2::Outlines + - PDF::API2::Page + - PDF::API2::Resource + - PDF::API2::Resource::BaseFont + - PDF::API2::Resource::CIDFont + - PDF::API2::Resource::CIDFont::CJKFont + - PDF::API2::Resource::CIDFont::TrueType + - PDF::API2::Resource::CIDFont::TrueType::FontFile + - PDF::API2::Resource::ColorSpace + - PDF::API2::Resource::ColorSpace::DeviceN + - PDF::API2::Resource::ColorSpace::Indexed + - PDF::API2::Resource::ColorSpace::Indexed::ACTFile + - PDF::API2::Resource::ColorSpace::Indexed::Hue + - PDF::API2::Resource::ColorSpace::Indexed::WebColor + - PDF::API2::Resource::ColorSpace::Separation + - PDF::API2::Resource::Colors + - PDF::API2::Resource::ExtGState + - PDF::API2::Resource::Font + - PDF::API2::Resource::Font::BdFont + - PDF::API2::Resource::Font::CoreFont + - PDF::API2::Resource::Font::CoreFont::bankgothic + - PDF::API2::Resource::Font::CoreFont::courier + - PDF::API2::Resource::Font::CoreFont::courierbold + - PDF::API2::Resource::Font::CoreFont::courierboldoblique + - PDF::API2::Resource::Font::CoreFont::courieroblique + - PDF::API2::Resource::Font::CoreFont::georgia + - PDF::API2::Resource::Font::CoreFont::georgiabold + - PDF::API2::Resource::Font::CoreFont::georgiabolditalic + - PDF::API2::Resource::Font::CoreFont::georgiaitalic + - PDF::API2::Resource::Font::CoreFont::helvetica + - PDF::API2::Resource::Font::CoreFont::helveticabold + - PDF::API2::Resource::Font::CoreFont::helveticaboldoblique + - PDF::API2::Resource::Font::CoreFont::helveticaoblique + - PDF::API2::Resource::Font::CoreFont::helveticaoblique + - PDF::API2::Resource::Font::CoreFont::symbol + - PDF::API2::Resource::Font::CoreFont::timesbold + - PDF::API2::Resource::Font::CoreFont::timesbolditalic + - PDF::API2::Resource::Font::CoreFont::timesitalic + - PDF::API2::Resource::Font::CoreFont::timesroman + - PDF::API2::Resource::Font::CoreFont::trebuchet + - PDF::API2::Resource::Font::CoreFont::trebuchetbold + - PDF::API2::Resource::Font::CoreFont::trebuchetbolditalic + - PDF::API2::Resource::Font::CoreFont::trebuchetitalic + - PDF::API2::Resource::Font::CoreFont::verdana + - PDF::API2::Resource::Font::CoreFont::verdanabold + - PDF::API2::Resource::Font::CoreFont::verdanabolditalic + - PDF::API2::Resource::Font::CoreFont::verdanaitalic + - PDF::API2::Resource::Font::CoreFont::webdings + - PDF::API2::Resource::Font::CoreFont::wingdings + - PDF::API2::Resource::Font::CoreFont::zapfdingbats + - PDF::API2::Resource::Font::Postscript + - PDF::API2::Resource::Font::SynFont + - PDF::API2::Resource::Glyphs + - PDF::API2::Resource::PaperSizes + - PDF::API2::Resource::Pattern + - PDF::API2::Resource::Shading + - PDF::API2::Resource::UniFont + - PDF::API2::Resource::XObject + - PDF::API2::Resource::XObject::Form + - PDF::API2::Resource::XObject::Form::BarCode + - PDF::API2::Resource::XObject::Form::BarCode::codabar + - PDF::API2::Resource::XObject::Form::BarCode::code128 + - PDF::API2::Resource::XObject::Form::BarCode::code3of9 + - PDF::API2::Resource::XObject::Form::BarCode::ean13 + - PDF::API2::Resource::XObject::Form::BarCode::int2of5 + - PDF::API2::Resource::XObject::Form::Hybrid + - PDF::API2::Resource::XObject::Image + - PDF::API2::Resource::XObject::Image::GD + - PDF::API2::Resource::XObject::Image::GIF + - PDF::API2::Resource::XObject::Image::JPEG + - PDF::API2::Resource::XObject::Image::PNG + - PDF::API2::Resource::XObject::Image::PNM + - PDF::API2::Resource::XObject::Image::TIFF + - PDF::API2::Resource::XObject::Image::TIFF::File + - PDF::API2::UniWrap + - PDF::API2::Util about: - home: https://metacpan.org/pod/PDF::API2 - license: Perl - summary: Facilitates the creation and modification of PDF files + home: http://metacpan.org/pod/PDF::API2 + license: lgpl_2_1 + summary: 'Facilitates the creation and modification of PDF files' + From 5cd6202776d32ac017e38f915f2ccf06bdcde13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Sj=C3=B6din?= Date: Sun, 5 Aug 2018 23:18:14 +0300 Subject: [PATCH 2/2] Unblacklist --- build-fail-blacklist | 1 - 1 file changed, 1 deletion(-) diff --git a/build-fail-blacklist b/build-fail-blacklist index 682241e62325b..a530855dd664c 100644 --- a/build-fail-blacklist +++ b/build-fail-blacklist @@ -2201,7 +2201,6 @@ recipes/perl-ipc-system-simple recipes/perl-json-maybexs recipes/perl-mixin-linewise recipes/perl-moose -recipes/perl-pdf-api2 recipes/perl-perl-osnames recipes/perl-perl-unsafe-signals recipes/perl-pod-coverage-trustpod/0.100003