librep stable port information

Package: librep
Version: 0.17
Revision: 1025
BuildDepends: gdbm, libgettext3-dev, libiconv-dev, libncurses5 (>= 5.4-20041023-1006), readline5 (>= 5.0-1004), fink (>= 0.24.12)
Depends: gdbm-shlibs, libgettext3-shlibs, libiconv, libncurses5-shlibs (>= 5.4-20041023-1006), %N-shlibs (= %v-%r), readline5-shlibs (>= 5.0-1004)
Source: mirror:sourceforge:librep/librep-%v.tar.gz
Source-MD5: ad4ad851ff9f82a5d61024cd96bc2998
PatchFile: %n.patch
PatchFile-MD5: c84c8ae864cc850af348488ba98a9866
PatchScript: <<
mv doc docs
perl -pi -e 's/(-install-info)/#\1/' man/Makefile.in
perl -pi -e 's/(AC_DEFUN\()([^[]+)(,)/\1\[\2]\3/' rep.m4
perl -pi -e 's/extern char \*\*environ;/#include \n#define environ (*_NSGetEnviron())/' src/unix_main.c src/unix_processes.c
patch -p1 < %{PatchFile}
<<
ConfigureParams: --without-gmp --infodir=%p/share/info --libexecdir=%p/lib --with-aclocaldir=%p/share/aclocal
SetCFLAGS: -g -O0
SetLDFLAGS: -lintl
CompileScript: <<
./configure %c
make host_type=%m-apple-darwin
<<
InstallScript: <<
make install host_type=%m-apple-darwin DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Depends: libgettext3-shlibs, libiconv
Replaces: %N (<= 0.16.2-10)
Files: lib/librep.*.dylib
Shlibs: %p/lib/librep.9.dylib 14.0.0 %n (>= 0.17-1)
DocFiles: README COPYING AUTHORS NEWS THANKS
<<
SplitOff2: <<
Package: %N-dev
BuildDependsOnly: True
Depends: %N-shlibs (= %v-%r)
Replaces: %N (<= 0.16.2-10)
Files: include lib/librep.* share/aclocal
DocFiles: README COPYING AUTHORS NEWS THANKS
<<
DocFiles: README COPYING AUTHORS NEWS THANKS
InfoDocs: librep.info
#
Description: Embedable interpreter for a Lisp dialect
DescDetail: <<
librep implements a Lisp dialect called rep. The interpreter can be
run standalone or it can be embeded in applications via a library. The
language can be extended through loadable modules.
<<
DescPort: <<
Forces the host_type to be something without an OS version number in
it.

Unsure if this is still needed:
The compiler shipped with Mac OS X 10.1 generates incorrect code when
the default optimization (-O2) is used. We force -O0, which seems to
work so far.

added --libexecdir= flag to comply with fink's policy

Pass flag so ./configure finds fink's gettext

TODO:
move loadable modules .so into -shlibs pkg?
move loadable modules .la into -dev pkg?
<<
License: GPL
Homepage: http://librep.sourceforge.net/
Maintainer: None

librep stable port .patch

diff -ruN librep-0.17/src/rep-remote.c librep-0.17-patched/src/rep-remote.c
--- librep-0.17/src/rep-remote.c 2001-09-14 18:35:49.000000000 -0700
+++ librep-0.17-patched/src/rep-remote.c 2007-08-05 15:21:09.000000000 -0700
@@ -33,6 +33,7 @@
#include
#include
#include
+#include
#include
#include
#include

librep _unstable_ port information

Package: librep
Version: 0.17
Revision: 1025
BuildDepends: gdbm, libgettext3-dev, libiconv-dev, libncurses5 (>= 5.4-20041023-1006), readline5 (>= 5.0-1004), fink (>= 0.24.12)
Depends: gdbm-shlibs, libgettext3-shlibs, libiconv, libncurses5-shlibs (>= 5.4-20041023-1006), %N-shlibs (= %v-%r), readline5-shlibs (>= 5.0-1004)
Source: mirror:sourceforge:librep/librep-%v.tar.gz
Source-MD5: ad4ad851ff9f82a5d61024cd96bc2998
PatchFile: %n.patch
PatchFile-MD5: c84c8ae864cc850af348488ba98a9866
PatchScript: <<
mv doc docs
perl -pi -e 's/(-install-info)/#\1/' man/Makefile.in
perl -pi -e 's/(AC_DEFUN\()([^[]+)(,)/\1\[\2]\3/' rep.m4
perl -pi -e 's/extern char \*\*environ;/#include \n#define environ (*_NSGetEnviron())/' src/unix_main.c src/unix_processes.c
patch -p1 < %{PatchFile}
<<
ConfigureParams: --without-gmp --infodir=%p/share/info --libexecdir=%p/lib --with-aclocaldir=%p/share/aclocal
SetCFLAGS: -g -O0
SetLDFLAGS: -lintl
CompileScript: <<
./configure %c
make host_type=%m-apple-darwin
<<
InstallScript: <<
make install host_type=%m-apple-darwin DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Depends: libgettext3-shlibs, libiconv
Replaces: %N (<= 0.16.2-10)
Files: lib/librep.*.dylib
Shlibs: %p/lib/librep.9.dylib 14.0.0 %n (>= 0.17-1)
DocFiles: README COPYING AUTHORS NEWS THANKS
<<
SplitOff2: <<
Package: %N-dev
BuildDependsOnly: True
Depends: %N-shlibs (= %v-%r)
Replaces: %N (<= 0.16.2-10)
Files: include lib/librep.* share/aclocal
DocFiles: README COPYING AUTHORS NEWS THANKS
<<
DocFiles: README COPYING AUTHORS NEWS THANKS
InfoDocs: librep.info
#
Description: Embedable interpreter for a Lisp dialect
DescDetail: <<
librep implements a Lisp dialect called rep. The interpreter can be
run standalone or it can be embeded in applications via a library. The
language can be extended through loadable modules.
<<
DescPort: <<
Forces the host_type to be something without an OS version number in
it.

Unsure if this is still needed:
The compiler shipped with Mac OS X 10.1 generates incorrect code when
the default optimization (-O2) is used. We force -O0, which seems to
work so far.

added --libexecdir= flag to comply with fink's policy

Pass flag so ./configure finds fink's gettext

TODO:
move loadable modules .so into -shlibs pkg?
move loadable modules .la into -dev pkg?
<<
License: GPL
Homepage: http://librep.sourceforge.net/
Maintainer: None

librep _unstable_ port .patch

diff -ruN librep-0.17/src/rep-remote.c librep-0.17-patched/src/rep-remote.c
--- librep-0.17/src/rep-remote.c 2001-09-14 18:35:49.000000000 -0700
+++ librep-0.17-patched/src/rep-remote.c 2007-08-05 15:21:09.000000000 -0700
@@ -33,6 +33,7 @@
#include
#include
#include
+#include
#include
#include
#include