Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2000 12:53:24 -0700 (PDT)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/18797: Update port: lang/rexx-imc (fix ports/16786)
Message-ID:  <20000524195324.ABE1237BD0A@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         18797
>Category:       ports
>Synopsis:       Update port: lang/rexx-imc (fix ports/16786)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 24 13:00:04 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.0-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS properly
- Fix procedure of building shared library
- Sort pkg/PLIST
- Revise pkg/DESCR

This PR supersedes ports/16786(left alone for about 3 months).

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/lang/rexx-imc/Makefile lang/rexx-imc/Makefile
--- /usr/ports/lang/rexx-imc/Makefile	Wed Apr 12 21:24:41 2000
+++ lang/rexx-imc/Makefile	Thu May 25 02:23:01 2000
@@ -8,8 +8,8 @@
 PORTNAME=	rexx-imc
 PORTVERSION=	1.7
 CATEGORIES=	lang
-MASTER_SITES=	http://ruby.comlab.ox.ac.uk/imc/distribution/           \
-		ftp://ftp.sai.msu.su/pub/unix/rexx/                     \
+MASTER_SITES=	http://ruby.comlab.ox.ac.uk/imc/distribution/ \
+		ftp://ftp.sai.msu.su/pub/unix/rexx/ \
 		ftp://crydee.sai.msu.ru/zeus/unix/rexx/
 PATCH_SITES=	${MASTER_SITES}
 PATCHFILES=	${DISTNAME}-19990331.patch
@@ -17,21 +17,13 @@
 
 MAINTAINER=	jfitz@FreeBSD.org
 
-MAKE_ENV=	MKDIR="${MKDIR}"
+MAKE_ENV=	MKDIR="${MKDIR}" OPTFLAGS="${CFLAGS}"
 MAN1=		rexx.1
 
-.include <bsd.port.pre.mk>
-
-pre-build:
-		@ ${CP} ${FILESDIR}/Makefile ${WRKSRC}
+post-extract:
+	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
 
 post-install:
-.if ${PORTOBJFORMAT} == "aout"
-	@${ECHO_MSG} "Fixing packing list for a.out"
-	@${MV} ${TMPPLIST} ${TMPPLIST}.new
-	@${GREP} -v '.so$$' ${TMPPLIST}.new > ${TMPPLIST}
-	@${RM} ${TMPPLIST}.new
-.endif
 	@${LDCONFIG} -m ${PREFIX}/lib
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/lang/rexx-imc/files/Makefile lang/rexx-imc/files/Makefile
--- /usr/ports/lang/rexx-imc/files/Makefile	Fri Sep 10 04:18:38 1999
+++ lang/rexx-imc/files/Makefile	Thu May 25 02:24:04 2000
@@ -1,4 +1,4 @@
-# Makefile for REXX/imc-1.6?
+# Makefile for REXX/imc-1.7?
 #
 # Based upon the original by the author
 # Heavily hacked by jfitz@FreeBSD.ORG
@@ -8,7 +8,7 @@
 PIC=		-fPIC
 CCFLAGS=	-DHAS_TTYCOM -D_REQUIRED -DRENAME_UNDELETE -c ${PIC}
 
-OPTFLAGS=	-O2
+OPTFLAGS?=	-O2
 
 # Release Date Variables
 RXDAY=		1
@@ -21,13 +21,8 @@
 		rexx.info rexx.ref rexx.summary rexx.tech
 
 # Shared Library Version
-.if ${PORTOBJFORMAT} == "elf"
 VER=		2
-SHAREDLIB=	librexx.so librexx.so.${VER}
-.else
-VER=		2.0
 SHAREDLIB=	librexx.so.${VER}
-.endif
 STATICLIB=	librexx.a
 
 REXXLIB=${STATICLIB} ${SHAREDLIB}
@@ -44,9 +39,8 @@
 		${CC} ${OPTFLAGS} ${CCFLAGS} -c ${DATE} ${FILEDEFS} -o $@ interface.c
 
 ${SHAREDLIB}:	${LIBFILES}
-.for t in ${.TARGET}
-		${LD} -Bshareable -o ${t} ${LIBFILES}
-.endfor
+		${CC} -shared -Wl,-soname,$@ -o ${SHAREDLIB} ${LIBFILES}
+		ln -sf ${SHAREDLIB} librexx.so
 
 ${STATICLIB}:	${LIBFILES}
 		ar rc ${STATICLIB} ${LIBFILES}
@@ -62,7 +56,7 @@
 		${CC} ${OPTFLAGS} -o rxstack rxstack.o
 
 rxmathfn.rxfn:	rxmathfn.o ${HFILES}
-		${LD} -Bshareable -o rxmathfn.rxfn rxmathfn.o -lm
+		${CC} -shared -o rxmathfn.rxfn rxmathfn.o -lm
 
 interface.o:	interface.c ${HFILES}
 		${CC} ${OPTFLAGS} ${CCFLAGS} -o interface.o ${FILEDEFS} interface.c
@@ -71,7 +65,7 @@
 		sed -e "s|@REXXLIBDIR@|${PREFIX}/bin|" rexx.1.in > rexx.1
 
 install:
-		@strip ${SHAREDLIBS} rxmathfn.rxfn
+		@strip rxmathfn.rxfn
 .for f in rexx rxque rxstack
 		${BSD_INSTALL_PROGRAM} ${f} ${PREFIX}/bin
 .endfor
