blob: cbfc230053b6ebf5b9aea56ce47ce2975bc219bf (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: jde
# Date created: 8 January 2002
# Whom: Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#
PORTNAME= jde
PORTVERSION= 2.2.8
PORTREVISION= 1
CATEGORIES= java elisp
MASTER_SITES= http://jdee.sunsite.dk/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= ${PORTNAME}-latest
MAINTAINER= fuyuki@mj.0038.net
EMACS_PORT_NAME?= emacs21
.if ${EMACS_PORT_NAME} != "emacs21"
PORTNAMESUFFIX= ${PKGNAMESUFFIX}
.endif
BUILD_DEPENDS= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/semantic/semantic.el:${PORTSDIR}/devel/semantic${PORTNAMESUFFIX} \
${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/elib/avltree.el:${PORTSDIR}/devel/elib${PORTNAMESUFFIX}
RUN_DEPENDS= ${BUILD_DEPENDS}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
BUILD_WRKSRC= ${WRKSRC}/lisp
MAKEFILE= makefile
LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/jde
JAVADIR= ${PREFIX}/share/java/jde
post-patch:
# An ugly patch for a troublesome varname change in the browse-url.
.if ${EMACS_PORT_NAME} == "emacs21"
${PERL} -pi -e 's/browse-url-new-window-p/browse-url-new-window-flag/' \
${BUILD_WRKSRC}/*.el
.endif
do-install:
${MKDIR} ${LISPDIR}
.for i in *.el *.elc *.bnf
${INSTALL_DATA} ${BUILD_WRKSRC}/${i} ${LISPDIR}
.endfor
${MKDIR} ${JAVADIR}
.for i in bsh-commands lib src
${CP} -pR ${WRKSRC}/java/${i} ${JAVADIR}
.endfor
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/jtags ${PREFIX}/bin
post-install:
${LN} -sf ${JAVADIR} ${LISPDIR}/java
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ReleaseNotes.txt ChangeLog
${CP} ${BUILD_WRKSRC}/${i} ${DOCSDIR}
.endfor
.for i in html tli_rbl
${CP} -pR ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
${LN} -sf ${DOCSDIR} ${LISPDIR}/doc
.endif
.include <bsd.port.mk>
|