the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: librep
Version: 0.17
Revision: 1026
BuildDepends: <<
fink (>= 0.24.12),
gdbm3,
libgettext8-dev,
libncurses5 (>= 5.4-20041023-1006),
readline5 (>= 5.0-1004)
<<
Depends: <<
%N-shlibs (= %v-%r),
gdbm3-shlibs,
libgettext8-shlibs,
libncurses5-shlibs (>= 5.4-20041023-1006),
readline5-shlibs (>= 5.0-1004)
<<
Source: mirror:sourceforge:librep/librep-%v.tar.gz
Source-MD5: ad4ad851ff9f82a5d61024cd96bc2998
PatchFile: %n.patch
PatchFile-MD5: e0cc6da19b64545da0c4527beffa7524
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
patch -p1 < %{PatchFile}
<<
ConfigureParams: --without-gmp --infodir=%p/share/info --libexecdir=%p/lib --with-aclocaldir=%p/share/aclocal
SetCFLAGS: -g -O0
CompileScript: <<
./configure %c
make host_type=%m-apple-darwin
<<
InstallScript: <<
make install host_type=%m-apple-darwin DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Depends: libgettext8-shlibs
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
Need explicit -l flag for gettext (its functions aren't in system lib)
TODO:
move loadable modules .so/.la into -shlibs pkg?
<<
License: GPL
Homepage: http://librep.sourceforge.net/
Maintainer: None
diff -ruN librep-0.17/src/Makefile.in librep-0.17-patched/src/Makefile.in
--- librep-0.17/src/Makefile.in 2003-07-26 04:35:25.000000000 -0400
+++ librep-0.17-patched/src/Makefile.in 2011-10-01 15:58:29.000000000 -0400
@@ -50,7 +50,7 @@
REP_OBJS = $(REP_SRCS:.c=.o)
INTL_OBJS_yes=../intl/*.lo
-INTL_OBJS_no=
+INTL_OBJS_no=-lintl
INTL_OBJS=$(INTL_OBJS_@USE_INCLUDED_LIBINTL@)
all : librep.la $(DL_OBJS) check-dl rep rep-config rep-remote rep-xgettext .libexec
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