Convert into EMACS_PORT_NAME style port.

Submitted by:	OKAZAKI Tetsurou <okazaki@be.to>
This commit is contained in:
Shigeyuki Fukushima 2000-07-12 15:57:14 +00:00
parent 6c42015458
commit e0b80a2780
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30529
7 changed files with 39 additions and 85 deletions

View File

@ -5,58 +5,43 @@
# $FreeBSD$
#
PORTNAME= psgml-${EMACS_PORT}
PORTNAME= psgml
PORTVERSION= ${PSGML_VER}
CATEGORIES= editors elisp
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/sgml/
DISTNAME= psgml-${PSGML_VER}
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER?= shige@FreeBSD.org
# distfile version
PSGML_VER= 1.2.1
PSGML_STARTUPEL= psgml-startup.el
CATALOG= ${PREFIX}/share/sgml/catalog
CATALOG= ${LOCALBASE}/share/sgml/catalog
SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}"
PLIST_SUB= PSGML_STARTUPEL=${PSGML_STARTUPEL}
# This is a master port.
PORTCLASS?= master
.if (${PORTCLASS} == "master")
EMACS_NAME= emacs
EMACS_PORT= emacs
EMACS_VER= 19.34
EMACS_LIBDIR= share/${EMACS_NAME}
EMACS_PORT_NAME= emacs
.endif
# if RUN_DEPENDS emacs port name has the suffix `-common'
.if !defined(HAS_COMMON_PORT)
HAS_COMMON_PORT= NO
.endif
.include <bsd.port.pre.mk>
#
# emacs ports setup
#
.if defined(EMACS_PORT)
EMACS_CMD?= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
.if defined(HAS_COMMON_PORT) && (${HAS_COMMON_PORT} == "YES")
RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
.else
RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
.endif
.if defined(EMACS_PORT_NAME)
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --lispdir=${PREFIX}/${EMACS_LIBDIR}/site-lisp/psgml \
--infodir=${PREFIX}/info
CONFIGURE_ARGS= --lispdir=${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/psgml \
--infodir=${LOCALBASE}/info
CONFIGURE_ENV= EMACS=${EMACS_CMD}
MAKE_FLAGS= EMACS=${EMACS_CMD}
SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}" \
EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER}
PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
PSGML_STARTUPEL=${PSGML_STARTUPEL}
.else
.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
@ -68,9 +53,9 @@ RUN_DEPENDS+= ${CATALOG}:${PORTSDIR}/textproc/dtd-catalogs
pre-configure:
(cd ${WRKSRC} ; \
for i in psgml.el psgml.texi ; do \
${RM} -f $${i}.in ; \
${MV} $${i} $${i}.in ; \
${CAT} $${i}.in | ${SED} -e "s;@prefix@;${PREFIX};g" > $${i} ; \
${RM} -f $${i}.in; \
${MV} $${i} $${i}.in; \
${CAT} $${i}.in | ${SED} -e "s;@prefix@;${LOCALBASE};g" > $${i}; \
done)
${CP} ${FILESDIR}/${PSGML_STARTUPEL}.in ${WRKDIR}
@ -79,6 +64,6 @@ post-install:
${MAKE} install-info ; \
)
@${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \
${PREFIX}/${EMACS_LIBDIR}/site-lisp
${LOCALBASE}/${EMACS_LIBDIR}/site-lisp
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -13,10 +13,7 @@ PORTCLASS= slave
MASTERDIR= ${.CURDIR}/../psgml-emacs
# emacs port setup
EMACS_NAME= emacs
EMACS_PORT= emacs20
EMACS_VER= 20.7
EMACS_LIBDIR= share/${EMACS_NAME}
EMACS_PORT_NAME= emacs20
# pkg/* files are used in ${.CURDIR}
PKGDIR= ${.CURDIR}/pkg

View File

@ -11,7 +11,7 @@ editing of attribute values in a separate window with information about
types and defaults, and structure based editing.
PSGML is installed the following directory tree:
${PREFIX}/share/emacs/site-lisp/psgml/
${LOCALBASE}/share/emacs/site-lisp/psgml/
To use psgml, put the following setup into your ~/.emacs:

View File

@ -13,13 +13,7 @@ PORTCLASS= slave
MASTERDIR= ${.CURDIR}/../../editors/psgml-emacs
# emacs port setup
EMACS_NAME= mule
EMACS_PORT= mule
EMACS_VER= 19.34
EMACS_LIBDIR= share/${EMACS_NAME}
# whether emacs has a *-common port
HAS_COMMON_PORT= YES
EMACS_PORT_NAME= mule
# pkg/* files are used in ${.CURDIR}
PKGDIR= ${.CURDIR}/pkg

View File

@ -11,7 +11,7 @@ editing of attribute values in a separate window with information about
types and defaults, and structure based editing.
PSGML is installed the following directory tree:
${PREFIX}/share/mule/site-lisp/psgml/
${LOCALBASE}/share/mule/site-lisp/psgml/
To use psgml, put the following setup into your ~/.emacs:

View File

@ -13,16 +13,9 @@ PORTCLASS= slave
MASTERDIR= ${.CURDIR}/../psgml-emacs
# emacs port setup
EMACS_NAME= xemacs
EMACS_PORT= xemacs21-mule
EMACS_CMD= ${PREFIX}/bin/${EMACS_PORT}
EMACS_VER= 21.1.10
EMACS_LIBDIR= lib/xemacs
EMACS_PORT_NAME= xemacs21-mule
# pkg/* files are used in ${.CURDIR}
PKGDIR= ${.CURDIR}/pkg
# whether emacs has a *-common port
HAS_COMMON_PORT= YES
.include <${MASTERDIR}/Makefile>

View File

@ -5,58 +5,43 @@
# $FreeBSD$
#
PORTNAME= psgml-${EMACS_PORT}
PORTNAME= psgml
PORTVERSION= ${PSGML_VER}
CATEGORIES= editors elisp
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/sgml/
DISTNAME= psgml-${PSGML_VER}
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER?= shige@FreeBSD.org
# distfile version
PSGML_VER= 1.2.1
PSGML_STARTUPEL= psgml-startup.el
CATALOG= ${PREFIX}/share/sgml/catalog
CATALOG= ${LOCALBASE}/share/sgml/catalog
SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}"
PLIST_SUB= PSGML_STARTUPEL=${PSGML_STARTUPEL}
# This is a master port.
PORTCLASS?= master
.if (${PORTCLASS} == "master")
EMACS_NAME= emacs
EMACS_PORT= emacs
EMACS_VER= 19.34
EMACS_LIBDIR= share/${EMACS_NAME}
EMACS_PORT_NAME= emacs
.endif
# if RUN_DEPENDS emacs port name has the suffix `-common'
.if !defined(HAS_COMMON_PORT)
HAS_COMMON_PORT= NO
.endif
.include <bsd.port.pre.mk>
#
# emacs ports setup
#
.if defined(EMACS_PORT)
EMACS_CMD?= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
.if defined(HAS_COMMON_PORT) && (${HAS_COMMON_PORT} == "YES")
RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
.else
RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
.endif
.if defined(EMACS_PORT_NAME)
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --lispdir=${PREFIX}/${EMACS_LIBDIR}/site-lisp/psgml \
--infodir=${PREFIX}/info
CONFIGURE_ARGS= --lispdir=${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/psgml \
--infodir=${LOCALBASE}/info
CONFIGURE_ENV= EMACS=${EMACS_CMD}
MAKE_FLAGS= EMACS=${EMACS_CMD}
SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}" \
EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER}
PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
PSGML_STARTUPEL=${PSGML_STARTUPEL}
.else
.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
@ -68,9 +53,9 @@ RUN_DEPENDS+= ${CATALOG}:${PORTSDIR}/textproc/dtd-catalogs
pre-configure:
(cd ${WRKSRC} ; \
for i in psgml.el psgml.texi ; do \
${RM} -f $${i}.in ; \
${MV} $${i} $${i}.in ; \
${CAT} $${i}.in | ${SED} -e "s;@prefix@;${PREFIX};g" > $${i} ; \
${RM} -f $${i}.in; \
${MV} $${i} $${i}.in; \
${CAT} $${i}.in | ${SED} -e "s;@prefix@;${LOCALBASE};g" > $${i}; \
done)
${CP} ${FILESDIR}/${PSGML_STARTUPEL}.in ${WRKDIR}
@ -79,6 +64,6 @@ post-install:
${MAKE} install-info ; \
)
@${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \
${PREFIX}/${EMACS_LIBDIR}/site-lisp
${LOCALBASE}/${EMACS_LIBDIR}/site-lisp
.include <bsd.port.mk>
.include <bsd.port.post.mk>