mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Fix:
1) Change PREFIX -> LOCALBASE 2) Use PKGNAMESUFFIX 3) Rearrange EMACS_PORT_NAME check and its related variables.
This commit is contained in:
parent
bc239c983f
commit
0cbd5f0e73
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30521
@ -5,12 +5,12 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= apel-${EMACS_PORT_NAME}
|
||||
PORTNAME= apel
|
||||
PORTVERSION= ${APEL_VER}
|
||||
CATEGORIES= editors elisp
|
||||
MASTER_SITES= ftp://ftp.etl.go.jp/pub/mule/apel/ \
|
||||
ftp://ftp.center.osaka-u.ac.jp/mule/apel/
|
||||
DISTNAME= apel-${APEL_VER}
|
||||
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
||||
|
||||
MAINTAINER?= shige@FreeBSD.org
|
||||
|
||||
@ -31,30 +31,30 @@ EMACS_PORT_NAME= emacs
|
||||
REQUIRE_SETUPEL= YES
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# target name for make build
|
||||
ALL_TARGET?= elc
|
||||
# environments
|
||||
SCRIPTS_ENV+= TARGETS="${APEL_SETUPEL}"
|
||||
PLIST_SUB+= APELDOCDIR=${APELDOCDIR} APEL_SETUPEL=${APEL_SETUPEL}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(EMACS_PORT_NAME)
|
||||
# depends on custom: emacs-19.34 or mule-19.34
|
||||
.if (${EMACS_VER} == "19.34")
|
||||
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
.endif
|
||||
.if defined(EMACS_PACKAGESDIR)
|
||||
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
.endif
|
||||
.else
|
||||
.BEGIN:
|
||||
@${ECHO} "Error: Bad port."
|
||||
@${ECHO} "You must define EMACS_PORT_NAME."
|
||||
@${FALSE}
|
||||
.endif
|
||||
|
||||
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
||||
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
|
||||
TARGETS="${APEL_SETUPEL}"
|
||||
PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
||||
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
|
||||
APELDOCDIR=${APELDOCDIR} APEL_SETUPEL=${APEL_SETUPEL}
|
||||
MAKE_FLAGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD}
|
||||
|
||||
pre-configure:
|
||||
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
|
||||
@ -87,32 +87,32 @@ post-install:
|
||||
#
|
||||
mkdir-site-packages:
|
||||
@(for i in ${EMACS_PACKAGES_SUBDIRS} ; do \
|
||||
${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/$${i} ; \
|
||||
${MKDIR} ${LOCALBASE}/${EMACS_PACKAGESDIR}/$${i} ; \
|
||||
done)
|
||||
|
||||
pkg-el-install:
|
||||
@(if [ -f ${FILESDIR}/_pkg.el ] ; then \
|
||||
${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME} ;\
|
||||
${MKDIR} ${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME} ;\
|
||||
${INSTALL_DATA} ${FILESDIR}/_pkg.el \
|
||||
${PREFIX}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME}/_pkg.el ;\
|
||||
${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME}/_pkg.el ;\
|
||||
fi)
|
||||
|
||||
doc-install:
|
||||
@${MKDIR} ${PREFIX}/${APELDOCDIR}
|
||||
@${MKDIR} ${LOCALBASE}/${APELDOCDIR}
|
||||
@(cd ${WRKSRC} ; \
|
||||
for i in ChangeLog README.* ; do \
|
||||
${INSTALL_DATA} $${i} ${PREFIX}/${APELDOCDIR}/ ; \
|
||||
${INSTALL_DATA} $${i} ${LOCALBASE}/${APELDOCDIR}/ ; \
|
||||
done)
|
||||
|
||||
setupel-install:
|
||||
@${INSTALL_DATA} ${WRKDIR}/${APEL_SETUPEL} \
|
||||
${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
||||
${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
||||
|
||||
manifest-install:
|
||||
@${RM} -f ${WRKDIR}/${MANIFEST}
|
||||
@${CAT} ${PKGDIR}/PLIST | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \
|
||||
${SED} -e "s;^%%EMACS_PACKAGESDIR%%/;;" > ${WRKDIR}/${MANIFEST}
|
||||
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
||||
${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/
|
||||
${LOCALBASE}/${EMACS_PACKAGESDIR}/pkginfo/
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -3,7 +3,7 @@
|
||||
;; -- by shige@FreeBSD.ORG
|
||||
|
||||
(setq load-path (append '(
|
||||
"@@PREFIX@@/@@EMACS_LIBDIR@@/site-lisp/apel"
|
||||
"@@PREFIX@@/@@EMACS_LIBDIR_WITH_VER@@/site-lisp/emu"
|
||||
"@@LOCALBASE@@/@@EMACS_LIBDIR@@/site-lisp/apel"
|
||||
"@@LOCALBASE@@/@@EMACS_LIBDIR_WITH_VER@@/site-lisp/emu"
|
||||
) load-path))
|
||||
(provide 'apel-setupel)
|
||||
|
@ -26,8 +26,8 @@ APEL is programed by MORIOKA Tomohiko <tomo@m17n.org>.
|
||||
- static: utility for static evaluation
|
||||
|
||||
APEL is installed the following directory tree:
|
||||
${PREFIX}/share/emacs/site-lisp/apel/ --- apel
|
||||
${PREFIX}/share/emacs/19.34/site-lisp/emu/ --- emu
|
||||
${LOCALBASE}/share/emacs/site-lisp/apel/ --- apel
|
||||
${LOCALBASE}/share/emacs/19.34/site-lisp/emu/ --- emu
|
||||
|
||||
|
||||
To use apel, put the following setup into your ~/.emacs:
|
||||
|
2
editors/apel-emacs/scripts/configure
vendored
2
editors/apel-emacs/scripts/configure
vendored
@ -4,7 +4,7 @@ for i in ${TARGETS}
|
||||
do
|
||||
if [ -f ${WRKDIR}/${i}.in ]; then
|
||||
cat ${WRKDIR}/${i}.in | /usr/bin/sed \
|
||||
-e "s;@@PREFIX@@;${PREFIX};g" \
|
||||
-e "s;@@LOCALBASE@@;${LOCALBASE};g" \
|
||||
-e "s;@@EMACS_LIBDIR@@;${EMACS_LIBDIR};g" \
|
||||
-e "s;@@EMACS_VER@@;${EMACS_VER};g" \
|
||||
-e "s;@@EMACS_LIBDIR_WITH_VER@@;${EMACS_LIBDIR_WITH_VER};g" \
|
||||
|
@ -5,12 +5,12 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= apel-${EMACS_PORT_NAME}
|
||||
PORTNAME= apel
|
||||
PORTVERSION= ${APEL_VER}
|
||||
CATEGORIES= editors elisp
|
||||
MASTER_SITES= ftp://ftp.etl.go.jp/pub/mule/apel/ \
|
||||
ftp://ftp.center.osaka-u.ac.jp/mule/apel/
|
||||
DISTNAME= apel-${APEL_VER}
|
||||
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
||||
|
||||
MAINTAINER?= shige@FreeBSD.org
|
||||
|
||||
@ -31,30 +31,30 @@ EMACS_PORT_NAME= emacs
|
||||
REQUIRE_SETUPEL= YES
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# target name for make build
|
||||
ALL_TARGET?= elc
|
||||
# environments
|
||||
SCRIPTS_ENV+= TARGETS="${APEL_SETUPEL}"
|
||||
PLIST_SUB+= APELDOCDIR=${APELDOCDIR} APEL_SETUPEL=${APEL_SETUPEL}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(EMACS_PORT_NAME)
|
||||
# depends on custom: emacs-19.34 or mule-19.34
|
||||
.if (${EMACS_VER} == "19.34")
|
||||
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT_NAME}
|
||||
.endif
|
||||
.if defined(EMACS_PACKAGESDIR)
|
||||
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
|
||||
.endif
|
||||
.else
|
||||
.BEGIN:
|
||||
@${ECHO} "Error: Bad port."
|
||||
@${ECHO} "You must define EMACS_PORT_NAME."
|
||||
@${FALSE}
|
||||
.endif
|
||||
|
||||
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
||||
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
|
||||
TARGETS="${APEL_SETUPEL}"
|
||||
PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
||||
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
|
||||
APELDOCDIR=${APELDOCDIR} APEL_SETUPEL=${APEL_SETUPEL}
|
||||
MAKE_FLAGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD}
|
||||
|
||||
pre-configure:
|
||||
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
|
||||
@ -87,32 +87,32 @@ post-install:
|
||||
#
|
||||
mkdir-site-packages:
|
||||
@(for i in ${EMACS_PACKAGES_SUBDIRS} ; do \
|
||||
${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/$${i} ; \
|
||||
${MKDIR} ${LOCALBASE}/${EMACS_PACKAGESDIR}/$${i} ; \
|
||||
done)
|
||||
|
||||
pkg-el-install:
|
||||
@(if [ -f ${FILESDIR}/_pkg.el ] ; then \
|
||||
${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME} ;\
|
||||
${MKDIR} ${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME} ;\
|
||||
${INSTALL_DATA} ${FILESDIR}/_pkg.el \
|
||||
${PREFIX}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME}/_pkg.el ;\
|
||||
${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME}/_pkg.el ;\
|
||||
fi)
|
||||
|
||||
doc-install:
|
||||
@${MKDIR} ${PREFIX}/${APELDOCDIR}
|
||||
@${MKDIR} ${LOCALBASE}/${APELDOCDIR}
|
||||
@(cd ${WRKSRC} ; \
|
||||
for i in ChangeLog README.* ; do \
|
||||
${INSTALL_DATA} $${i} ${PREFIX}/${APELDOCDIR}/ ; \
|
||||
${INSTALL_DATA} $${i} ${LOCALBASE}/${APELDOCDIR}/ ; \
|
||||
done)
|
||||
|
||||
setupel-install:
|
||||
@${INSTALL_DATA} ${WRKDIR}/${APEL_SETUPEL} \
|
||||
${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
||||
${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
||||
|
||||
manifest-install:
|
||||
@${RM} -f ${WRKDIR}/${MANIFEST}
|
||||
@${CAT} ${PKGDIR}/PLIST | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \
|
||||
${SED} -e "s;^%%EMACS_PACKAGESDIR%%/;;" > ${WRKDIR}/${MANIFEST}
|
||||
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
||||
${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/
|
||||
${LOCALBASE}/${EMACS_PACKAGESDIR}/pkginfo/
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -3,7 +3,7 @@
|
||||
;; -- by shige@FreeBSD.ORG
|
||||
|
||||
(setq load-path (append '(
|
||||
"@@PREFIX@@/@@EMACS_LIBDIR@@/site-lisp/apel"
|
||||
"@@PREFIX@@/@@EMACS_LIBDIR_WITH_VER@@/site-lisp/emu"
|
||||
"@@LOCALBASE@@/@@EMACS_LIBDIR@@/site-lisp/apel"
|
||||
"@@LOCALBASE@@/@@EMACS_LIBDIR_WITH_VER@@/site-lisp/emu"
|
||||
) load-path))
|
||||
(provide 'apel-setupel)
|
||||
|
@ -26,8 +26,8 @@ APEL is programed by MORIOKA Tomohiko <tomo@m17n.org>.
|
||||
- static: utility for static evaluation
|
||||
|
||||
APEL is installed the following directory tree:
|
||||
${PREFIX}/share/emacs/site-lisp/apel/ --- apel
|
||||
${PREFIX}/share/emacs/19.34/site-lisp/emu/ --- emu
|
||||
${LOCALBASE}/share/emacs/site-lisp/apel/ --- apel
|
||||
${LOCALBASE}/share/emacs/19.34/site-lisp/emu/ --- emu
|
||||
|
||||
|
||||
To use apel, put the following setup into your ~/.emacs:
|
||||
|
2
editors/apel/scripts/configure
vendored
2
editors/apel/scripts/configure
vendored
@ -4,7 +4,7 @@ for i in ${TARGETS}
|
||||
do
|
||||
if [ -f ${WRKDIR}/${i}.in ]; then
|
||||
cat ${WRKDIR}/${i}.in | /usr/bin/sed \
|
||||
-e "s;@@PREFIX@@;${PREFIX};g" \
|
||||
-e "s;@@LOCALBASE@@;${LOCALBASE};g" \
|
||||
-e "s;@@EMACS_LIBDIR@@;${EMACS_LIBDIR};g" \
|
||||
-e "s;@@EMACS_VER@@;${EMACS_VER};g" \
|
||||
-e "s;@@EMACS_LIBDIR_WITH_VER@@;${EMACS_LIBDIR_WITH_VER};g" \
|
||||
|
Loading…
Reference in New Issue
Block a user