From a2d0ac6c0bdda037d93e69f02693971143107b99 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Thu, 4 May 2006 00:45:20 +0000 Subject: [PATCH] * Fix build on 4.X [1] * Handle creating and removal of the libxslt-plugins directory [2] PR: 96707 [1] Submitted by: Sven Berkvens-Matthijsse [1] Reported by: pointyhat via kris [2] --- textproc/libxslt/Makefile | 1 + textproc/libxslt/files/patch-libexslt_crypto.c | 10 ++++++++++ textproc/libxslt/pkg-plist | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 textproc/libxslt/files/patch-libexslt_crypto.c diff --git a/textproc/libxslt/Makefile b/textproc/libxslt/Makefile index 4f7b82ef934d..0f2a50a272e4 100644 --- a/textproc/libxslt/Makefile +++ b/textproc/libxslt/Makefile @@ -7,6 +7,7 @@ PORTNAME= libxslt PORTVERSION= 1.1.16 +PORTREVISION?= 1 CATEGORIES?= textproc gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.1 diff --git a/textproc/libxslt/files/patch-libexslt_crypto.c b/textproc/libxslt/files/patch-libexslt_crypto.c new file mode 100644 index 000000000000..527464e50093 --- /dev/null +++ b/textproc/libxslt/files/patch-libexslt_crypto.c @@ -0,0 +1,10 @@ +--- libexslt/crypto.c.orig Wed May 3 20:42:12 2006 ++++ libexslt/crypto.c Wed May 3 20:42:41 2006 +@@ -318,6 +318,7 @@ exsltCryptoCryptoApiRc4Decrypt (xmlXPath + #define PLATFORM_SHA1 GCRY_MD_SHA1 + + #ifdef HAVE_SYS_SELECT_H ++#include + #include /* needed by gcrypt.h 4 Jul 04 */ + #endif + #include diff --git a/textproc/libxslt/pkg-plist b/textproc/libxslt/pkg-plist index c0aa5a6f6b87..dbe3b2127980 100644 --- a/textproc/libxslt/pkg-plist +++ b/textproc/libxslt/pkg-plist @@ -32,6 +32,7 @@ lib/libxslt.a lib/libxslt.la lib/libxslt.so lib/libxslt.so.2 +@exec mkdir -p %D/lib/libxslt-plugins libdata/pkgconfig/libexslt.pc libdata/pkgconfig/libxslt.pc share/aclocal/libxslt.m4 @@ -124,5 +125,6 @@ share/aclocal/libxslt.m4 @dirrm %%DOCSDIR%%/html/EXSLT @dirrm %%DOCSDIR%%/html @dirrm %%DOCSDIR%% +@dirrmtry lib/libxslt-plugins @dirrm include/libxslt @dirrm include/libexslt