@@ -81,13 +75,14 @@
 .for f in ${REXXLIB}
 		${BSD_INSTALL_DATA} ${f} ${PREFIX}/lib
 .endfor
+		ln -sf ${SHAREDLIB} ${PREFIX}/lib/librexx.so
 		${BSD_INSTALL_DATA} rexxsaa.h ${PREFIX}/include
+		${BSD_INSTALL_MAN} rexx.1 ${PREFIX}/man/man1
 .if !defined(NOPORTDOCS)
-		${MKDIR} ${PREFIX}/share/doc/rexx-imc/
+		${MKDIR} ${PREFIX}/share/doc/rexx-imc
 .for f in ${REXXDOCS}
-		${BSD_INSTALL_DATA} ${f} ${PREFIX}/share/doc/rexx-imc/
+		${BSD_INSTALL_DATA} ${f} ${PREFIX}/share/doc/rexx-imc
 .endfor
-		${BSD_INSTALL_DATA} rexx.1 ${PREFIX}/man/man1
 .endif
 
 .c.o:
diff -urN /usr/ports/lang/rexx-imc/pkg/DESCR lang/rexx-imc/pkg/DESCR
--- /usr/ports/lang/rexx-imc/pkg/DESCR	Mon May  4 03:03:34 1998
+++ lang/rexx-imc/pkg/DESCR	Thu May 25 04:41:04 2000
@@ -1,64 +1,7 @@
-What is REXX ?
-==============
+REXX/imc is a Rexx interpreter for Unix. It supports all the standard 
+instructions and built-in functions, plus a small number of extensions, 
+and has a partial implementation of the SAA API allowing applications 
+to call Rexx programs and to register addressing environments, Rexx 
+functions, and exit handlers. 
 
-REXX is a programming language designed by Michael Cowlishaw
-of IBM UK Laboratories.  In his own words:  "REXX is a
-procedural language that allows programs and algorithms to
-be written in a clear and structured way."
-REXX doesn't look that different from any other procedural
-language.  Here's a simple REXX program:
-
-     /* Count some numbers */
-     
-     say "Counting..."
-     do i = 1 to 10
-         say "Number" i
-     end
-
-What makes REXX different from most other languages is that
-it is also designed to be used as a macro language by
-arbitrary application programs.  The idea is that
-application developers don't have to design their own macro
-languages and interpreters.  Instead they use REXX as the
-macro language and support the REXX programming interface.
-If a REXX macro comes across an expression or function call
-that it cannot resolve, it can ask the application to handle
-it instead.  The application only has to support the
-features that are specific to it, freeing the developer from
-handling the mundane (and time-consuming) task of writing a
-language interpreter.  And if all applications use REXX as
-their macro language, the user only has to learn one
-language instead of a dozen.
-
-
-Differences between TRL (The REXX Language) and REXX/imc
-========================================================
-
-The following are all nonstandard features of REXX-imc
-
- * Rejection of labels ending with dot (in case of confusion between
-   function.(args) and stem.(tail))
- * Compound variable accesses of the form "stem.'string constant'" and
-   stem.(expression)
- * Acceptance of any non-zero number for logical truth, rather than just 1
- * "SAYN expression" to output lines without carriage return
- * "SELECT expression" to switch on a value
- * "END SELECT"
- * "PARSE VALUE" with multiple strings separated by commas
- * "PROCEDURE HIDE"
- * The following functions: chdir getcwd getenv putenv system userid
-   plus these I/O functions: open close fdopen popen pclose fileno ftell
- * error messages 80-210, -1 and -3.
-
-
-Good sources of REXX information on the web:
-============================================
-
-REXX/imc Home page
-	http://www.comlab.ox.ac.uk/oucl/users/ian.collier/Rexx/index.html
-
-IBM's REXX Language Page
-	http://rexx.hursley.ibm.com/rexx/
-
-REXX Tutorials Page
-	http://www2.hursley.ibm.com/rexxtut/
+WWW: http://www.comlab.ox.ac.uk/oucl/users/ian.collier/Rexx/index.html
diff -urN /usr/ports/lang/rexx-imc/pkg/PLIST lang/rexx-imc/pkg/PLIST
--- /usr/ports/lang/rexx-imc/pkg/PLIST	Fri Sep 10 04:18:39 1999
+++ lang/rexx-imc/pkg/PLIST	Thu May 25 01:33:22 2000
@@ -1,14 +1,14 @@
 bin/rexx
-bin/rxque
-bin/rxstack
 bin/rxmathfn.rxfn
 bin/rxmathfn.rxlib
+bin/rxque
+bin/rxstack
+include/rexxsaa.h
 lib/librexx.a
-lib/librexx.so.2.0
 lib/librexx.so
-include/rexxsaa.h
-@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib
-@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
+lib/librexx.so.2
+@exec /sbin/ldconfig -m %B
+@unexec /sbin/ldconfig -R
 share/doc/rexx-imc/README
 share/doc/rexx-imc/README.bugreport
 share/doc/rexx-imc/README.docs
@@ -20,4 +20,4 @@
 share/doc/rexx-imc/rexx.ref
 share/doc/rexx-imc/rexx.summary
 share/doc/rexx-imc/rexx.tech
-@dirrm share/doc/rexx-imc/
+@dirrm share/doc/rexx-imc


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000524195324.ABE1237BD0A>