diff options
author | he <he@pkgsrc.org> | 2008-12-19 18:52:36 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2008-12-19 18:52:36 +0000 |
commit | b80b18b44768a2387442a96aeb703fa8d661bf63 (patch) | |
tree | 71307d147bf4072141949768036ec2b4e6fc7e5e /devel/p5-File-LibMagic | |
parent | 33cc881a670e8458d095d0b3f676af44feadd493 (diff) | |
download | pkgsrc-b80b18b44768a2387442a96aeb703fa8d661bf63.tar.gz |
Import p5-File-LibMagic version 0.90.
Fixes PR#39597.
The File::LibMagic is a simple perlinterface to libmagic from the file-4.x
package from Christos Zoulas
Diffstat (limited to 'devel/p5-File-LibMagic')
-rw-r--r-- | devel/p5-File-LibMagic/DESCR | 2 | ||||
-rw-r--r-- | devel/p5-File-LibMagic/Makefile | 22 | ||||
-rw-r--r-- | devel/p5-File-LibMagic/distinfo | 7 | ||||
-rw-r--r-- | devel/p5-File-LibMagic/patches/patch-aa | 11 | ||||
-rw-r--r-- | devel/p5-File-LibMagic/patches/patch-ab | 22 |
5 files changed, 64 insertions, 0 deletions
diff --git a/devel/p5-File-LibMagic/DESCR b/devel/p5-File-LibMagic/DESCR new file mode 100644 index 00000000000..6ae9e365fab --- /dev/null +++ b/devel/p5-File-LibMagic/DESCR @@ -0,0 +1,2 @@ +The File::LibMagic is a simple perlinterface to libmagic from the file-4.x +package from Christos Zoulas diff --git a/devel/p5-File-LibMagic/Makefile b/devel/p5-File-LibMagic/Makefile new file mode 100644 index 00000000000..c5f80fb4cd8 --- /dev/null +++ b/devel/p5-File-LibMagic/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/12/19 18:52:36 he Exp $ + +DISTNAME= File-LibMagic-0.90 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=File/} +EXTRACT_SUFX= .tgz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/File-LibMagic/ +COMMENT= Perlwrapper for libmagic + +PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= c + +PERL5_PACKLIST= auto/File/LibMagic/.packlist + +.include "../../sysutils/file/buildlink3.mk" +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-File-LibMagic/distinfo b/devel/p5-File-LibMagic/distinfo new file mode 100644 index 00000000000..f102da01f90 --- /dev/null +++ b/devel/p5-File-LibMagic/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/12/19 18:52:36 he Exp $ + +SHA1 (File-LibMagic-0.90.tgz) = 34b57a8fb8b480ce7df3eb39cc53dc4a68c8288d +RMD160 (File-LibMagic-0.90.tgz) = 25a2cc4a485042656b82b26b7bdedf913f5a096b +Size (File-LibMagic-0.90.tgz) = 11514 bytes +SHA1 (patch-aa) = d199188c30851256c422a4095d78ed8485b7a2a7 +SHA1 (patch-ab) = 435e04cd9de7c0e2867833796597ee7073a6a3cc diff --git a/devel/p5-File-LibMagic/patches/patch-aa b/devel/p5-File-LibMagic/patches/patch-aa new file mode 100644 index 00000000000..c2a61d74117 --- /dev/null +++ b/devel/p5-File-LibMagic/patches/patch-aa @@ -0,0 +1,11 @@ +--- Makefile.PL.orig 2008-08-06 10:56:22.000000000 +0200 ++++ Makefile.PL 2008-09-18 11:48:17.459072000 +0200 +@@ -12,7 +12,7 @@ + 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 + 'ABSTRACT_FROM' => 'LibMagic.pm', # retrieve abstract from module + 'AUTHOR' => 'Andreas Fitzner <fitzner@informatik.hu-berlin.de>', +- 'LIBS' => ['-lmagic -lz'], # e.g., '-lm' ++ 'LIBS' => [$ENV{LDFLAGS} . ' -lmagic -lz'], # e.g., '-lm' + 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' + 'INC' => '-I.', # e.g., '-I. -I/usr/include/other' + # Un-comment this if you add C files to link with later: diff --git a/devel/p5-File-LibMagic/patches/patch-ab b/devel/p5-File-LibMagic/patches/patch-ab new file mode 100644 index 00000000000..5aaa3a1ee08 --- /dev/null +++ b/devel/p5-File-LibMagic/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/12/19 18:52:36 he Exp $ + +--- t/6-oo.t.orig 2008-05-18 14:37:10.000000000 +0200 ++++ t/6-oo.t +@@ -5,13 +5,13 @@ use Test::More; + use File::LibMagic; + + my %standard = ( +- 'foo.foo' => [ 'ASCII text', 'text/plain charset=us-ascii' ], +- 'foo.c' => [ 'ASCII C program text', 'text/x-c charset=us-ascii' ], ++ 'foo.foo' => [ 'ASCII text', 'text/plain; charset=us-ascii' ], ++ 'foo.c' => [ 'ASCII C program text', 'text/x-c; charset=us-ascii' ], + ); + + my %custom = ( +- 'foo.foo' => [ 'A foo file', 'text/plain charset=us-ascii' ], +- 'foo.c' => [ 'ASCII C program text', 'text/x-c charset=us-ascii' ], ++ 'foo.foo' => [ 'A foo file', 'text/x-foo' ], ++ 'foo.c' => [ 'ASCII C program text', 'text/x-c; charset=us-ascii' ], + ); + + plan tests => 4 + 4*(keys %standard) + 4*(keys %custom); |