summaryrefslogtreecommitdiff
path: root/editors/custom-emacs
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-07-17 02:40:09 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-07-17 02:40:09 +0000
commitc8b90f0c69eca289aac8ce0ed9eb73c76f0db797 (patch)
treeabb9add9d02fcc3c474844d34fd4154fe2e4d713 /editors/custom-emacs
parentFix texinfo.el(included in xemacs-packages) dependency. (diff)
Convert into EMACS_PORT_NAME style port.
Notes
Notes: svn path=/head/; revision=30729
Diffstat (limited to 'editors/custom-emacs')
-rw-r--r--editors/custom-emacs/Makefile40
-rw-r--r--editors/custom-emacs/pkg-descr2
2 files changed, 15 insertions, 27 deletions
diff --git a/editors/custom-emacs/Makefile b/editors/custom-emacs/Makefile
index ea10d6836f85..13621382eea9 100644
--- a/editors/custom-emacs/Makefile
+++ b/editors/custom-emacs/Makefile
@@ -5,12 +5,12 @@
# $FreeBSD$
#
-PORTNAME= custom-${EMACS_PORT}
+PORTNAME= custom
PORTVERSION= ${CUSTOM_VER}
CATEGORIES= editors elisp
MASTER_SITES= ftp://ftp.dina.kvl.dk/pub/Staff/Per.Abrahamsen/custom/ \
ftp://ftp.win.ne.jp/pub/word/elisp/
-DISTNAME= custom-${CUSTOM_VER}
+PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER?= shige@FreeBSD.org
@@ -24,29 +24,17 @@ CUSTOM_ELS= cus-edit.el cus-face.el custom.el \
PORTCLASS?= master
.if (${PORTCLASS} == "master")
-EMACS_NAME= emacs
-EMACS_PORT= emacs
-EMACS_VER= 19.34
-EMACS_LIBDIR= share/${EMACS_NAME}
-HAVE_COMMON_PORT= NO
+EMACS_PORT_NAME= emacs
.endif
-.if defined(EMACS_PORT)
-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
-.else
-RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
-.endif
-SCRIPTS_ENV= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER}
-PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
- CUSTOMDOCDIR=${CUSTOMDOCDIR}
-MAKE_FLAGS= EMACS=${EMACS_CMD}
-.else
+PLIST_SUB= CUSTOMDOCDIR=${CUSTOMDOCDIR}
+
+.include <bsd.port.pre.mk>
+
+.if !defined(EMACS_PORT_NAME)
.BEGIN:
@${ECHO} "Error: Bad port."
- @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${ECHO} "You must define EMACS_PORT_NAME."
@${FALSE}
.endif
@@ -54,15 +42,15 @@ MAKE_FLAGS= EMACS=${EMACS_CMD}
do-install:
@for i in ${CUSTOM_ELS} ; do \
${INSTALL_DATA} ${WRKSRC}/$${i} \
- ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/ ; \
+ ${LOCALBASE}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/ ; \
${INSTALL_DATA} ${WRKSRC}/$${i}c \
- ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/ ; \
+ ${LOCALBASE}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/ ; \
done
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/${CUSTOMDOCDIR}
+ @${MKDIR} ${LOCALBASE}/${CUSTOMDOCDIR}
@for i in ChangeLog TODO ; do \
- ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/${CUSTOMDOCDIR} ; \
+ ${INSTALL_DATA} ${WRKSRC}/$${i} ${LOCALBASE}/${CUSTOMDOCDIR} ; \
done
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/editors/custom-emacs/pkg-descr b/editors/custom-emacs/pkg-descr
index 4c959d14f619..3f89edd6be5e 100644
--- a/editors/custom-emacs/pkg-descr
+++ b/editors/custom-emacs/pkg-descr
@@ -19,7 +19,7 @@ How to use:
M-x customize
Installed at:
- ${PREFIX}/share/emacs/19.34/site-lisp/
+ ${LOCALBASE}/share/emacs/19.34/site-lisp/
WWW: http://www.dina.kvl.dk/~abraham/custom/