[libhtml-gumbo-perl] 05/07: remove usage of Alien::LibGumbo; use ExtUtils::PkgConfig in Build.PL

gregor herrmann gregoa at debian.org
Fri Apr 14 16:23:54 UTC 2017


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

gregoa pushed a commit to branch master
in repository libhtml-gumbo-perl.

commit cf711565360d5932e4267d942e5000370b561e29
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Apr 14 18:16:18 2017 +0200

    remove usage of Alien::LibGumbo; use ExtUtils::PkgConfig in Build.PL
    
    Gbp-Dch: Ignore
---
 debian/control                         |  2 ++
 debian/patches/no-alien-libgumbo.patch | 38 ++++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 41 insertions(+)

diff --git a/debian/control b/debian/control
index eaa94e3..d06237d 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,9 @@ Priority: optional
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: gregor herrmann <gregoa at debian.org>
 Build-Depends: debhelper (>= 9),
+ libgumbo-dev,
  libmodule-build-perl (>= 0.420000),
+ libextutils-pkgconfig-perl,
  perl
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libhtml-gumbo-perl.git
diff --git a/debian/patches/no-alien-libgumbo.patch b/debian/patches/no-alien-libgumbo.patch
new file mode 100644
index 0000000..bd6ca90
--- /dev/null
+++ b/debian/patches/no-alien-libgumbo.patch
@@ -0,0 +1,38 @@
+Description: remove usage of Alien::LibGumbo; use ExtUtils::PkgConfig in Build.PL
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2017-04-14
+
+--- a/Build.PL
++++ b/Build.PL
+@@ -1,7 +1,7 @@
+ use Module::Build;
+-use Alien::LibGumbo;
++use ExtUtils::PkgConfig;
+ 
+-my $alien = Alien::LibGumbo->new;
++my %pkg_info = ExtUtils::PkgConfig->find('gumbo');
+ my $builder = Module::Build->new(
+     module_name => 'HTML::Gumbo',
+     license => 'perl',
+@@ -27,7 +27,7 @@
+ 
+     add_to_cleanup => [ 'HTML-Gumbo-*' ],
+ 
+-    extra_compiler_flags => $alien->cflags(),
+-    extra_linker_flags   => $alien->libs(),
++    extra_compiler_flags => $pkg_info{cflags},
++    extra_linker_flags   => $pkg_info{libs},
+ );
+ $builder->create_build_script;
+--- a/lib/HTML/Gumbo.pm
++++ b/lib/HTML/Gumbo.pm
+@@ -4,7 +4,6 @@
+ 
+ package HTML::Gumbo;
+ 
+-use Alien::LibGumbo 0.03;
+ our $VERSION = '0.17';
+ 
+ require XSLoader;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2745e26
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no-alien-libgumbo.patch

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



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