mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
Install _pkg.el for xemacs(21.x or later) package version descriptor.
This commit is contained in:
parent
e00eb716de
commit
16d317466b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24603
@ -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} ; \
|
||||
|
4
editors/apel-emacs/files/_pkg.el
Normal file
4
editors/apel-emacs/files/_pkg.el
Normal file
@ -0,0 +1,4 @@
|
||||
;;;###autoload
|
||||
(package-provide 'apel
|
||||
:version 1.16
|
||||
:type 'regular)
|
@ -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} ; \
|
||||
|
4
editors/apel/files/_pkg.el
Normal file
4
editors/apel/files/_pkg.el
Normal file
@ -0,0 +1,4 @@
|
||||
;;;###autoload
|
||||
(package-provide 'apel
|
||||
:version 1.16
|
||||
:type 'regular)
|
Loading…
Reference in New Issue
Block a user