mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Update to bsd.java.mk 2.0
- Fix dynamic plist creation where all JAVASHAREDIR would be listed (and thus removed with the port) (!) - Use SUB_LIST and tweak the launcher shell script - Move displayed information into pkg-message - Use DATADIR=${JAVASHAREDIR}/${PORTNAME}
This commit is contained in:
parent
b0921a2be4
commit
f585416687
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127579
@ -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>
|
||||
|
@ -1,4 +1,4 @@
|
||||
%%PREFIX%%/share/java/jedit
|
||||
%%DATADIR%%
|
||||
%%WRKDIR%%
|
||||
%%PREFIX%%/man/man1
|
||||
Y
|
||||
|
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
# Java heap size, in megabytes
|
||||
JAVA_HEAP_SIZE=32
|
||||
|
||||
exec %%LOCALBASE%%/bin/javavm -mx${JAVA_HEAP_SIZE}m ${JEDIT} -jar \
|
||||
"%%PREFIX%%/share/java/jedit/jedit.jar" "$@"
|
7
editors/jedit/files/jedit.sh.in
Normal file
7
editors/jedit/files/jedit.sh.in
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
# Java heap size, in megabytes
|
||||
JAVA_HEAP_SIZE=32
|
||||
|
||||
JAVA_VERSION="1.3+" "%%LOCALBASE%%/bin/java" -mx${JAVA_HEAP_SIZE}m ${JEDIT} -jar "%%DATADIR%%/jedit.jar" "$@"
|
8
editors/jedit/pkg-message
Normal file
8
editors/jedit/pkg-message
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
******************************************************
|
||||
|
||||
In order to use the optional SFTP plug-in for jEdit,
|
||||
you will need to have Java JDK version 1.4 or newer
|
||||
installed.
|
||||
|
||||
******************************************************
|
Loading…
Reference in New Issue
Block a user