aa8e85bcfd
1) Simplify the way how an emacs version is picked when no emacs is installed, but a user try to install an Emacs Lisp package. Just pick up the version set as EMACS_TYPE than searching for versions already installed etc. If the EMACS_TYPE version is not supported by the Emacs Lisp Package, just fail. EMACS_TYPE be default to GNU Emacs 21. (In other words, users should set EMACS_TYPE as they want. Otherwise GNU Emacs 21 is used.) 2) All Emacs Lisp Packages *must* prepend EMACS_PKGNAME_PREFIX to a) the PKGNAME itself, and b) PKGNAME in its dependency lines. EMACS_PKGNAME_PREFIX is expanded to "xemacs-" when XEmacs is used. This keeps dependency graph of Emacs-Lisp-packages- installed-for-XEmacs consistent. 3) Document EMACS_* variables as much as possible. 4) Provide more cookies for PLIST. Maybe utilized later. Note that the 2) change doesn't affect the default, GNU Emacs 21 behaviour. So no version / revision bumps in this commit.
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2005/08/28 04:25:29 uebayasi Exp $
|
|
#
|
|
|
|
DISTNAME= jde-2.3.2
|
|
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
|
|
CATEGORIES= devel editors java
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
# The "real" site has silly naming conventions:
|
|
#MASTER_SITES= http://jdee.sunsite.dk/
|
|
|
|
MAINTAINER= cjones@NetBSD.org
|
|
HOMEPAGE= http://jdee.sunsite.dk/
|
|
COMMENT= Full-featured Java editing mode for emacs
|
|
|
|
DEPENDS+= ${EMACS_PKGNAME_PREFIX}speedbar>=0.14rc2:../../editors/speedbar
|
|
DEPENDS+= ${EMACS_PKGNAME_PREFIX}eieio>=0.17:../../lang/eieio
|
|
DEPENDS+= ${EMACS_PKGNAME_PREFIX}semantic>=1.4rc13:../../devel/semantic
|
|
DEPENDS+= ${EMACS_PKGNAME_PREFIX}elib>=1.0:../../devel/elib
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/lisp
|
|
|
|
.include "../../mk/emacs.mk"
|
|
|
|
# XEmacs has its own JDE package
|
|
EMACS_VERSIONS_ACCEPTED=emacs21 # XXX Won't compile with emacs20...
|
|
|
|
PKG_JVM= sun-jdk14
|
|
|
|
BUILD_ENV+= EMACS=${EMACS}
|
|
MAKE_ENV+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX}
|
|
|
|
NO_CONFIGURE= # set
|
|
|
|
MAKEFILE= makefile
|
|
|
|
post-extract:
|
|
@${RMDIR} ${WRKDIR}/${DISTNAME}/java/classes
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jde
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/jde
|
|
${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/jde
|
|
cd ${WRKDIR}/${DISTNAME}/doc && \
|
|
${PAX} -s',^src.*,,' -s',.*\.nosearch.*,,' \
|
|
-rw * ${PREFIX}/share/doc/jde
|
|
cd ${WRKDIR}/${DISTNAME} && \
|
|
${PAX} -s',^java/classes.*,,' -s',^java/src.*,,' \
|
|
-s',.*\.nosearch.*,,' -rw java ${PREFIX}/share/jde
|
|
cd ${WRKDIR}/${DISTNAME} && \
|
|
${PAX} -rw lisp ${EMACS_LISPPREFIX}/jde
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|