pkgsrc/editors/jde/Makefile
uebayasi 34004f51e0 Move mk/emacs.mk to editors/emacs/modules.mk.
Don't call pkg_info to get the installed Emacs version; always use the
version matching EMACS_TYPE set by users.  Be DEPENDS to it.  This should
address pkg/37146 by Aleksey Cheusov.

While here convert some emacs lisp packages to user-destdir.
2008-10-11 09:31:54 +00:00

60 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2008/10/11 09:31:56 uebayasi Exp $
#
DISTNAME= jde-2.3.2
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel editors java
MASTER_SITES= ${MASTER_SITE_LOCAL}
# The "real" site has silly naming conventions:
#MASTER_SITES= http://jdee.sunsite.dk/
MAINTAINER= pkgsrc-users@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
USE_TOOLS+= pax
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/${DISTNAME}/lisp
.include "../../editors/emacs/modules.mk"
# XEmacs has its own JDE package
EMACS_VERSIONS_ACCEPTED=emacs21 # XXX Won't compile with emacs20...
PKG_DEFAULT_JVM= sun-jdk14
PKGSRC_MAKE_ENV+= EMACS=${EMACS}
MAKE_ENV+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX:Q}
NO_CONFIGURE= yes
MAKE_FILE= makefile
post-extract:
@${RMDIR} ${WRKDIR}/${DISTNAME}/java/classes
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/jde
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/jde
${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/jde
cd ${WRKDIR}/${DISTNAME}/doc && \
pax -s',^src.*,,' -s',.*\.nosearch.*,,' \
-rw * ${DESTDIR}${PREFIX}/share/doc/jde
cd ${WRKDIR}/${DISTNAME} && \
pax -s',^java/classes.*,,' -s',^java/src.*,,' \
-s',.*\.nosearch.*,,' -rw java \
${DESTDIR}${PREFIX}/share/jde
cd ${WRKDIR}/${DISTNAME} && \
pax -rw -s ',.*\.orig$$,,' lisp \
${DESTDIR}${EMACS_LISPPREFIX}/jde
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"