View | Details | Raw Unified | Return to bug 30217
Collapse All | Expand All

(-)netrexx.new/Makefile (-3 / +12 lines)
Lines 2-20 Link Here
2
# Date created:		Feb 8, 1999
2
# Date created:		Feb 8, 1999
3
# Whom:			Pedro Giffuni
3
# Whom:			Pedro Giffuni
4
#
4
#
5
# $FreeBSD: ports/java/netrexx/Makefile,v 1.4 2000/04/12 06:14:56 obrien Exp $
5
# $FreeBSD$
6
#
6
#
7
7
8
PORTNAME=	netrexx
8
PORTNAME=	netrexx
9
PORTVERSION=	1.160
9
PORTVERSION=	1.160
10
PORTREVISION=	1
10
CATEGORIES=	java lang
11
CATEGORIES=	java lang
11
MASTER_SITES=	http://www.ibm.com/technology/NetRexx/
12
MASTER_SITES=	http://www.ibm.com/technology/NetRexx/
12
DISTNAME=	NetRexx
13
DISTNAME=	NetRexx
13
EXTRACT_SUFX=	.tar.Z
14
EXTRACT_SUFX=	.tar.Z
14
15
15
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	jmcoopr@webmail.bmi.net
16
17
17
RUN_DEPENDS=	${PREFIX}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk
18
RUN_DEPENDS=	${PREFIX}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk \
19
		${PREFIX}/bin/rexx:${PORTSDIR}/lang/rexx-imc
18
20
19
NO_BUILD=	yes
21
NO_BUILD=	yes
20
# pkg/PLIST depends on the JDK_VERSION
22
# pkg/PLIST depends on the JDK_VERSION
Lines 25-30 Link Here
25
	-${MV} ${WRKSRC}/nrtools.tar.Z ${WRKSRC}/.foo.Z
27
	-${MV} ${WRKSRC}/nrtools.tar.Z ${WRKSRC}/.foo.Z
26
	uncompress -c ${WRKSRC}/.foo.Z | \
28
	uncompress -c ${WRKSRC}/.foo.Z | \
27
	    tar -xvf - -C ${PREFIX}/jdk${JDK_VERSION}
29
	    tar -xvf - -C ${PREFIX}/jdk${JDK_VERSION}
30
	${RM} -f ${PREFIX}/jdk${JDK_VERSION}/bin/NetRexxC.bat
31
	${RM} -f ${PREFIX}/jdk${JDK_VERSION}/bin/nrc.bat
32
	${RM} -f ${PREFIX}/jdk${JDK_VERSION}/bin/nrc.cmd
33
	${RM} -f ${PREFIX}/jdk${JDK_VERSION}/bin/hello.nrx
34
	${CP} ${FILESDIR}/NetRexxC.cmd.new ${PREFIX}/jdk${JDK_VERSION}/bin/NetRexxC.cmd
35
	${LN} -sf ${PREFIX}/jdk${JDK_VERSION}/bin/NetRexxC.cmd \
36
		  ${PREFIX}/jdk${JDK_VERSION}/bin/nrc
28
.if !defined(NOPORTDOCS)
37
.if !defined(NOPORTDOCS)
29
	${MKDIR} ${PREFIX}/share/doc/NetRexx
38
	${MKDIR} ${PREFIX}/share/doc/NetRexx
30
	${CP} -R ${WRKSRC}/* ${PREFIX}/share/doc/NetRexx/
39
	${CP} -R ${WRKSRC}/* ${PREFIX}/share/doc/NetRexx/
(-)netrexx.new/files/NetRexxC.cmd.new (+109 lines)
Line 0 Link Here
1
/*usr/bin/true; exec rexx "$0" "$@" # REXX program */
2
/* Translate and compile a NetRexx program             */
3
/*                                                     */
4
/* use as:  NetRexxC hello [file2]...                  */
5
/*                                                     */
6
/*   which will use the NetRexx translator to          */
7
/*     translate hello.nrx to hello.java               */
8
/*   then will use javac to compile hello.java         */
9
/*                                                     */
10
/* Any OPTIONS keywords, indicated by a prefix '-',    */
11
/* may be added before, after, or between file         */
12
/* specification(s), along with the following extra    */
13
/*flags:                                               */
14
/*                                                     */
15
/*   -run       = run class after compilation          */
16
/*   -keep      = keep the java file after successful  */
17
/*                compilation (as xxx.java.keep)       */
18
/*   -nocompile = only translate, do not compile       */
19
/*                                                     */
20
/* Multiple programs may be specified; in this case    */
21
/* they are all run (if requested) after all compiles. */
22
/*                                                     */
23
/* ----------                                          */
24
/* 1996.09.02 -- handle Warnings from NetRexxC (rc=1)  */
25
/* 1996.12.14 -- use COM.ibm.netrexx.process           */
26
/* 1998.05.25 -- pass NETREXX_JAVA setting to java.exe */
27
28
parse arg args
29
w=wordpos('-run', args)
30
if w>0 then do; run=1;   args=delword(args,w,1); end; else run=0
31
w=wordpos('-nocompile', args)
32
if w>0 then do; noc=1; end; else noc=0
33
34
/* ----- Translate & Compile ----- */
35
parse source system .
36
select                             /* system-specific options */
37
  when system='OS/2' then do
