diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-02-13 14:58:51 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-02-13 14:58:51 +0000 |
commit | 50286cc44a2bcfbb1602cbf185088a758232d87e (patch) | |
tree | a32b0c0ec9c36b454331047e6d4094661e6d322c /java/netrexx | |
parent | b6b2aa08460238a98ad7e6315b3dba72dff7119c (diff) | |
download | ports-50286cc44a2bcfbb1602cbf185088a758232d87e.tar.gz ports-50286cc44a2bcfbb1602cbf185088a758232d87e.zip |
o Install JAR files according to hier(7) and mtree(8)
o Install examples unless NOPORTDOCS
o Patch instructions to make sense in ports environment
PR: 34845
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=54658
Diffstat (limited to 'java/netrexx')
-rw-r--r-- | java/netrexx/Makefile | 13 | ||||
-rw-r--r-- | java/netrexx/files/patch-read.me.first | 73 | ||||
-rw-r--r-- | java/netrexx/pkg-plist | 10 |
3 files changed, 84 insertions, 12 deletions
diff --git a/java/netrexx/Makefile b/java/netrexx/Makefile index 5d2e2731fe42..632811faaff7 100644 --- a/java/netrexx/Makefile +++ b/java/netrexx/Makefile @@ -7,6 +7,7 @@ PORTNAME= NetRexx PORTVERSION= 2.02 +PORTREVISION= 1 CATEGORIES= java lang MASTER_SITES= http://www2.hursley.ibm.com/netrexx/ DISTNAME= NetRexx @@ -29,14 +30,14 @@ do-install: ${PREFIX}/bin/NetRexxC.rexx @${LN} -sf ${PREFIX}/bin/NetRexxC.rexx ${PREFIX}/bin/nrc.rexx - @${MKDIR} ${PREFIX}/NetRexx/lib - @${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${PREFIX}/NetRexx/lib/ - @${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${PREFIX}/NetRexx/lib/ + @${MKDIR} ${PREFIX}/share/java/classes + @${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${PREFIX}/share/java/classes + @${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${PREFIX}/share/java/classes - @${MKDIR} ${PREFIX}/share/examples/NetRexx - @${INSTALL_DATA} ${WRKSRC}/bin/hello.nrx \ - ${PREFIX}/share/examples/NetRexx/ .if !defined(NOPORTDOCS) + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/bin/hello.nrx \ + ${EXAMPLESDIR} @${MKDIR} ${DOCSDIR}/netrexx/lang .for dir in netrexx/lang . @${INSTALL_DATA} ${WRKSRC}/browse/${dir}/* ${DOCSDIR}/${dir} diff --git a/java/netrexx/files/patch-read.me.first b/java/netrexx/files/patch-read.me.first new file mode 100644 index 000000000000..c5003e8b77ff --- /dev/null +++ b/java/netrexx/files/patch-read.me.first @@ -0,0 +1,73 @@ +--- read.me.first.orig Mon Feb 11 12:08:27 2002 ++++ read.me.first Mon Feb 11 12:17:51 2002 +@@ -10,7 +10,9 @@ + + To start, point your Web browser at the file: + +- NetRexx\browse\netrexx.html ++ /usr/local/share/doc/NetRexx/netrexx.html ++ ++(assuming your LOCALBASE=/usr/local). + + ------------------------------------------------------------------------ + +@@ -27,35 +29,24 @@ + + 2. Make the translator visible to the Java Virtual Machine (JVM): + +- -- If you are running Java 1.2 or later, copy the file +- NetRexx\lib\NetRexxC.jar to the jre\lib\ext directory in the +- Java installation tree. The JVM will automatically find it +- there and make it available. +- +- -- If you are using an earlier Java version (1.1.2 through 1.1.8) +- instead add the full path and filename of the NetRexx\lib\NetRexxC.jar +- to the CLASSPATH environment variable for your operating system. ++ -- add the full path and filename of the ++ /usr/local/share/java/classes/NetRexxC.jar to the CLASSPATH ++ environment variable for your operating system. + + Note: if you have a NetRexxC.zip in your CLASSPATH from an earlier + version of Rexx, remove it (NetRexxC.jar replaces NetRexxC.zip). + +- 3. Copy all the files in the NetRexx\bin directory to a directory in +- your PATH (perhaps the \bin directory in the Java installation +- tree). This is not essential, but makes shorthand scripts and a +- test case available. +- +- 4. If you are running Java 1.2 or later, make the file \lib\tools.jar ++ 3. If you are running Java 1.2 or later, make the file /lib/tools.jar + (which contains the javac compiler) in the Java tree visible to + the JVM. You can do this either by adding its path and filename to +- the CLASSPATH environment variable, or by moving it to the +- jre\lib\ext directory in the Java tree. ++ the CLASSPATH environment variable. + +- 5. Test the installation by making the executables directory the +- current directory and issuing the following two commands exactly +- as written: ++ 4. Test the installation by making the examples directory the ++ current directory (/usr/local/share/examples/NetRexx) and issuing ++ the following two commands exactly as written: + +- java COM.ibm.netrexx.process.NetRexxC hello +- java hello ++ $ java COM.ibm.netrexx.process.NetRexxC hello ++ $ java hello + + The first of these should translate the test program and then + invoke the javac compiler to generate the class file (hello.class) +@@ -64,9 +55,10 @@ + + If you have any problems or errors in the above process, please read the + detailed instructions and problem-solving tips in the NetRexx User's +-guide. You can find it in this package at NetRexx\browse\nrusers.html +-(for browsing) and at NetRexx\browse\nrusers.pdf for viewing and +-printing with Acrobat Reader. ++guide. You can find it in this package at ++/usr/local/share/docs/NetRexx/nrusers.html (for browsing) and at ++/usr/local/share/docs/NetRexx/nrusers.pdf for viewing and printing with ++Acrobat Reader. + + ------------------------------------------------------------------------ + diff --git a/java/netrexx/pkg-plist b/java/netrexx/pkg-plist index 8035842c3241..7d1c3183bf6d 100644 --- a/java/netrexx/pkg-plist +++ b/java/netrexx/pkg-plist @@ -133,12 +133,10 @@ bin/nrc.rexx %%PORTDOCS%%share/doc/NetRexx/ArchText.nrx %%PORTDOCS%%share/doc/NetRexx/wordclock.html %%PORTDOCS%%share/doc/NetRexx/ArchText.class -share/examples/NetRexx/hello.nrx -NetRexx/lib/NetRexxC.jar -NetRexx/lib/NetRexxR.jar +%%PORTDOCS%%share/examples/NetRexx/hello.nrx +share/java/classes/NetRexxC.jar +share/java/classes/NetRexxR.jar %%PORTDOCS%%@dirrm share/doc/NetRexx/netrexx/lang %%PORTDOCS%%@dirrm share/doc/NetRexx/netrexx %%PORTDOCS%%@dirrm share/doc/NetRexx -@dirrm share/examples/NetRexx -@dirrm NetRexx/lib -@dirrm NetRexx +%%PORTDOCS%%@dirrm share/examples/NetRexx |