aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pcl-cvs-emacs
diff options
context:
space:
mode:
authorokazaki <okazaki@FreeBSD.org>2000-12-13 07:42:21 +0800
committerokazaki <okazaki@FreeBSD.org>2000-12-13 07:42:21 +0800
commite469a89a41e1e9706dceae3b63ae7460c4da71aa (patch)
treef5e62cc1ebfb9159e408e68a46f46858418b7f15 /devel/pcl-cvs-emacs
parent40572db3a1bd0d66ae45f442c5884ceb1a907714 (diff)
downloadfreebsd-ports-gnome-e469a89a41e1e9706dceae3b63ae7460c4da71aa.tar.gz
freebsd-ports-gnome-e469a89a41e1e9706dceae3b63ae7460c4da71aa.tar.zst
freebsd-ports-gnome-e469a89a41e1e9706dceae3b63ae7460c4da71aa.zip
Add port for PCL-CVS, an Emacs-based front-end to CVS, for Emacs19.
PR: ports/22574 Submitted by: OKAZAKI Tetsurou <okazaki@be.to> Approved by: knu (My mentor)
Diffstat (limited to 'devel/pcl-cvs-emacs')
-rw-r--r--devel/pcl-cvs-emacs/Makefile112
-rw-r--r--devel/pcl-cvs-emacs/distinfo3
-rw-r--r--devel/pcl-cvs-emacs/pkg-comment1
-rw-r--r--devel/pcl-cvs-emacs/pkg-descr10
-rw-r--r--devel/pcl-cvs-emacs/pkg-message4
-rw-r--r--devel/pcl-cvs-emacs/pkg-plist30
6 files changed, 160 insertions, 0 deletions
diff --git a/devel/pcl-cvs-emacs/Makefile b/devel/pcl-cvs-emacs/Makefile
new file mode 100644
index 000000000000..b847947597d0
--- /dev/null
+++ b/devel/pcl-cvs-emacs/Makefile
@@ -0,0 +1,112 @@
+# New ports collection makefile for: pcl-cvs for GNU Emacs 19
+# Date created: 18 Apr 2000
+# Whom: OKAZAKI Tetsurou
+#
+# $FreeBSD$
+#
+
+PORTNAME= pcl-cvs
+PORTVERSION= 2.9.9
+CATEGORIES= devel elisp
+MASTER_SITES= ftp://rum.cs.yale.edu/pub/monnier/pcl-cvs/
+PKGNAMESUFFIX= -${EMACS_PORT_NAME}
+DIST_SUBDIR= pcl-cvs
+
+PATCH_SITES= ${MASTER_SITE_LOCAL}
+PATCH_SITE_SUBDIR= okazaki/pcl-cvs
+PATCHFILES= pcl-cvs-2.9.9-compat.patch
+
+MAINTAINER?= okazaki@FreeBSD.org
+
+# startup el filename
+PORT_SETUPEL= pcl-cvs-setup.el
+# document install directory by install-doc target
+PORTDOCDIR?= share/doc/pcl-cvs
+
+# This is a master port.
+PORTCLASS?= master
+
+# emacs port setup
+.if (${PORTCLASS} == "master")
+EMACS_PORT_NAME= emacs
+.endif
+
+# target name for make build
+ALL_TARGET?= elcfiles info
+INSTALL_TARGET?= install_el install_elc install_info
+INSTALL_TARGET+= install_startup
+
+.include <bsd.port.pre.mk>
+
+.if ${EMACS_VER} == "19.34"
+EASY_MMODE= easy-mmode.el
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES= ${EXTRACT_ONLY} ${EASY_MMODE}
+ELIB_SETUP= '(if (locate-library "elib-startup") (require '\''elib-startup))'
+.endif
+
+PLIST_SUB+= PORTDOCDIR=${PORTDOCDIR} \
+ PORT_SETUPEL=${PORT_SETUPEL}
+MAKE_ARGS+= EMACS="${EMACS_CMD} -q --no-site-file" \
+ CP="${INSTALL_DATA}" \
+ MAKEINFO="makeinfo --no-split" \
+ MKDIR="${MKDIR}" \
+ prefix="${PREFIX}" \
+ lispdir="${PREFIX}/${EMACS_SITE_LISPDIR}" \
+ startupfile="${PORT_SETUPEL}"
+
+.if defined(EMACS_PORT_NAME)
+ELIB_PORTDIR= ${PORTSDIR}/devel/elib-${EMACS_PORT_NAME}
+BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/elib/cookie.el:${ELIB_PORTDIR}
+RUN_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/elib/cookie.el:${ELIB_PORTDIR}
+.if (${EMACS_VER} == "19.34")
+# depends on custom: emacs-19.34 or mule-2.3 based on emacs-19.34
+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}
+.else
+# diff-mode.el does not run on emacs-19.34
+RUN_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/diff-mode.el:${PORTSDIR}/textproc/diff-mode.el
+.endif
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_PORT_NAME."
+ @${FALSE}
+.endif
+
+post-extract:
+.if defined(EASY_MMODE)
+ ${CP} ${_DISTDIR}/${EASY_MMODE} ${WRKSRC}
+.endif
+
+pre-build:
+ ${RM} ${WRKSRC}/pcl-cvs.info*
+
+post-build:
+ ${ECHO} "(provide 'pcl-cvs-startup)" >> ${WRKSRC}/pcl-cvs-startup.el
+
+pre-install:
+.if defined(ELIB_SETUP) && !empty(ELIB_SETUP)
+ ${ECHO} ${ELIB_SETUP} >> ${INSTALL_WRKSRC}/${PORT_SETUPEL}
+.endif
+
+post-install:
+ ${ECHO} "(provide 'pcl-cvs-setup)" >> ${INSTALL_WRKSRC}/${PORT_SETUPEL}
+ @${MAKE} setupel-install
+.if !defined(NOPORTDOCS)
+ @${MAKE} doc-install
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+doc-install:
+ ${MKDIR} ${PREFIX}/${PORTDOCDIR}
+ cd ${INSTALL_WRKSRC} && \
+ for i in ChangeLog FAQ NEWS README TODO; do \
+ ${INSTALL_DATA} $${i} ${PREFIX}/${PORTDOCDIR}/ ; \
+ done
+
+setupel-install:
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/${PORT_SETUPEL} \
+ ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/
+
+.include <bsd.port.post.mk>
diff --git a/devel/pcl-cvs-emacs/distinfo b/devel/pcl-cvs-emacs/distinfo
new file mode 100644
index 000000000000..53a671b8ff7f
--- /dev/null
+++ b/devel/pcl-cvs-emacs/distinfo
@@ -0,0 +1,3 @@
+MD5 (pcl-cvs/pcl-cvs-2.9.9.tar.gz) = b4511b9eae0bf2ee033f37705cb5f1f9
+MD5 (pcl-cvs/easy-mmode.el) = 59baa701f3fafcf2a8f47ea58785722b
+MD5 (pcl-cvs/pcl-cvs-2.9.9-compat.patch) = 42d7926bde6eb3f9375aa511a4da4aa5
diff --git a/devel/pcl-cvs-emacs/pkg-comment b/devel/pcl-cvs-emacs/pkg-comment
new file mode 100644
index 000000000000..468db645e117
--- /dev/null
+++ b/devel/pcl-cvs-emacs/pkg-comment
@@ -0,0 +1 @@
+An Emacs-based front-end to CVS
diff --git a/devel/pcl-cvs-emacs/pkg-descr b/devel/pcl-cvs-emacs/pkg-descr
new file mode 100644
index 000000000000..e4cecd631c03
--- /dev/null
+++ b/devel/pcl-cvs-emacs/pkg-descr
@@ -0,0 +1,10 @@
+PCL-CVS is a front-end to CVS. It integrates the most frequently
+used CVS commands into emacs.
+
+For VC users, PCL-CVS can be thought of as a VC-dired specially designed
+for CVS. PCL-CVS is not a replacement for VC and is supposed to interact
+well with it. It provides a global view of your project and allows
+execution of cvs commands on several files at a time.
+
+ PCL-CVS is installed the following directory tree:
+ PREFIX/share/emacs/site-lisp/pcl-cvs/ --- pcl-cvs
diff --git a/devel/pcl-cvs-emacs/pkg-message b/devel/pcl-cvs-emacs/pkg-message
new file mode 100644
index 000000000000..c79ec570fe5a
--- /dev/null
+++ b/devel/pcl-cvs-emacs/pkg-message
@@ -0,0 +1,4 @@
+To use pcl-cvs, put the following setup into your ~/.emacs:
+
+ (require 'pcl-cvs-setup)
+
diff --git a/devel/pcl-cvs-emacs/pkg-plist b/devel/pcl-cvs-emacs/pkg-plist
new file mode 100644
index 000000000000..b115a7a68caf
--- /dev/null
+++ b/devel/pcl-cvs-emacs/pkg-plist
@@ -0,0 +1,30 @@
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-compat.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-compat.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-edit.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-edit.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-log.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-log.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-status.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/cvs-status.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-defs.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-defs.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-info.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-info.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-parse.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-startup.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-util.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs-util.elc
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs.el
+%%EMACS_LIBDIR%%/site-lisp/pcl-cvs/pcl-cvs.elc
+%%EMACS_LIBDIR_WITH_VER%%/site-lisp/%%PORT_SETUPEL%%
+@dirrm %%EMACS_LIBDIR%%/site-lisp/pcl-cvs
+%%PORTDOCDIR%%/ChangeLog
+%%PORTDOCDIR%%/FAQ
+%%PORTDOCDIR%%/NEWS
+%%PORTDOCDIR%%/README
+%%PORTDOCDIR%%/TODO
+@dirrm %%PORTDOCDIR%%
+@unexec install-info --delete %D/info/pcl-cvs.info %D/info/dir
+info/pcl-cvs.info
+@exec install-info %D/info/pcl-cvs.info %D/info/dir