38
    '@echo off'
39
    /* Add option -norestart for OS/2s 1.0.2+ java.exe, for better display */
40
    'java -version 2>&1|rxqueue'; parse pull '1.' subv ' '
41
    if subv>=0.2 then javaopts='-norestart'; else javaopts='-noasyncgc'
42
43
    /* Add any options from NETREXX_JAVA environment variable */
44
    nrjava=value('NETREXX_JAVA',,'OS2ENVIRONMENT')
45
    if nrjava\='' then javaopts=javaopts nrjava
46
    end
47
  otherwise
48
    /* Add any options from NETREXX_JAVA environment variable */
49
    javaopts=value('NETREXX_JAVA',,'ENVIRONMENT')
50
51
    /* JAVAVM MUST be set to the native jdk 1.1.8 */
52
    /* it might work with a later, native jdk */
53
    /* it will NOT work with a linux jdk */
54
    javavm=value('JAVAVM',,'ENVIRONMENT')
55
    if javavm = "" then
56
      do
57
        say "NetRexx will not function unless:  "
58
        say ""
59
        say "   JAVAVM is set to"
60
        say ""
61
        say "      /usr/local/jdk1.1.8/bin/java"
62
        say ""
63
        say "and"
64
        say ""
65
        say "   CLASSPATH is set to"
66
        say ""
67
        say "      .:/usr/local/jdk1.1.8/lib/classes.zip:/usr/local/jdk1.1.8/lib/NetRexxC.zip"
68
        say ""
69
        say "or"
70
        say ""
71
        say "   NETREXX_JAVA is set to"
72
        say ""
73
        say "      -classpath <and the above-pathes>"
74
        exit
75
    end
76
  end
77
78
/* NOTE:  This won't work if NetRexx.cmd or nrc is executed from the */
79
/* same directory as java is located in */
80
'java -ms4M' javaopts 'COM.ibm.netrexx.process.NetRexxC' args
81
82
/* ----- Run ----- */
83
if rc<=1 & run then do
84
  if noc then say 'Run option ignored as -nocompile specified'
85
   else do
86
    do forever /* find the file parameters */
87
      parse var args file args
88
      if file='' then leave
89
      if left(file,1)='-' then iterate
90
      filename=filespec('n', file); parse var filename fn '.' fe
91
      /* Now determine the exact case of the class, for java commands */
92
      file=fn'.class'
93
      'ls -l' file ' | rxstack'    /* use ls to get exact case */
94
      if queued()<>1 then do
95
        if queued()=0 then say 'Cannot find file:' file
96
        if queued()>1 then do; do queued(); parse pull .; end
97
          say 'File "'file'" is not a unique specification'
98
          end
99
        exit 1; end
100
      parse pull file                         /* is now correct case */
101
      parse var file fn '.' fe
102
      say 'Running' fn '...'
103
      'java' fn
104
      end
105
    end
106
  end
107
108
exit rc
109
(-)netrexx.new/pkg-plist (-4 / +1 lines)
Lines 1-8 Link Here
1
jdk%%JDK_VERSION%%/bin/NetRexxC.bat
2
jdk%%JDK_VERSION%%/bin/NetRexxC.cmd
1
jdk%%JDK_VERSION%%/bin/NetRexxC.cmd
3
jdk%%JDK_VERSION%%/bin/hello.nrx
2
jdk%%JDK_VERSION%%/bin/nrc
4
jdk%%JDK_VERSION%%/bin/nrc.bat
5
jdk%%JDK_VERSION%%/bin/nrc.cmd
6
jdk%%JDK_VERSION%%/lib/NetRexxC.zip
3
jdk%%JDK_VERSION%%/lib/NetRexxC.zip
7
jdk%%JDK_VERSION%%/lib/NetRexxR.zip
4
jdk%%JDK_VERSION%%/lib/NetRexxR.zip
8
share/doc/NetRexx/ArchText.class
5
share/doc/NetRexx/ArchText.class

Return to bug 30217