Bug 180513 - lang/rexx-imc: Fix build on 9-stable
Summary: lang/rexx-imc: Fix build on 9-stable
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-12 19:10 UTC by tkato432
Modified: 2013-07-15 15:50 UTC (History)
0 users

See Also:


Attachments
file.diff (4.50 KB, patch)
2013-07-12 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-07-12 19:10:05 UTC
- Fix build on 9-stable
- Update MASTER_SITES an WWW: line
- Support PORTEXAMPLES
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-12 19:11:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-07-15 15:47:55 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-15 15:48:03 UTC
Author: miwi
Date: Mon Jul 15 14:47:53 2013
New Revision: 323042
URL: http://svnweb.freebsd.org/changeset/ports/323042

Log:
  - Fix build on 9-stable
  - Update MASTER_SITES an WWW: line
  - Support PORTEXAMPLES
  
  PR:		180513
  Submitted by:	Ports Fury

Modified:
  head/lang/rexx-imc/Makefile   (contents, props changed)
  head/lang/rexx-imc/files/patch-Make   (contents, props changed)
  head/lang/rexx-imc/pkg-descr   (contents, props changed)
  head/lang/rexx-imc/pkg-plist   (contents, props changed)

Modified: head/lang/rexx-imc/Makefile
==============================================================================
--- head/lang/rexx-imc/Makefile	Mon Jul 15 14:47:07 2013	(r323041)
+++ head/lang/rexx-imc/Makefile	Mon Jul 15 14:47:53 2013	(r323042)
@@ -5,11 +5,13 @@ PORTNAME=	rexx-imc
 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@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 @@ DOCFILES=	rexx.info rexx.ref rexx.summar
 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 @@ post-patch:
 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>

Modified: head/lang/rexx-imc/files/patch-Make
==============================================================================
--- head/lang/rexx-imc/files/patch-Make	Mon Jul 15 14:47:07 2013	(r323041)
+++ head/lang/rexx-imc/files/patch-Make	Mon Jul 15 14:47:53 2013	(r323042)
@@ -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

Modified: head/lang/rexx-imc/pkg-descr
==============================================================================
--- head/lang/rexx-imc/pkg-descr	Mon Jul 15 14:47:07 2013	(r323041)
+++ head/lang/rexx-imc/pkg-descr	Mon Jul 15 14:47:53 2013	(r323042)
@@ -4,4 +4,4 @@ and has a partial implementation of the 
 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

Modified: head/lang/rexx-imc/pkg-plist
==============================================================================
--- head/lang/rexx-imc/pkg-plist	Mon Jul 15 14:47:07 2013	(r323041)
+++ head/lang/rexx-imc/pkg-plist	Mon Jul 15 14:47:53 2013	(r323042)
@@ -18,10 +18,10 @@ lib/rxmathfn.rxlib
 %%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%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"