ports/180513: lang/rexx-imc: Fix build on 9-stable

KATO Tsuguru tkato432 at yahoo.com
Fri Jul 12 18:10:05 UTC 2013


>Number:         180513
>Category:       ports
>Synopsis:       lang/rexx-imc: Fix build on 9-stable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 12 18:10:05 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix build on 9-stable
- Update MASTER_SITES an WWW: line
- Support PORTEXAMPLES

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/lang/rexx-imc/Makefile lang/rexx-imc/Makefile
--- /usr/ports/lang/rexx-imc/Makefile	2013-06-21 03:44:49.000000000 +0900
+++ lang/rexx-imc/Makefile	2013-07-13 00:00:00.000000000 +0900
@@ -5,11 +5,13 @@
 PORTVERSION=	1.76
 PORTREVISION=	2
 CATEGORIES=	lang
-MASTER_SITES=	http://users.comlab.ox.ac.uk/ian.collier/distribution/ \
+MASTER_SITES=	http://www.cs.ox.ac.uk/people/ian.collier/distribution/ \
 		ftp://ftp.sai.msu.su/pub/unix/rexx/
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A procedural programming language designed by IBM's UK Laboratories
+COMMENT=	Procedural programming language designed by IBM's UK Laboratories
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 CONFLICTS=	rexx-regina-* oorexx-[0-9]*
 
@@ -29,11 +31,7 @@
 RMEFILES=	README README.Y2K README.bugreport README.docs \
 		README.files README.make README.news README.platforms
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 900000
-BROKEN=		does not build
-.endif
+.include <bsd.port.options.mk>
 
 post-patch:
 # CFLAGS safeness for ARCHs other than i386
@@ -44,30 +42,31 @@
 do-install:
 # install interpreter and daemon helpers
 .for prog in rexx rxque rxstack
-	@${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${PREFIX}/bin
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${prog} ${PREFIX}/bin)
 .endfor
 # install shared libraries, include file, and rxlib
+	(cd ${WRKSRC} && ${INSTALL_DATA} rexxsaa.h ${PREFIX}/include)
 # DO NOT delete rxlib or you will lose ability to call mathlib!!
-.for lib in librexx.so.2 rxmathfn.rxfn
-	@${INSTALL_PROGRAM} ${WRKSRC}/${lib} ${PREFIX}/lib
+.for lib in librexx.so.2 rxmathfn.rxfn rxmathfn.rxlib
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${lib} ${PREFIX}/lib)
 .endfor
-	@${LN} -sf ${PREFIX}/lib/librexx.so.2 ${PREFIX}/lib/librexx.so
-	@${INSTALL_DATA} ${WRKSRC}/rexxsaa.h ${PREFIX}/include
-	@${INSTALL_DATA} ${WRKSRC}/rxmathfn.rxlib ${PREFIX}/lib
+	@${LN} -sf librexx.so.2 ${PREFIX}/lib/librexx.so
 # install man pages
 .for man in ${MAN1}
-	@${INSTALL_MAN} ${WRKSRC}/${man} ${PREFIX}/man/man1
+	(cd ${WRKSRC} && ${INSTALL_MAN} ${man} ${MANPREFIX}/man/man1)
 .endfor
 # install documenation and examples
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for FILE in ${DOCFILES} ${RMEFILES}
-	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.for doc in ${DOCFILES} ${RMEFILES}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${DOCSDIR})
 .endfor
-	@${MKDIR} ${PREFIX}/share/examples/rexx-imc
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
 .for ex in box rexxcps.rexx rexxtest.rexx rxmathfn.rexx shell.rexx
-	@${INSTALL_SCRIPT} ${WRKSRC}/${ex} ${PREFIX}/share/examples/rexx-imc
+	(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${ex} ${EXAMPLESDIR})
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/lang/rexx-imc/files/patch-Make lang/rexx-imc/files/patch-Make
--- /usr/ports/lang/rexx-imc/files/patch-Make	2013-06-21 03:44:50.000000000 +0900
+++ lang/rexx-imc/files/patch-Make	2013-07-13 00:00:00.000000000 +0900
@@ -61,7 +61,7 @@
 +                ;;
 +        esac
 +        ;;
-+    FreeBSD:5.*|FreeBSD:6.*|FreeBSD:7.*|FreeBSD:8.*)
++    FreeBSD:[5-9].*|FreeBSD:[1-9][0-9].*)
 +        REXXLIB="librexx.so"
 +	SOLINK="librexx.so"
 +        RANLIB=ranlib
diff -urN /usr/ports/lang/rexx-imc/pkg-descr lang/rexx-imc/pkg-descr
--- /usr/ports/lang/rexx-imc/pkg-descr	2013-06-21 03:44:49.000000000 +0900
+++ lang/rexx-imc/pkg-descr	2013-07-13 00:00:00.000000000 +0900
@@ -4,4 +4,4 @@
 to call Rexx programs and to register addressing environments, Rexx 
 functions, and exit handlers. 
 
-WWW: http://users.comlab.ox.ac.uk/ian.collier/Rexx/rexximc.html
+WWW: http://www.cs.ox.ac.uk/people/ian.collier/Rexx/rexximc.html
diff -urN /usr/ports/lang/rexx-imc/pkg-plist lang/rexx-imc/pkg-plist
--- /usr/ports/lang/rexx-imc/pkg-plist	2013-06-21 03:44:50.000000000 +0900
+++ lang/rexx-imc/pkg-plist	2013-07-13 00:00:00.000000000 +0900
@@ -18,10 +18,10 @@
 %%PORTDOCS%%%%DOCSDIR%%/rexx.ref
 %%PORTDOCS%%%%DOCSDIR%%/rexx.summary
 %%PORTDOCS%%%%DOCSDIR%%/rexx.tech
-%%PORTDOCS%%share/examples/rexx-imc/box
-%%PORTDOCS%%share/examples/rexx-imc/rexxcps.rexx
-%%PORTDOCS%%share/examples/rexx-imc/rexxtest.rexx
-%%PORTDOCS%%share/examples/rexx-imc/rxmathfn.rexx
-%%PORTDOCS%%share/examples/rexx-imc/shell.rexx
-%%PORTDOCS%%@dirrm share/examples/rexx-imc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/box
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rexxcps.rexx
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rexxtest.rexx
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rxmathfn.rexx
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shell.rexx
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list