summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2008-09-15 14:57:28 +0000
committerhe <he@pkgsrc.org>2008-09-15 14:57:28 +0000
commit890b4e46ad82fd6a81d91b5d73ee1f4baa2c7711 (patch)
tree997798b9eec5c9d6a2b807b5aaed326c83f6514b /net
parent49e5b51d0bd7f83e1424250263b239ee3a46110e (diff)
downloadpkgsrc-890b4e46ad82fd6a81d91b5d73ee1f4baa2c7711.tar.gz
Import p5-Net-LibIDN version 0.11.
Adapted from submission in PR#39542. Adds a patch to portably pull in $Config{ldflags} to avoid run-path lossage which would otherwise ensue. Provides bindings for GNU Libidn, a C library for handling Internationalized Domain Names according to IDNA (RFC 3490), in a way very much inspired by Turbo Fredriksson's PHP-IDN.
Diffstat (limited to 'net')
-rw-r--r--net/p5-Net-LibIDN/DESCR3
-rw-r--r--net/p5-Net-LibIDN/Makefile22
-rw-r--r--net/p5-Net-LibIDN/distinfo6
-rw-r--r--net/p5-Net-LibIDN/patches/patch-aa21
4 files changed, 52 insertions, 0 deletions
diff --git a/net/p5-Net-LibIDN/DESCR b/net/p5-Net-LibIDN/DESCR
new file mode 100644
index 00000000000..63f6138f3fb
--- /dev/null
+++ b/net/p5-Net-LibIDN/DESCR
@@ -0,0 +1,3 @@
+Provides bindings for GNU Libidn, a C library for handling Internationalized
+Domain Names according to IDNA (RFC 3490), in a way very much inspired by
+Turbo Fredriksson's PHP-IDN.
diff --git a/net/p5-Net-LibIDN/Makefile b/net/p5-Net-LibIDN/Makefile
new file mode 100644
index 00000000000..d8d79d1e4ca
--- /dev/null
+++ b/net/p5-Net-LibIDN/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/15 14:57:28 he Exp $
+
+DISTNAME= Net-LibIDN-0.11
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= net perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Net-LibIDN/
+COMMENT= Perl bindings for GNU Libidn
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
+MAKE_PARAMS.makemaker+= --with-libidn=${PREFIX}/lib
+MAKE_PARAMS.makemaker+= --with-libidn-inc=${PREFIX}/include
+
+PERL5_PACKLIST= auto/Net/LibIDN/.packlist
+
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/p5-Net-LibIDN/distinfo b/net/p5-Net-LibIDN/distinfo
new file mode 100644
index 00000000000..8e501abcef9
--- /dev/null
+++ b/net/p5-Net-LibIDN/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/09/15 14:57:28 he Exp $
+
+SHA1 (Net-LibIDN-0.11.tar.gz) = 702671498230e7f1da2046fb000bd7fcabb2cbdb
+RMD160 (Net-LibIDN-0.11.tar.gz) = 00b5714590527e9ef2d7ce94f88d937ffe414067
+Size (Net-LibIDN-0.11.tar.gz) = 14133 bytes
+SHA1 (patch-aa) = 663abae5d8a7aa7cb653da343160c058dcd11602
diff --git a/net/p5-Net-LibIDN/patches/patch-aa b/net/p5-Net-LibIDN/patches/patch-aa
new file mode 100644
index 00000000000..f3dff6f0ddc
--- /dev/null
+++ b/net/p5-Net-LibIDN/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/09/15 14:57:28 he Exp $
+
+--- Makefile.PL.orig 2008-08-26 19:39:22.000000000 +0200
++++ Makefile.PL
+@@ -1,6 +1,7 @@
+ use strict;
+ use ExtUtils::MakeMaker;
+ use Getopt::Long;
++use Config;
+
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
+ # the contents of the Makefile that is written.
+@@ -48,7 +49,7 @@ sub InitMakeParams
+
+ if ($libdir)
+ {
+- $Params{LIBS} = "-L$libdir -lidn";
++ $Params{LIBS} = $Config{ldflags} . " -lidn";
+ }
+ else
+ {