diff options
author | shige <shige@FreeBSD.org> | 2000-01-11 22:42:30 +0800 |
---|---|---|
committer | shige <shige@FreeBSD.org> | 2000-01-11 22:42:30 +0800 |
commit | c3c2d1ae4accbf79dda066bb0777b4ac15127b5d (patch) | |
tree | 7e636e6cc5005a26db7e6189fbc2bb58a96aee24 /editors/semi | |
parent | a0439cec9e3e0bd16fc05c6f59c4651203bc83fc (diff) | |
download | freebsd-ports-gnome-c3c2d1ae4accbf79dda066bb0777b4ac15127b5d.tar.gz freebsd-ports-gnome-c3c2d1ae4accbf79dda066bb0777b4ac15127b5d.tar.zst freebsd-ports-gnome-c3c2d1ae4accbf79dda066bb0777b4ac15127b5d.zip |
Install _pkg.el for xemacs(21.x or later) package version descriptor.
Diffstat (limited to 'editors/semi')
-rw-r--r-- | editors/semi/Makefile | 20 | ||||
-rw-r--r-- | editors/semi/files/_pkg.el | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/editors/semi/Makefile b/editors/semi/Makefile index 775ececc4b92..50a7ee31e75f 100644 --- a/editors/semi/Makefile +++ b/editors/semi/Makefile @@ -100,6 +100,11 @@ 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") @${MAKE} info-build-by-emacs @@ -111,6 +116,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: @${MKDIR} -p ${PREFIX}/share/semi @@ -161,6 +169,18 @@ info-build-by-emacs: 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 \ ${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/$${i} ; \ diff --git a/editors/semi/files/_pkg.el b/editors/semi/files/_pkg.el new file mode 100644 index 000000000000..5bc3c1a4a951 --- /dev/null +++ b/editors/semi/files/_pkg.el @@ -0,0 +1,4 @@ +;;;###autoload +(package-provide 'semi + :version 1.18 + :type 'regular) |