diff options
author | shige <shige@FreeBSD.org> | 2000-01-10 00:28:42 +0800 |
---|---|---|
committer | shige <shige@FreeBSD.org> | 2000-01-10 00:28:42 +0800 |
commit | de370de2fac53d9b036934ee1ddd7514fb01ff50 (patch) | |
tree | 40205bd9e3d8c6726ca3fbfef59d1d5727348a49 /editors/apel | |
parent | 9c6bd9d86b6e351c61ccba00af8329a90435e4db (diff) | |
download | freebsd-ports-gnome-de370de2fac53d9b036934ee1ddd7514fb01ff50.tar.gz freebsd-ports-gnome-de370de2fac53d9b036934ee1ddd7514fb01ff50.tar.zst freebsd-ports-gnome-de370de2fac53d9b036934ee1ddd7514fb01ff50.zip |
Install _pkg.el for xemacs(21.x or later) package version descriptor.
Diffstat (limited to 'editors/apel')
-rw-r--r-- | editors/apel/Makefile | 12 | ||||
-rw-r--r-- | editors/apel/files/_pkg.el | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/editors/apel/Makefile b/editors/apel/Makefile index b0089ea64ce4..692f92d2831e 100644 --- a/editors/apel/Makefile +++ b/editors/apel/Makefile @@ -39,7 +39,7 @@ ALL_TARGET?= elc .if defined(EMACS_PORT) PKGNAME= apel-${EMACS_PORT}-${APEL_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(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES") RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common @@ -82,6 +82,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: .if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES") @@ -104,6 +107,13 @@ mkdir-site-packages: ${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/$${i} ; \ done) +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) + doc-install: @${MKDIR} ${PREFIX}/${APELDOCDIR} @(cd ${WRKSRC} ; \ diff --git a/editors/apel/files/_pkg.el b/editors/apel/files/_pkg.el new file mode 100644 index 000000000000..d3d55387912f --- /dev/null +++ b/editors/apel/files/_pkg.el @@ -0,0 +1,4 @@ +;;;###autoload +(package-provide 'apel + :version 1.16 + :type 'regular) |