pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libxslt-32: compat32 package for libxslt



Module Name:	pkgsrc-wip
Committed By:	Naveen Narayanan <zerous@nocebo.space>
Pushed By:	zerous
Date:		Sun Jun 30 18:46:13 2019 +0200
Changeset:	2f6207d5b5de6090d703a91abe36c8907c0fbd37

Added Files:
	libxslt-32/DESCR
	libxslt-32/Makefile
	libxslt-32/Makefile.common
	libxslt-32/PLIST
	libxslt-32/buildlink3.mk
	libxslt-32/distinfo
	libxslt-32/patches/patch-libexslt_date.c
	libxslt-32/xsltproc-nonet.mk

Log Message:
libxslt-32: compat32 package for libxslt

Libxslt is the XSLT C library developed for the Gnome project. XSLT itself is
an XML language to define transformation for XML. Libxslt is based on libxml2
the XML C library developed for the Gnome project. It also implements most of
the EXSLT set of extensions functions and some of Saxon's evaluate and
expressions extensions.

This package is intended to crosscompile libxslt for i386.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2f6207d5b5de6090d703a91abe36c8907c0fbd37

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libxslt-32/DESCR                         |   7 ++
 libxslt-32/Makefile                      |  33 ++++++++
 libxslt-32/Makefile.common               |  21 +++++
 libxslt-32/PLIST                         | 127 +++++++++++++++++++++++++++++++
 libxslt-32/buildlink3.mk                 |  16 ++++
 libxslt-32/distinfo                      |   7 ++
 libxslt-32/patches/patch-libexslt_date.c |  12 +++
 libxslt-32/xsltproc-nonet.mk             |  15 ++++
 8 files changed, 238 insertions(+)

