aboutsummaryrefslogtreecommitdiff
path: root/editors/jedit/Makefile
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-01-29 00:01:49 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-01-29 00:01:49 +0000
commitf585416687fd9539d7ff008107ac5c00e27deb37 (patch)
treed3a742027e26b05f4ab30d63b3deeb4988531b2d /editors/jedit/Makefile
parentb0921a2be496f7c5d6cebd596bc0b5b049905da5 (diff)
downloadports-f585416687fd9539d7ff008107ac5c00e27deb37.tar.gz
ports-f585416687fd9539d7ff008107ac5c00e27deb37.zip
Notes
Diffstat (limited to 'editors/jedit/Makefile')
-rw-r--r--editors/jedit/Makefile31
1 files changed, 14 insertions, 17 deletions
diff --git a/editors/jedit/Makefile b/editors/jedit/Makefile
index 96eb5b090629..b71e7d4f7f8c 100644
--- a/editors/jedit/Makefile
+++ b/editors/jedit/Makefile
@@ -15,25 +15,28 @@ EXTRACT_SUFX= .jar
EXTRACT_ONLY=
MAINTAINER= ports@FreeBSD.org
-COMMENT= Powerful programmer's text editor written in Java
+COMMENT= Powerful programmer\'s text editor written in Java
-USE_JAVA= 1.3+
+RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
+
+USE_JAVA= yes
+JAVA_VERSION= 1.3+
USE_XLIB= yes
NO_BUILD= yes
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
+SUB_FILES= jedit.sh
+
MAN1= jedit.1
# The complete PLIST is generated in post-install
PLIST_FILES= bin/jedit
-do-configure:
- @${SED} "s|%%PREFIX%%|${PREFIX}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g" \
- ${FILESDIR}/jedit.sh > ${WRKDIR}/jedit.sh
-
do-install:
- @${SED} "s|%%PREFIX%%|${PREFIX}| ; s|%%WRKDIR%%|${WRKDIR}|" ${FILESDIR}/instscript | \
+ @${SED} "s|%%PREFIX%%|${PREFIX}| ; s|%%DATADIR%%|${DATADIR}| ; s|%%WRKDIR%%|${WRKDIR}|" ${FILESDIR}/instscript | \
${SETENV} CLASSPATH=${DISTDIR}/${DISTNAME}.jar \
- ${LOCALBASE}/bin/javavm installer.Install text
+ ${JAVA} installer.Install text
@${INSTALL_SCRIPT} ${WRKDIR}/jedit.sh ${PREFIX}/bin/jedit
.if defined(PARALLEL_PACKAGE_BUILD)
@@ -41,16 +44,10 @@ IGNORE= hang
.endif
post-install:
- @${FIND} ${JAVASHAREDIR} ! -type d | \
+ @${FIND} ${DATADIR} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${JAVASHAREDIR} -type d | ${SORT} -r | \
+ @${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
- @${ECHO_CMD} "******************************************************"
- @${ECHO_CMD} ""
- @${ECHO_CMD} "In order to use the optional SFTP plug-in for jEdit,"
- @${ECHO_CMD} "you will need to have Java JDK version 1.4 or newer"
- @${ECHO_CMD} "installed."
- @${ECHO_CMD} ""
- @${ECHO_CMD} "******************************************************"
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>