libpcre1 stable port information

Info4: <<
Package: libpcre1%type_pkg[-64bit]
Version: 8.30
Revision: 3c
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = -64bit ) i386
Distribution: ( %type_raw[-64bit] = -64bit ) 10.5, ( %type_raw[-64bit] = -64bit ) 10.6
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDepends: fink (>= 0.26.2)
# fink-package-precedence
Conflicts: pcre, pcre-64bit, libpcre1, libpcre1-64bit
Replaces: pcre-bin (<< 7.0-1), pcre, pcre-64bit, libpcre1, libpcre1-64bit
BuildDependsOnly: True
#Source: mirror:sourceforge:pcre/pcre-%v.tar.bz2
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%v.tar.bz2
Source-MD5: 98e8928cccc945d04279581e778fbdff
PatchFile: %n.patch
PatchFile-MD5: c0084d5f6a5d9baaee9801fd6080e24b
NoSetLDFLAGS: true
NoSetCPPFLAGS: true
PatchScript: <<
#!/bin/sh -ev
%{default_script}
perl -pi -e 's/-lreadline/-ledit/g' configure
<<
ConfigureParams: <<
--libdir='${prefix}/%lib/%{Ni}' \
--enable-shared \
--disable-static \
--enable-pcre16 \
--enable-utf \
--enable-unicode-properties \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2 \
--enable-pcretest-libreadline
<<
UseMaxBuildJobs: true
SetCFLAGS: -Os
SetCXXFLAGS: -Os
SetLDFLAGS: -Wl,-dead_strip_dylibs
GCC: 4.0
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-64bit]" == "-64bit" ]; then
export CC="gcc -m64"
export CXX="g++ -m64"
fi

# if [ "%m" != "i386" ]; then
# ./configure %c --enable-jit
# else
if [ "%m" == "x86_64" ]; then
./configure %c --enable-jit
else
./configure %c --disable-jit
fi

make
# danielj: yes, use system editline (fake readline)
# fink-package-precedence .
<<
SplitOff2: <<
Package: %N-shlibs
Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Files: %lib/%{Ni}/libpcre.*.dylib %lib/%{Ni}/libpcre16.*.dylib %lib/%{Ni}/libpcreposix.*.dylib %lib/%{Ni}/libpcrecpp.*.dylib
Shlibs: <<
%p/%lib/%{Ni}/libpcre.1.dylib 2.0.0 %n (>= 8.30-1) %type_num[-64bit]
%p/%lib/%{Ni}/libpcre16.0.dylib 1.0.0 %n (>= 8.30-1) %type_num[-64bit]
%p/%lib/%{Ni}/libpcreposix.0.dylib 1.0.0 %n (>= 8.30-1) %type_num[-64bit]
%p/%lib/%{Ni}/libpcrecpp.0.dylib 1.0.0 %n (>= 8.30-1) %type_num[-64bit]
<<
DocFiles: AUTHORS COPYING ChangeLog LICENCE NEWS README
<<
SplitOff: <<
Package: pcre%type_pkg[-64bit]-bin
Description: PCRE utilities pcregrep and pcretest
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Conflicts: pcre-bin, pcre-64bit-bin
Replaces: pcre-bin, pcre-64bit-bin
Files: bin/pcregrep bin/pcretest share/man/man1/pcregrep.1 share/man/man1/pcretest.1
DocFiles: AUTHORS COPYING ChangeLog LICENCE NEWS README
<<
InstallScript: <<
#!/bin/bash -ev
make install DESTDIR=%d
mv %i/share/doc/pcre %i/share/doc/%N
mv %i/%lib/%{Ni}/pkgconfig %i/%lib/pkgconfig
cd %i/%lib
ln -s %{Ni}/*.la %i/%lib
ln -s %{Ni}/libpcre.dylib %i/%lib
ln -s %{Ni}/libpcre16.dylib %i/%lib
ln -s %{Ni}/libpcrecpp.dylib %i/%lib
ln -s %{Ni}/libpcreposix.dylib %i/%lib
<<
DocFiles: HACKING
License: BSD
Description: Perl Compatible Regular Expressions Library
DescDetail: <<
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as PerlJ5. PCRE has
its own native API, as well as a set of wrapper functions that correspond
to the POSIX regular expression API and a C++ wrapper library.

Now includes the 16 bit libpcre16.dylib library. The libpcre.dylib library
continues to be used for 8 bit strings.

Previous revisions by Christian Swinehart
<<
DescPackaging: <<
Patch configure to link directly to the system's libedit instead of
libreadline which is a symlink to libedit. Avoids having dependent
packages accidentally linking to Fink's libreadline.

Disabled static libs and cleaned dependency_libs in *.la files.

fangism: patch needed to fix broken test, from:
http://bugs.exim.org/show_bug.cgi?id=1222
<<
Homepage: http://www.pcre.org
Maintainer: Daniel Johnson
InfoTest: <<
TestScript: make check || exit 2
<<
<<

libpcre1 stable port .patch

--- a/pcretest.c.ORIG 2012-04-18 16:34:23.000000000 +0100
+++ b/pcretest.c 2012-04-18 16:36:28.000000000 +0100
@@ -2169,6 +2169,9 @@
#if !defined NOPOSIX
int posix = 0;
#endif
+#if !defined NODFA
+int dfa_workspace[1000];
+#endif
int debug = 0;
int done = 0;
int all_use_dfa = 0;
@@ -3868,12 +3871,11 @@
#if !defined NODFA
if (all_use_dfa || use_dfa)
{
- int workspace[1000];
for (i = 0; i < timeitm; i++)
{
PCRE_DFA_EXEC(count, re, extra, bptr, len, start_offset,
- (options | g_notempty), use_offsets, use_size_offsets, workspace,
- (sizeof(workspace)/sizeof(int)));
+ (options | g_notempty), use_offsets, use_size_offsets, dfa_workspace,
+ (sizeof(dfa_workspace)/sizeof(int)));
}
}
else
@@ -3939,10 +3941,9 @@
#if !defined NODFA
else if (all_use_dfa || use_dfa)
{
- int workspace[1000];
PCRE_DFA_EXEC(count, re, extra, bptr, len, start_offset,
- (options | g_notempty), use_offsets, use_size_offsets, workspace,
- (sizeof(workspace)/sizeof(int)));
+ (options | g_notempty), use_offsets, use_size_offsets, dfa_workspace,
+ (sizeof(dfa_workspace)/sizeof(int)));
if (count == 0)
{
fprintf(outfile, "Matched, but too many subsidiary matches\n");
quercite$

libpcre1 _unstable_ port .patch