pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import p5-OSSP-uuid-1.6.2 as wip/p5-OSSP-uuid.
Module Name: pkgsrc-wip
Committed By: Mike M. Volokhov <mike.volokhov%gmail.com@localhost>
Pushed By: mishka
Date: Thu Dec 15 22:30:19 2016 +0200
Changeset: 53ab7880af38d75c284fe60eb6eba17a99cd7031
Added Files:
p5-OSSP-uuid/DESCR
p5-OSSP-uuid/Makefile
p5-OSSP-uuid/distinfo
p5-OSSP-uuid/patches/patch-perl_Makefile.PL
p5-OSSP-uuid/patches/patch-perl_uuid.xs
Log Message:
Import p5-OSSP-uuid-1.6.2 as wip/p5-OSSP-uuid.
OSSP::uuid is the Perl binding to the OSSP uuid API. Three variants
are provided - tie-style, OO-style, and C-style.
Packaging question though:
should it share patches and common vars with the devel/ossp-uuid?
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=53ab7880af38d75c284fe60eb6eba17a99cd7031
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
p5-OSSP-uuid/DESCR | 12 +++++++++
p5-OSSP-uuid/Makefile | 20 +++++++++++++++
p5-OSSP-uuid/distinfo | 8 ++++++
p5-OSSP-uuid/patches/patch-perl_Makefile.PL | 39 +++++++++++++++++++++++++++++
p5-OSSP-uuid/patches/patch-perl_uuid.xs | 27 ++++++++++++++++++++
5 files changed, 106 insertions(+)
diffs:
diff --git a/p5-OSSP-uuid/DESCR b/p5-OSSP-uuid/DESCR
new file mode 100644
index 0000000..c7c1451
--- /dev/null
+++ b/p5-OSSP-uuid/DESCR
@@ -0,0 +1,12 @@
+OSSP uuid is a ISO-C:1999 application programming interface (API)
+and corresponding command line interface (CLI) for the generation
+of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally
+Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
+1 (time and node based), version 3 (name based, MD5), version 4
+(random number based) and version 5 (name based, SHA-1). Additional
+API bindings are provided for the languages ISO-C++:1998, Perl:5 and
+PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
+and Perl Data::UUID APIs.
+
+OSSP::uuid is the Perl binding to the OSSP uuid API. Three variants
+are provided - tie-style, OO-style, and C-style.
diff --git a/p5-OSSP-uuid/Makefile b/p5-OSSP-uuid/Makefile
new file mode 100644
index 0000000..4906805
--- /dev/null
+++ b/p5-OSSP-uuid/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME= uuid-1.6.2
+PKGNAME= p5-OSSP-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ftp://ftp.ossp.org/pkg/lib/uuid/
+
+MAINTAINER= mishka%NetBSD.org@localhost
+HOMEPAGE= http://www.ossp.org/pkg/lib/uuid/
+COMMENT= OSSP uuid Perl binding
+LICENSE= mit
+
+PERL5_CONFIGURE_DIRS= perl
+BUILD_DIRS= ${PERL5_CONFIGURE_DIRS}
+
+PERL5_PACKLIST= auto/OSSP/uuid/.packlist
+
+.include "../../devel/ossp-uuid/buildlink3.mk"
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/p5-OSSP-uuid/distinfo b/p5-OSSP-uuid/distinfo
new file mode 100644
index 0000000..d716911
--- /dev/null
+++ b/p5-OSSP-uuid/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (uuid-1.6.2.tar.gz) = 3e22126f0842073f4ea6a50b1f59dcb9d094719f
+RMD160 (uuid-1.6.2.tar.gz) = f9cd513577557c4f1d7de869f80035b8844b56d7
+SHA512 (uuid-1.6.2.tar.gz) = 16c7e016ce08d7679cc6ee7dec43a886a8c351960acdde99f8f9b590c7232d521bc6e66e4766d969d22c3f835dcc2814fdecc44eef1cd11e7b9b0f9c41b5c03e
+Size (uuid-1.6.2.tar.gz) = 397048 bytes
+SHA1 (patch-perl_Makefile.PL) = 21be77416a551afd15debe0894f62d822ce78101
+SHA1 (patch-perl_uuid.xs) = 075b1bb78ef625c6df333dd4c1b38d7d2770c91a
diff --git a/p5-OSSP-uuid/patches/patch-perl_Makefile.PL b/p5-OSSP-uuid/patches/patch-perl_Makefile.PL
new file mode 100644
index 0000000..162e79d
--- /dev/null
+++ b/p5-OSSP-uuid/patches/patch-perl_Makefile.PL
@@ -0,0 +1,39 @@
+$NetBSD$
+
+Detach the perl module from the ossp-uuid sources and use it as
+dependency instead.
+
+Also, rename package files to avoid conflict with devel/libuuid
+(based on Debian patches, stolen from devel/ossp-uuid).
+
+--- perl/Makefile.PL.orig 2007-01-01 18:13:18.000000000 +0000
++++ perl/Makefile.PL
+@@ -33,9 +33,6 @@ use Config;
+ use ExtUtils::MakeMaker;
+
+ # determine source directory
+-my ($srcdir) = map { my $d = $_; $d =~ s/\/libuuid\.la$//; $d }
+- grep { -f $_ } ("../libuuid.la", glob("../*/libuuid.la"))
+- or die "no source directory found (where libuuid.la is located)";
+
+ # determine extra build options
+ my $compat = 0;
+@@ -47,15 +44,15 @@ WriteMakefile(
+ VERSION_FROM => 'uuid.pm',
+ ABSTRACT_FROM => 'uuid.pod',
+ PREREQ_PM => {},
+- LIBS => [ "-L$srcdir/.libs -L$srcdir -luuid" ],
++ LIBS => [ "$ENV{LDFLAGS} -lossp-uuid" ],
+ DEFINE => '',
+ INC => "-I. -I$srcdir",
+ PM => { 'uuid.pm' => '$(INST_LIBDIR)/uuid.pm',
+ 'uuid.pod' => '$(INST_LIBDIR)/uuid.pod',
+ ($compat ? ('uuid_compat.pm' => '$(INST_LIBDIR)/../Data/UUID.pm') : ()),
+ ($compat ? ('uuid_compat.pod' => '$(INST_LIBDIR)/../Data/UUID.pod') : ()), },
+- MAN3PODS => { 'uuid.pod' => '$(INST_MAN3DIR)/OSSP::uuid.3',
+- ($compat ? ('uuid_compat.pod' => '$(INST_MAN3DIR)/Data::UUID.3') : ()), },
++ MAN3PODS => { 'uuid.pod' => '$(INST_MAN3DIR)/OSSP::uuid.3pm',
++ ($compat ? ('uuid_compat.pod' => '$(INST_MAN3DIR)/Data::UUID.3pm') : ()), },
+ TYPEMAPS => [ 'uuid.tm' ],
+ test => { TESTS => 'uuid.ts' . ($compat ? ' uuid_compat.ts' : '') },
+ NO_META => 1,
diff --git a/p5-OSSP-uuid/patches/patch-perl_uuid.xs b/p5-OSSP-uuid/patches/patch-perl_uuid.xs
new file mode 100644
index 0000000..634d0aa
--- /dev/null
+++ b/p5-OSSP-uuid/patches/patch-perl_uuid.xs
@@ -0,0 +1,27 @@
+$NetBSD$
+
+Workaround conflicts with system headers.
+
+--- perl/uuid.xs.orig 2007-01-01 18:13:21.000000000 +0000
++++ perl/uuid.xs
+@@ -27,12 +27,19 @@
+ ** uuid.xs: Perl Binding (Perl/XS part)
+ */
+
+-#include "uuid.h"
++#define uuid_t __vendor_uuid_t
++#define uuid_st __vendor_uuid_st
++#define uuid_compare __vendor_uuid_compare
+
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
+
++#undef uuid_t
++#undef uuid_st
++#undef uuid_compare
++#include "uuid.h"
++
+ MODULE = OSSP::uuid PACKAGE = OSSP::uuid
+
+ void
Home |
Main Index |
Thread Index |
Old Index