summaryrefslogtreecommitdiffstats
path: root/editors/flim114-emacs20
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>2000-01-11 14:42:30 +0000
committershige <shige@FreeBSD.org>2000-01-11 14:42:30 +0000
commitc3c2d1ae4accbf79dda066bb0777b4ac15127b5d (patch)
tree7e636e6cc5005a26db7e6189fbc2bb58a96aee24 /editors/flim114-emacs20
parenta0439cec9e3e0bd16fc05c6f59c4651203bc83fc (diff)
downloadFreeBSD-ports-c3c2d1ae4accbf79dda066bb0777b4ac15127b5d.zip
FreeBSD-ports-c3c2d1ae4accbf79dda066bb0777b4ac15127b5d.tar.gz
Install _pkg.el for xemacs(21.x or later) package version descriptor.
Diffstat (limited to 'editors/flim114-emacs20')
-rw-r--r--editors/flim114-emacs20/Makefile21
-rw-r--r--editors/flim114-emacs20/files/_pkg.el4
2 files changed, 24 insertions, 1 deletions
diff --git a/editors/flim114-emacs20/Makefile b/editors/flim114-emacs20/Makefile
index 86aa9d2..a35ee3a 100644
--- a/editors/flim114-emacs20/Makefile
+++ b/editors/flim114-emacs20/Makefile
@@ -40,7 +40,7 @@ ALL_TARGET?= elc
.if defined(EMACS_PORT)
PKGNAME= flim-${EMACS_PORT}-${FLIM_VER}
-EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+EMACS_CMD?= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
BUILD_DEPENDS+= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
.if defined(HAS_COMMON_PORT) && (${HAS_COMMON_PORT} == "YES")
RUN_DEPENDS+= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
@@ -95,6 +95,10 @@ MAKEINFO= makeinfo --no-split --no-validate
MAKEINFO_EMACS= ${EMACS_CMD} -no-site-file -no-init-file -batch
MAKEINFO_EMACS_FLAGS= -e texinfo-format-buffer -f save-buffer
+pre-build:
+.if defined(EMACS_PACKAGESDIR) && defined(XEMACS_PKGNAME)
+ @${MAKE} pkg-el-copy
+.endif
post-build:
.if defined(BUILD_INFO_BY_EMACS) && (${BUILD_INFO_BY_EMACS} == "YES")
@@ -107,6 +111,9 @@ pre-install:
.if defined(EMACS_PACKAGESDIR) && defined(EMACS_PACKAGES_SUBDIRS)
@${MAKE} mkdir-site-packages
.endif
+.if defined(EMACS_PACKAGESDIR) && defined(XEMACS_PKGNAME)
+ @${MAKE} pkg-el-install
+.endif
post-install:
# install package-cookie
@@ -157,6 +164,18 @@ info-build-by-emacs:
${MAKEINFO_EMACS} $${i} ${MAKEINFO_EMACS_FLAGS} || ${TRUE} ; \
done)
.endif
+
+pkg-el-copy:
+ @(if [ -f ${FILESDIR}/_pkg.el ] ; then \
+ ${CP} ${FILESDIR}/_pkg.el ${WRKSRC}/_pkg.el ;\
+ fi)
+
+pkg-el-install:
+ @(if [ -f ${FILESDIR}/_pkg.el ] ; then \
+ ${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME} ;\
+ ${INSTALL_DATA} ${FILESDIR}/_pkg.el \
+ ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME}/_pkg.el ;\
+ fi)
mkdir-site-packages:
@(for i in ${EMACS_PACKAGES_SUBDIRS} ; do \
diff --git a/editors/flim114-emacs20/files/_pkg.el b/editors/flim114-emacs20/files/_pkg.el
new file mode 100644
index 0000000..7b3df37
--- /dev/null
+++ b/editors/flim114-emacs20/files/_pkg.el
@@ -0,0 +1,4 @@
+;;;###autoload
+(package-provide 'flim
+ :version 1.13
+ :type 'regular)
OpenPOWER on IntegriCloud