mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
de78af3ac5
Reviewed by: exp8 run on pointyhat Supported by: miwi
71 lines
2.0 KiB
Makefile
71 lines
2.0 KiB
Makefile
# New ports collection makefile for: jde
|
|
# Date created: 8 January 2002
|
|
# Whom: Kimura Fuyuki <fuyuki@mj.0038.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jde
|
|
PORTVERSION= 2.3.5
|
|
PORTREVISION= 7
|
|
CATEGORIES= java elisp
|
|
MASTER_SITES= http://jdee.sunsite.dk/
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
|
|
|
MAINTAINER= clawsie@fastmail.fm
|
|
COMMENT= Java Development Environment for Emacs
|
|
|
|
USE_EMACS= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/cedet/common/cedet.el:${PORTSDIR}/devel/cedet \
|
|
${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/elib/avltree.el:${PORTSDIR}/devel/elib
|
|
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:
|
|
@${REINPLACE_CMD} -e '/test -d/d' ${BUILD_WRKSRC}/${MAKEFILE}
|
|
@${REINPLACE_CMD} -e 's|^CEDET = ../../cedet|CEDET = ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/cedet|' \
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
|
@${REINPLACE_CMD} -e 's|^ELIB = ../../elib|ELIB = ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/elib|' \
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
|
@${REINPLACE_CMD} -e 's|^ dir|"${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/jde/"|' \
|
|
${BUILD_WRKSRC}/jde.el
|
|
# ugh, broken permissions.
|
|
@${FIND} ${WRKSRC}/java -type f -exec ${CHMOD} 0644 {} \;
|
|
@${FIND} ${WRKSRC}/java -type d -exec ${CHMOD} 0755 {} \;
|
|
|
|
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} -R ${WRKSRC}/java/${i} ${JAVADIR}
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/jtags ${PREFIX}/bin
|
|
|
|
post-install:
|
|
${LN} -sf ${JAVADIR} ${LISPDIR}/java
|
|
${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} -R ${WRKSRC}/doc/${i} ${DOCSDIR}
|
|
.endfor
|
|
${LN} -sf ${DOCSDIR} ${LISPDIR}/doc
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|