aboutsummaryrefslogtreecommitdiffstats
path: root/editors/jext/Makefile
blob: 70e8e60258528becf747b35eb62014a487328893 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:    jext
# Date created:             17 Febrary 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jext
PORTVERSION=    3.0.2
PORTREVISION=   1
CATEGORIES= editors java
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= jext

MAINTAINER= sobomax@FreeBSD.org
COMMENT=    Powerful 100% pure Java text editor

RUN_DEPENDS=    ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \
        ${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jdk13

WRKSRC=     ${WRKDIR}
USE_XLIB=   yes
NO_BUILD=   yes

JAVAVM?=    ${LOCALBASE}/bin/javavm

INSTSBDR=   ${PREFIX}/share/java/jext

do-configure:
    @${PERL} -pi -e 's|%%JAVAVM%%|${JAVAVM}|g ; \
             s|%%JEXT_HOME%%|${INSTSBDR}|g' ${WRKSRC}/bin/jext

do-install:
    @${MKDIR} ${INSTSBDR}
    @${INSTALL_SCRIPT} ${WRKSRC}/bin/jext ${PREFIX}/bin/jext
    @(cd ${WRKSRC} && ${TAR} -c -f - Jython-LICENSE LICENSE README \
        History.txt Names.txt bin lib) | \
        (cd ${INSTSBDR} && ${TAR} --unlink -x -f -)
    @CLASSPATH=${INSTSBDR}/lib/jython.jar javavm org.python.util.jython \
        ${INSTSBDR}/lib/Lib/compileall.py ${INSTSBDR}

post-install:
    @${ECHO_MSG} "-------------------------------------------------------------------------------"
    @${ECHO_MSG} " Please note that Java2 platform (jdk/jre-1.2.x or later) is required to run"
    @${ECHO_MSG} " this program."
    @${ECHO_MSG} "-------------------------------------------------------------------------------"

.include <bsd.port.mk>