diffs:
diff --git a/libxslt-32/DESCR b/libxslt-32/DESCR
new file mode 100644
index 0000000000..97da94e582
--- /dev/null
+++ b/libxslt-32/DESCR
@@ -0,0 +1,7 @@
+Libxslt is the XSLT C library developed for the Gnome project. XSLT itself is
+an XML language to define transformation for XML. Libxslt is based on libxml2
+the XML C library developed for the Gnome project. It also implements most of
+the EXSLT set of extensions functions and some of Saxon's evaluate and
+expressions extensions.
+
+This package is intended to crosscompile libxslt for i386.
diff --git a/libxslt-32/Makefile b/libxslt-32/Makefile
new file mode 100644
index 0000000000..aed5e633cb
--- /dev/null
+++ b/libxslt-32/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.108 2019/01/09 19:12:14 adam Exp $
+
+.include "Makefile.common"
+
+BUILD_DEPENDS+=	docbook-xml-[0-9]*:../../textproc/docbook-xml
+BUILD_DEPENDS+=	docbook-xsl-[0-9]*:../../textproc/docbook-xsl
+
+USE_LIBTOOL=		yes
+USE_TOOLS+=		gmake perl
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--with-libxml-prefix=${BUILDLINK_PREFIX.libxml2}
+CONFIGURE_ARGS+=	--without-python
+CONFIGURE_ARGS+=	--with-html-subdir=libxslt
+LIBABISUFFIX?=          /32
+CONFIGURE_ARGS+=        --libdir=${PREFIX}/lib${LIBABISUFFIX}
+CFLAGS+=                -m32
+
+PKGCONFIG_OVERRIDE=	libxslt.pc.in
+PKGCONFIG_OVERRIDE+=	libexslt.pc.in
+TEST_TARGET=		check
+
+BUILDLINK_TRANSFORM.SunOS+=	opt:-Wl,./libxslt.syms:-Wl,./libxslt_solaris.syms
+
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MIRIX-5*)
+CPPFLAGS+=	-Dsocklen_t=int
+.endif
+
+#BUILDLINK_API_DEPENDS.libxml2+=	libxml2>=2.6.27
+
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../libxml2-32/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libxslt-32/Makefile.common b/libxslt-32/Makefile.common
new file mode 100644
index 0000000000..62f4611595
--- /dev/null
+++ b/libxslt-32/Makefile.common
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile.common,v 1.5 2019/01/09 19:12:14 adam Exp $
+#
+# used by textproc/libxslt/Makefile
+# used by textproc/py-libxslt/Makefile
+
+DISTNAME=	libxslt-1.1.33
+CATEGORIES=	textproc
+MASTER_SITES=	ftp://xmlsoft.org/libxslt/
+MASTER_SITES+=	http://xmlsoft.org/sources/
+ABI?=           	32
+PKGNAME=		compat${ABI}_libxslt-1.1.33
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://xmlsoft.org/XSLT/
+COMMENT=	XSLT parser library from the GNOME project
+LICENSE=	mit # with advertisement clause
+
+PATCHDIR=	${.CURDIR}/../../textproc/libxslt/patches
+DISTINFO_FILE=	${.CURDIR}/../../textproc/libxslt/distinfo
+
+post-extract:
+	cp ${WRKSRC}/libxslt/libxslt.syms ${WRKSRC}/libxslt/libxslt_solaris.syms
diff --git a/libxslt-32/PLIST b/libxslt-32/PLIST
new file mode 100644
index 0000000000..09cb8935ab
--- /dev/null
+++ b/libxslt-32/PLIST
@@ -0,0 +1,127 @@
+@comment $NetBSD: PLIST,v 1.40 2010/04/13 16:14:03 drochner Exp $
+bin/xslt-config
+bin/xsltproc
+include/libexslt/exslt.h
+include/libexslt/exsltconfig.h
+include/libexslt/exsltexports.h
+include/libxslt/attributes.h
+include/libxslt/documents.h
+include/libxslt/extensions.h
+include/libxslt/extra.h
+include/libxslt/functions.h
+include/libxslt/imports.h
+include/libxslt/keys.h
+include/libxslt/namespaces.h
+include/libxslt/numbersInternals.h
+include/libxslt/pattern.h
+include/libxslt/preproc.h
+include/libxslt/security.h
+include/libxslt/templates.h
+include/libxslt/transform.h
+include/libxslt/variables.h
+include/libxslt/xslt.h
+include/libxslt/xsltInternals.h
+include/libxslt/xsltconfig.h
+include/libxslt/xsltexports.h
+include/libxslt/xsltlocale.h
+include/libxslt/xsltutils.h
+lib/libexslt.la
+lib/libxslt.la
+lib/pkgconfig/libexslt.pc
+lib/pkgconfig/libxslt.pc
+lib/xsltConf.sh
+man/man1/xsltproc.1
+man/man3/libexslt.3
+man/man3/libxslt.3
+share/aclocal/libxslt.m4
+share/doc/libxslt/API.html
+share/doc/libxslt/APIchunk0.html
+share/doc/libxslt/APIchunk1.html
+share/doc/libxslt/APIchunk10.html
+share/doc/libxslt/APIchunk11.html
+share/doc/libxslt/APIchunk12.html
+share/doc/libxslt/APIchunk13.html
+share/doc/libxslt/APIchunk2.html
+share/doc/libxslt/APIchunk3.html
+share/doc/libxslt/APIchunk4.html
+share/doc/libxslt/APIchunk5.html
+share/doc/libxslt/APIchunk6.html
+share/doc/libxslt/APIchunk7.html
+share/doc/libxslt/APIchunk8.html
+share/doc/libxslt/APIchunk9.html
+share/doc/libxslt/APIconstructors.html
+share/doc/libxslt/APIfiles.html
+share/doc/libxslt/APIfunctions.html
+share/doc/libxslt/APIsymbols.html
+share/doc/libxslt/EXSLT/APIchunk0.html
+share/doc/libxslt/EXSLT/APIconstructors.html
+share/doc/libxslt/EXSLT/APIfiles.html
+share/doc/libxslt/EXSLT/APIfunctions.html
+share/doc/libxslt/EXSLT/APIsymbols.html
+share/doc/libxslt/EXSLT/bugs.html
+share/doc/libxslt/EXSLT/docs.html
+share/doc/libxslt/EXSLT/downloads.html
+share/doc/libxslt/EXSLT/exslt.html
+share/doc/libxslt/EXSLT/help.html
+share/doc/libxslt/EXSLT/index.html
+share/doc/libxslt/EXSLT/intro.html
+share/doc/libxslt/FAQ.html
+share/doc/libxslt/Libxslt-Logo-180x168.gif
+share/doc/libxslt/Libxslt-Logo-90x34.gif
+share/doc/libxslt/bugs.html
+share/doc/libxslt/contexts.gif
+share/doc/libxslt/contribs.html
+share/doc/libxslt/docbook.html
+share/doc/libxslt/docs.html
+share/doc/libxslt/downloads.html
+share/doc/libxslt/extensions.html
+share/doc/libxslt/help.html
+share/doc/libxslt/html/book1.html
+share/doc/libxslt/html/home.png
+share/doc/libxslt/html/index.html
+share/doc/libxslt/html/left.png
+share/doc/libxslt/html/libxslt-attributes.html
+share/doc/libxslt/html/libxslt-documents.html
+share/doc/libxslt/html/libxslt-extensions.html
+share/doc/libxslt/html/libxslt-extra.html
+share/doc/libxslt/html/libxslt-functions.html
+share/doc/libxslt/html/libxslt-imports.html
+share/doc/libxslt/html/libxslt-keys.html
+share/doc/libxslt/html/libxslt-lib.html
+share/doc/libxslt/html/libxslt-namespaces.html
+share/doc/libxslt/html/libxslt-numbersInternals.html
+share/doc/libxslt/html/libxslt-pattern.html
+share/doc/libxslt/html/libxslt-preproc.html
+share/doc/libxslt/html/libxslt-security.html
+share/doc/libxslt/html/libxslt-templates.html
+share/doc/libxslt/html/libxslt-transform.html
+share/doc/libxslt/html/libxslt-variables.html
+share/doc/libxslt/html/libxslt-xslt.html
+share/doc/libxslt/html/libxslt-xsltInternals.html
+share/doc/libxslt/html/libxslt-xsltexports.html
+share/doc/libxslt/html/libxslt-xsltlocale.html
+share/doc/libxslt/html/libxslt-xsltutils.html
+share/doc/libxslt/html/right.png
+share/doc/libxslt/html/up.png
+share/doc/libxslt/index.html
+share/doc/libxslt/internals.html
+share/doc/libxslt/intro.html
+share/doc/libxslt/news.html
+share/doc/libxslt/node.gif
+share/doc/libxslt/object.gif
+share/doc/libxslt/processing.gif
+share/doc/libxslt/python.html
+share/doc/libxslt/redhat.gif
+share/doc/libxslt/smallfootonly.gif
+share/doc/libxslt/stylesheet.gif
+share/doc/libxslt/templates.gif
+share/doc/libxslt/tutorial/libxslt_tutorial.c
+share/doc/libxslt/tutorial/libxslttutorial.html
+share/doc/libxslt/tutorial/libxslttutorial.xml
+share/doc/libxslt/tutorial2/libxslt_pipes.c
+share/doc/libxslt/tutorial2/libxslt_pipes.html
+share/doc/libxslt/tutorial2/libxslt_pipes.xml
+share/doc/libxslt/xslt.html
+share/doc/libxslt/xsltproc.html
+share/doc/libxslt/xsltproc2.html
+@pkgdir lib/libxslt-plugins
diff --git a/libxslt-32/buildlink3.mk b/libxslt-32/buildlink3.mk
new file mode 100644
index 0000000000..19f5764d2a
--- /dev/null
+++ b/libxslt-32/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.19 2014/01/01 11:52:03 wiz Exp $
+
+BUILDLINK_TREE+=	libxslt
+
+.if !defined(LIBXSLT_BUILDLINK3_MK)
+LIBXSLT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libxslt+=	libxslt>=1.1.8
+BUILDLINK_ABI_DEPENDS.libxslt+=	libxslt>=1.1.28nb2
+BUILDLINK_PKGSRCDIR.libxslt?=	../../textproc/libxslt
+
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.endif # LIBXSLT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libxslt
diff --git a/libxslt-32/distinfo b/libxslt-32/distinfo
new file mode 100644
index 0000000000..bb91698e31
--- /dev/null
+++ b/libxslt-32/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.64 2019/01/09 19:12:14 adam Exp $
+
+SHA1 (libxslt-1.1.33.tar.gz) = 7dcda921d9d3d3325449dae5cf84dbb102d26928
+RMD160 (libxslt-1.1.33.tar.gz) = e1c3ad9b6f7dbdf069320097e19fce0f11ce5c12
+SHA512 (libxslt-1.1.33.tar.gz) = ebbe438a38bf6355950167d3b580edc22baa46a77068c18c42445c1c9c716d42bed3b30c5cd5bec359ab32d03843224dae458e9e32dc61693e7cf4bab23536e0
+Size (libxslt-1.1.33.tar.gz) = 3444093 bytes
+SHA1 (patch-libexslt_date.c) = 40ce3940a93b6a2dc804f62676909d3313e0ea52
diff --git a/libxslt-32/patches/patch-libexslt_date.c b/libxslt-32/patches/patch-libexslt_date.c
new file mode 100644
index 0000000000..7933aa0e5d
--- /dev/null
+++ b/libxslt-32/patches/patch-libexslt_date.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-libexslt_date.c,v 1.1 2019/01/09 19:12:14 adam Exp $
+
+--- libexslt/date.c.orig	2012-09-12 05:58:38.000000000 +0000
++++ libexslt/date.c
+@@ -31,6 +31,7 @@
+ #if defined(HAVE_LOCALTIME_R) && defined(__GLIBC__)	/* _POSIX_SOURCE required by gnu libc */
+ #ifndef _AIX51		/* but on AIX we're not using gnu libc */
+ #define _POSIX_SOURCE
++#define _POSIX_C_SOURCE 199506L /* POSIX.1c */
+ #endif
+ #endif
+ 
diff --git a/libxslt-32/xsltproc-nonet.mk b/libxslt-32/xsltproc-nonet.mk
new file mode 100644
index 0000000000..1fa6f31a1b
--- /dev/null
+++ b/libxslt-32/xsltproc-nonet.mk
@@ -0,0 +1,15 @@
+# $NetBSD: xsltproc-nonet.mk,v 1.3 2015/07/09 01:56:44 richard Exp $
+
+BUILD_DEPENDS+=	libxslt-[0-9]*:../../textproc/libxslt
+
+pre-configure: create-xsltproc-wrapper
+
+# --nonet avoids network connections during builds
+# XLSTPROC_PATH allows any necessary files (e.g. dtds) to be found
+# locally in the paths provided with the default being '--path .'
+create-xsltproc-wrapper:
+	${PRINTF} "#! ${SH}\\n\
+	${LOCALBASE}/bin/xsltproc --nonet \
+	--path ${XSLTPROC_PATH:U.:O:u:ts::Q} \$$*\\n\
+	" > ${BUILDLINK_DIR}/bin/xsltproc
+	${CHMOD} +x ${BUILDLINK_DIR}/bin/xsltproc


Home | Main Index | Thread Index | Old Index