1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/editors/jedit/Makefile
2013-01-04 07:10:23 +00:00

47 lines
1.1 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= jedit
PORTVERSION= 5.0.0
PORTEPOCH= 1
CATEGORIES= editors java
MASTER_SITES= SF
DISTNAME= ${PORTNAME}${PORTVERSION}install
EXTRACT_SUFX= .jar
EXTRACT_ONLY=
MAINTAINER= ports@FreeBSD.org
COMMENT= Powerful programmer\'s text editor written in Java
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
CONFLICTS= jedit-4.3.p*
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_XORG= x11
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-install:
@${SED} "s|%%PREFIX%%|${PREFIX}| ; s|%%DATADIR%%|${DATADIR}| ; s|%%WRKDIR%%|${WRKDIR}|" ${FILESDIR}/instscript | \
${SETENV} CLASSPATH=${DISTDIR}/${DISTNAME}.jar \
${JAVA} installer.Install text
@${INSTALL_SCRIPT} ${WRKDIR}/jedit.sh ${PREFIX}/bin/jedit
post-install:
@${FIND} ${DATADIR} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.mk>