svn commit: r366679 - in head/lang/qscheme: . files
John Marino
marino at FreeBSD.org
Sat Aug 30 21:15:15 UTC 2014
Author: marino
Date: Sat Aug 30 21:15:14 2014
New Revision: 366679
URL: http://svnweb.freebsd.org/changeset/ports/366679
QAT: https://qat.redports.org/buildarchive/r366679/
Log:
Stage lang/qscheme and unbreak on FreeBSD 10+
PR: 193040
Submitted by: Ports Fury
Added:
head/lang/qscheme/files/patch-doc__Makefile.in (contents, props changed)
Modified:
head/lang/qscheme/Makefile
head/lang/qscheme/files/patch-Makefile.in
head/lang/qscheme/pkg-descr
head/lang/qscheme/pkg-plist
Modified: head/lang/qscheme/Makefile
==============================================================================
--- head/lang/qscheme/Makefile Sat Aug 30 21:09:09 2014 (r366678)
+++ head/lang/qscheme/Makefile Sat Aug 30 21:15:14 2014 (r366679)
@@ -3,23 +3,24 @@
PORTNAME= qscheme
PORTVERSION= 0.5.1
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= lang scheme
MASTER_SITES= http://www.sof.ch/dan/qscheme/files/
MAINTAINER= ports at FreeBSD.org
COMMENT= Small and fast Scheme interpreter
-BUILD_DEPENDS= ${LOCALBASE}/lib/libavcall.a:${PORTSDIR}/devel/ffcall\
+LICENSE= GPLv2
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libavcall.a:${PORTSDIR}/devel/ffcall \
${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre \
${LOCALBASE}/lib/libgmp.a:${PORTSDIR}/math/gmp
LIB_DEPENDS= libgetline.so:${PORTSDIR}/devel/libgetline
USES= gmake perl5
USE_PERL5= build
+USE_GCC= any
GNU_CONFIGURE= yes
-PLIST_SUB+= PORTVERSION="${PORTVERSION}"
-
CONFIGURE_ARGS= --with-pcre-dir=${LOCALBASE}/lib \
--with-pcre-inc=${LOCALBASE}/include \
--with-avcall-dir=${LOCALBASE}/lib \
@@ -27,20 +28,26 @@ CONFIGURE_ARGS= --with-pcre-dir=${LOCALB
--with-gmp-dir=${LOCALBASE}/lib \
--with-gmp-inc=${LOCALBASE}/include
-NO_STAGE= yes
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lgetline
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+PORTDOCS= *
+
+# because it uses static pcre lib, which is compiled without -fPIC.
+# pcre problem likely.
+BROKEN_amd64= Does not build on ${ARCH}
+BROKEN_sparc64= Does not build on ${ARCH}
+
+OPTIONS_DEFINE= DOCS
+
post-patch:
- ${REINPLACE_CMD} \
- -e "s,^LIBS = @LIBS@,& ${PTHREAD_LIBS} -L${LOCALBASE}/lib -lgetline," \
- -e "s,^CFLAGS = @CFLAGS@,& ${PTHREAD_CFLAGS}," \
- ${WRKSRC}/Makefile.in
- ${REINPLACE_CMD} \
- -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "ia64" || ${ARCH} == "amd64" || ${ARCH} == "sparc64"
-# because it uses static pcre lib, which is compiled without -fPIC. pcre problem likely.
-BROKEN= Does not build on amd64, ia64, or sparc64
-.endif
+ @${REINPLACE_CMD} -e \
+ 's|-lpthread|-pthread| ; \
+ /SCM_DEFAULT_LIB_PATH/s|$$datadir|$$prefix/lib|' \
+ ${WRKSRC}/configure
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/qscheme/*/*.so
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/lang/qscheme/files/patch-Makefile.in
==============================================================================
--- head/lang/qscheme/files/patch-Makefile.in Sat Aug 30 21:09:09 2014 (r366678)
+++ head/lang/qscheme/files/patch-Makefile.in Sat Aug 30 21:15:14 2014 (r366679)
@@ -1,6 +1,6 @@
--- Makefile.in.orig 2000-06-23 02:10:21.000000000 +0300
+++ Makefile.in 2009-03-03 18:30:51.000000000 +0200
-@@ -111,7 +111,7 @@
+@@ -111,11 +111,11 @@
EXTRA_DIST = mkoptable mkwhatis $(modsrc) $(scmsrc) CHANGES LICENCE_EXCEPTION
# other directories
@@ -9,6 +9,11 @@
noinst_LIBRARIES = libqs.a
+-shared_dir = $(prefix)/share/qscheme/$(VERSION)
++shared_dir = $(prefix)/lib/qscheme/$(VERSION)
+
+ scmobjdir = $(shared_dir)
+ scmobj_DATA = $(modobj) $(scmsrc)
@@ -578,12 +578,12 @@
$(COMPILE) -o $@ -shared -fPIC -I$(incpcre) $(srcdir)/regex.c $(PCRE_LIB)
@@ -27,3 +32,12 @@
# force sproto.h to be up to date. Otherwise compilation of
# distribution may fail, because sproto.h can trigger the cfunction
+@@ -594,7 +594,7 @@
+
+ # force the x bit on the shared libraries
+ install-data-local:
+- chmod +x $(shared_dir)/*.so
++ chmod +x $(DESTDIR)$(shared_dir)/*.so
+
+ whatis: whatis.qs
+
Added: head/lang/qscheme/files/patch-doc__Makefile.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/qscheme/files/patch-doc__Makefile.in Sat Aug 30 21:15:14 2014 (r366679)
@@ -0,0 +1,11 @@
+--- doc/Makefile.in.orig
++++ doc/Makefile.in
+@@ -71,7 +71,7 @@
+ #
+ #
+ #
+-docdir=$(DESTDIR)$(pkgdatadir)/$(VERSION)/doc
++docdir=$(DESTDIR)$(datadir)/doc/@PACKAGE@
+
+ HTMLDIR=$(srcdir)/html
+
Modified: head/lang/qscheme/pkg-descr
==============================================================================
--- head/lang/qscheme/pkg-descr Sat Aug 30 21:09:09 2014 (r366678)
+++ head/lang/qscheme/pkg-descr Sat Aug 30 21:15:14 2014 (r366679)
@@ -1,8 +1,9 @@
-QScheme is a fast and small implementation of Scheme written in C. QScheme is
-easy to interface and should be easy to use as an extension language.
+QScheme is a fast and small implementation of Scheme written in C.
+QScheme is easy to interface and should be easy to use as an extension
+language.
-QScheme currently supports foreign function call and dynamic library. A perl
-like regular expression module is provided as example.
+QScheme currently supports foreign function call and dynamic library. A
+perl like regular expression module is provided as example.
QScheme is really fast: benchmarks (still a little old) shows that it is
generaly between 2 and 70 times faster than other scheme interpreters.
Modified: head/lang/qscheme/pkg-plist
==============================================================================
--- head/lang/qscheme/pkg-plist Sat Aug 30 21:09:09 2014 (r366678)
+++ head/lang/qscheme/pkg-plist Sat Aug 30 21:15:14 2014 (r366679)
@@ -1,47 +1,15 @@
bin/qscheme
-share/qscheme/%%PORTVERSION%%/regex.so
-share/qscheme/%%PORTVERSION%%/object.so
-share/qscheme/%%PORTVERSION%%/process.so
-share/qscheme/%%PORTVERSION%%/struct.so
-share/qscheme/%%PORTVERSION%%/socket.so
-share/qscheme/%%PORTVERSION%%/unix.so
-share/qscheme/%%PORTVERSION%%/s.scm
-share/qscheme/%%PORTVERSION%%/macro.scm
-share/qscheme/%%PORTVERSION%%/loop.scm
-share/qscheme/%%PORTVERSION%%/wloop.scm
-share/qscheme/%%PORTVERSION%%/fib.scm
-share/qscheme/%%PORTVERSION%%/cat.scm
-share/qscheme/%%PORTVERSION%%/doc/s.dvi
-share/qscheme/%%PORTVERSION%%/doc/s.ps
-share/qscheme/%%PORTVERSION%%/doc/html/WARNINGS
-share/qscheme/%%PORTVERSION%%/doc/html/footnode.html
-share/qscheme/%%PORTVERSION%%/doc/html/images.aux
-share/qscheme/%%PORTVERSION%%/doc/html/images.log
-share/qscheme/%%PORTVERSION%%/doc/html/images.pl
-share/qscheme/%%PORTVERSION%%/doc/html/images.tex
-share/qscheme/%%PORTVERSION%%/doc/html/img1.png
-share/qscheme/%%PORTVERSION%%/doc/html/img2.png
-share/qscheme/%%PORTVERSION%%/doc/html/index.html
-share/qscheme/%%PORTVERSION%%/doc/html/internals.pl
-share/qscheme/%%PORTVERSION%%/doc/html/labels.pl
-share/qscheme/%%PORTVERSION%%/doc/html/node1.html
-share/qscheme/%%PORTVERSION%%/doc/html/node10.html
-share/qscheme/%%PORTVERSION%%/doc/html/node11.html
-share/qscheme/%%PORTVERSION%%/doc/html/node12.html
-share/qscheme/%%PORTVERSION%%/doc/html/node13.html
-share/qscheme/%%PORTVERSION%%/doc/html/node14.html
-share/qscheme/%%PORTVERSION%%/doc/html/node15.html
-share/qscheme/%%PORTVERSION%%/doc/html/node2.html
-share/qscheme/%%PORTVERSION%%/doc/html/node3.html
-share/qscheme/%%PORTVERSION%%/doc/html/node4.html
-share/qscheme/%%PORTVERSION%%/doc/html/node5.html
-share/qscheme/%%PORTVERSION%%/doc/html/node6.html
-share/qscheme/%%PORTVERSION%%/doc/html/node7.html
-share/qscheme/%%PORTVERSION%%/doc/html/node8.html
-share/qscheme/%%PORTVERSION%%/doc/html/node9.html
-share/qscheme/%%PORTVERSION%%/doc/html/s.css
-share/qscheme/%%PORTVERSION%%/doc/html/s.html
- at dirrm share/qscheme/%%PORTVERSION%%/doc/html
- at dirrm share/qscheme/%%PORTVERSION%%/doc
- at dirrm share/qscheme/%%PORTVERSION%%
- at dirrm share/qscheme
+lib/qscheme/%%VERSION%%/regex.so
+lib/qscheme/%%VERSION%%/object.so
+lib/qscheme/%%VERSION%%/process.so
+lib/qscheme/%%VERSION%%/struct.so
+lib/qscheme/%%VERSION%%/socket.so
+lib/qscheme/%%VERSION%%/unix.so
+lib/qscheme/%%VERSION%%/s.scm
+lib/qscheme/%%VERSION%%/macro.scm
+lib/qscheme/%%VERSION%%/loop.scm
+lib/qscheme/%%VERSION%%/wloop.scm
+lib/qscheme/%%VERSION%%/fib.scm
+lib/qscheme/%%VERSION%%/cat.scm
+ at dirrm lib/qscheme/%%VERSION%%
+ at dirrm lib/qscheme
More information about the svn-ports-all
mailing list