aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2003-03-04 05:36:44 +0800
committerznerd <znerd@FreeBSD.org>2003-03-04 05:36:44 +0800
commit69eb318e59e8308d699106d4c76d9027aa36fbf0 (patch)
treef6b1d15c893f0002a9aa0ca94424c800e717a531 /java
parent21a3c63056f7b42955d65c60de6258c8dc25a2f2 (diff)
downloadfreebsd-ports-gnome-69eb318e59e8308d699106d4c76d9027aa36fbf0.tar.gz
freebsd-ports-gnome-69eb318e59e8308d699106d4c76d9027aa36fbf0.tar.zst
freebsd-ports-gnome-69eb318e59e8308d699106d4c76d9027aa36fbf0.zip
Fixes:
- unbreak with new gcc on -current ('using namespace std') - CFLAGS/env police - condense port's Makefile - install additional shell script - install documentation (honour NOPORTDOCS) PR: 48464 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> Tested on: -STABLE, -CURRENT
Diffstat (limited to 'java')
-rw-r--r--java/jlint/Makefile17
-rw-r--r--java/jlint/files/patch-Makefile22
-rw-r--r--java/jlint/files/patch-field_desc.hh13
-rw-r--r--java/jlint/pkg-plist8
4 files changed, 52 insertions, 8 deletions
diff --git a/java/jlint/Makefile b/java/jlint/Makefile
index 4c6616fc5fa5..c9fd07038848 100644
--- a/java/jlint/Makefile
+++ b/java/jlint/Makefile
@@ -13,15 +13,20 @@ MASTER_SITES= http://artho.com/jlint/ \
MAINTAINER= znerd@FreeBSD.org
-PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
-TARGET_DIR?= ${PREFIX}/bin
+USE_REINPLACE= YES
.include <bsd.port.pre.mk>
+post-patch:
+ @${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/jlint.sh
+
do-install:
- ${MKDIR} ${TARGET_DIR}
- ${CP} ${WRKSRC}/jlint ${TARGET_DIR}
- ${CP} ${WRKSRC}/antic ${TARGET_DIR}
- ${CHMOD} 755 ${TARGET_DIR}/jlint ${TARGET_DIR}/antic
+ ${INSTALL_PROGRAM} ${WRKSRC}/jlint ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/antic ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/jlint.sh ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/manual.pdf ${WRKSRC}/manual.html ${DOCSDIR}
+.endif
.include <bsd.port.post.mk>
diff --git a/java/jlint/files/patch-Makefile b/java/jlint/files/patch-Makefile
new file mode 100644
index 000000000000..9cae9f698201
--- /dev/null
+++ b/java/jlint/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig Wed Feb 19 17:20:06 2003
++++ Makefile Wed Feb 19 17:21:13 2003
+@@ -3,8 +3,8 @@
+ # Makefile for Unix and GNU/Linux with gcc/g++ compiler
+ # Edit here:
+
+-CC=gcc
+-CPP=g++
++CC?=gcc
++CPP=$(CXX)
+
+ # Hints:
+ # if you use egcs-2.90.* version of GCC please add option -fno-exceptions
+@@ -18,7 +18,7 @@
+
+ # Optimized version
+
+-CFLAGS = -c -Wall -O2 -g -DSLIST
++CFLAGS += -c
+ # add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results)
+
+ # Optimized version with switched off asserts
diff --git a/java/jlint/files/patch-field_desc.hh b/java/jlint/files/patch-field_desc.hh
new file mode 100644
index 000000000000..0781d51567c5
--- /dev/null
+++ b/java/jlint/files/patch-field_desc.hh
@@ -0,0 +1,13 @@
+--- field_desc.hh.orig Wed Feb 19 17:20:15 2003
++++ field_desc.hh Wed Feb 19 17:22:10 2003
+@@ -1,10 +1,7 @@
+ #ifndef FIELD_DESC_HH
+ #define FIELD_DESC_HH
+
+-#ifdef VISUAL_CPP
+ using namespace std;
+-#pragma warning (disable : 4786)
+-#endif
+
+ #include "component_desc.hh"
+ #include "utf_string.hh"
diff --git a/java/jlint/pkg-plist b/java/jlint/pkg-plist
index 467963f76e8c..a56afeeabbcc 100644
--- a/java/jlint/pkg-plist
+++ b/java/jlint/pkg-plist
@@ -1,2 +1,6 @@
-%%T%%/jlint
-%%T%%/antic
+bin/jlint
+bin/jlint.sh
+bin/antic
+%%PORTDOCS%%share/doc/jlint/manual.pdf
+%%PORTDOCS%%share/doc/jlint/manual.html
+%%PORTDOCS%%@dirrm share/doc/jlint