1998-08-14 00:16:07 +00:00
|
|
|
# New ports collection makefile for: YaTeX
|
1998-11-20 18:19:10 +00:00
|
|
|
# Date created: 98/11/17
|
1999-05-01 04:03:48 +00:00
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
1998-08-14 00:16:07 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-08-14 00:16:07 +00:00
|
|
|
#
|
|
|
|
|
2000-04-13 11:22:38 +00:00
|
|
|
PORTNAME= yatex
|
2012-08-04 16:15:50 +00:00
|
|
|
PORTVERSION= 1.76
|
1998-11-15 12:21:56 +00:00
|
|
|
CATEGORIES?= print elisp
|
2004-07-05 19:40:12 +00:00
|
|
|
MASTER_SITES= http://www.yatex.org/
|
2002-06-10 23:33:48 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
1998-08-14 00:16:07 +00:00
|
|
|
|
2004-05-05 10:45:42 +00:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2008-10-05 02:46:12 +00:00
|
|
|
COMMENT= Yet Another LaTeX mode and html mode on Emacs
|
1998-08-14 00:16:07 +00:00
|
|
|
|
2008-10-05 02:46:12 +00:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
DESCR= ${PKGDIR}/pkg-descr
|
2002-06-10 23:33:48 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
|
2008-10-05 02:46:12 +00:00
|
|
|
SUB_FILES= pkg-install pkg-deinstall pkg-message yatex-startup.el
|
|
|
|
SUB_LIST= TARGETNAME=${TARGETNAME} \
|
|
|
|
VERSION=${PORTVERSION} \
|
|
|
|
BASENAME=${BASENAME} \
|
|
|
|
CAT=${CAT} \
|
|
|
|
CP=${CP} \
|
|
|
|
ECHO=${ECHO_CMD} \
|
|
|
|
GREP=${GREP} \
|
|
|
|
RM=${RM} \
|
|
|
|
SED=${SED} \
|
|
|
|
TOUCH=${TOUCH} \
|
|
|
|
DO_NADA=${DO_NADA} \
|
2012-08-04 16:15:50 +00:00
|
|
|
INFODIR=${PREFIX}/${INFO_PATH} \
|
2008-10-05 02:46:12 +00:00
|
|
|
ELISPDIR=${ELISPDIR} \
|
|
|
|
INFOFILES=${INFOFILES} \
|
|
|
|
INFONODES="${INFONODES}" \
|
|
|
|
INFONODEEXPS="${INFONODEEXPS}" \
|
|
|
|
DIRSECTION="${DIRSECTION}" \
|
|
|
|
EMACS_NAME=${EMACS_NAME}
|
2012-08-04 16:15:50 +00:00
|
|
|
USE_DOS2UNIX= yes
|
- Fix possibility of "infinite make fork" when "Registering install for ..."
EMACS ports. [1]
- Allow building a port as root using an NFS-mounted /usr/ports if the
server maps root to a UID other than root. [2]
- Make 'BROKEN' and 'IGNORED' ports exit their "make install" with a fail
status rather than success. [3]
- Improve behavior when dealing with versioned dependencies. [4]
- Fix false positives in check-conflicts target. [5]
- Remove obsolete bzip2 code. [6]
- Add physical category net-p2p. [7]
- Don't fetch INDEXFILE if not necessary; respect FETCH_ENV. [8], [11]
- INDEX can now be moved outside of ports tree. [9]
- Add ghostscript-gpl. [10]
- Remove obsolete USE_MESA. [12]
- Force pkg_install tools from ports on FreeBSD 4.10 and older. [13]
- Document ALWAYS_KEEP_DISTFILES. [14]
- Remove USE_REINPLACE from bsd.port.mk USE_DOS2UNIX patch. [15]
PR: ports/37596 [1], ports/57259 [2], ports/63216 [3],
ports/89448 [4], ports/89710 [5], ports/88996 [6],
ports/89260 [7], ports/89363 [8], ports/89809 [9],
ports/89853 [10], ports/91086 [11], ports/91710 [12],
ports/91727 [13], ports/92111 [14], ports/92124 [15]
Submitted by: Jay Sachs <jay at eziba dot com> [1], sem [1, 3, 8, 12],
Andrew Heybey <ath at niksun dot com> [2], Jamie Jones
<jamie at thompson dot bishopston dot net>, tobez [4], Mark
Andrews <Mark_Andrews at isc dot org> [5], edwin [6, 11, 15],
pav [7, 13], Peter Jeremy <PeterJeremy at optushome dot com
dot au> [9], Ulrich Spoerlein <q at galgenberg dot net> [10],
netchild [11], erwin [14]
Reviewed by: kris, clement (partially)
2006-01-28 02:11:35 +00:00
|
|
|
USE_EMACS= yes
|
2002-06-10 23:33:48 +00:00
|
|
|
EMACS_NO_RUN_DEPENDS=YES
|
2008-10-05 02:46:12 +00:00
|
|
|
EMACS_MASTERDIR_PKGFILES=YES
|
|
|
|
EMACS_PACKAGESDIR=${EMACS_LIBDIR}/site-packages
|
1999-03-17 06:57:38 +00:00
|
|
|
|
2002-06-10 23:33:48 +00:00
|
|
|
TARGETNAME= YaTeX
|
|
|
|
DIRSECTION= The Emacs editor and associated tools
|
2008-10-05 02:46:12 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21)
|
2008-10-05 02:46:12 +00:00
|
|
|
EMACS_NO_BUILD_DEPENDS= YES
|
2012-08-04 16:15:50 +00:00
|
|
|
INFO_PATH= ${EMACS_PACKAGESDIR}/info
|
2000-09-18 02:05:45 +00:00
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
|
|
|
|
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
2000-10-08 04:00:10 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.xemacs
|
1999-09-27 13:48:10 +00:00
|
|
|
MANIFEST= MANIFEST.yatex
|
2008-10-05 02:46:12 +00:00
|
|
|
HELP= help/YATEXHLP.eng
|
|
|
|
INFOFILES= yatexe:yahtmle
|
|
|
|
INFONODES= YaTeX:yahtml
|
|
|
|
INFONODEEXPS= Yet Another tex-mode for Emacs.:Yet Another HTML mode.
|
2000-09-18 02:05:45 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == xemacs21-mule)
|
2012-08-04 16:15:50 +00:00
|
|
|
INFO_PATH= ${EMACS_PACKAGESDIR}/info
|
2000-09-18 02:05:45 +00:00
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
|
|
|
|
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
2000-10-08 04:00:10 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.xemacs-mule
|
1999-09-27 13:48:10 +00:00
|
|
|
MANIFEST= MANIFEST.yatex
|
2008-10-05 02:46:12 +00:00
|
|
|
HELP= help/YATEXHLP.jp help/YATEXHLP.eng
|
|
|
|
PORTDOCS= 00readme readme.meadow.j yatex.new yatexj.tex yatex.ref \
|
|
|
|
yahtmlj.tex htmlqa yatexadd.doc yatexgen.doc qanda
|
|
|
|
INFOFILES= yatexj:yatexe:yahtmlj:yahtmle
|
|
|
|
INFONODES= YaTeX-jp:YaTeX:yahtml-jp:yahtml
|
|
|
|
INFONODEEXPS= Yet Another tex-mode for Emacs. (Japanese):Yet Another tex-mode for Emacs.:Yet Another HTML mode. (Japanese):Yet Another HTML mode.
|
1999-03-17 06:57:38 +00:00
|
|
|
.else
|
2008-10-05 02:46:12 +00:00
|
|
|
EMACS_NO_BUILD_DEPENDS= YES
|
2000-10-08 04:00:10 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.emacs
|
2000-09-18 02:05:45 +00:00
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
|
|
|
HELPDIR= ${ELISPDIR}
|
1998-08-14 00:16:07 +00:00
|
|
|
HELP= help/YATEXHLP.jp help/YATEXHLP.eng
|
2008-10-05 02:46:12 +00:00
|
|
|
PORTDOCS= 00readme readme.meadow.j yatex.new yatexj.tex yatex.ref \
|
|
|
|
yahtmlj.tex htmlqa yatexadd.doc yatexgen.doc qanda
|
2001-06-30 07:55:47 +00:00
|
|
|
INFOFILES= yatexj:yatexe:yahtmlj:yahtmle
|
|
|
|
INFONODES= YaTeX-jp:YaTeX:yahtml-jp:yahtml
|
|
|
|
INFONODEEXPS= Yet Another tex-mode for Emacs. (Japanese):Yet Another tex-mode for Emacs.:Yet Another HTML mode. (Japanese):Yet Another HTML mode.
|
1998-08-14 00:16:07 +00:00
|
|
|
.endif
|
2008-10-05 02:46:12 +00:00
|
|
|
|
|
|
|
PORTDOCS+= yatexe.tex htmlqa.eng yahtmle.tex yatexref.eng qanda.eng
|
1998-08-14 00:16:07 +00:00
|
|
|
EL_FILES= comment.el yatex.el yatexadd.el yatexgen.el \
|
|
|
|
yatexenv.el yatexlib.el \
|
|
|
|
yatexmth.el yatexhks.el yatexhlp.el yatexprc.el \
|
2004-05-05 10:45:42 +00:00
|
|
|
yatexm-o.el yatexsec.el yatexpkg.el yatexhie.el yahtml.el \
|
1998-08-14 00:16:07 +00:00
|
|
|
yatex19.el
|
|
|
|
|
|
|
|
do-build:
|
2008-10-05 02:46:12 +00:00
|
|
|
@${DO_NADA}
|
2002-06-10 23:33:48 +00:00
|
|
|
# For XEmacs, yatexj (a Japanese info file) should be remade.
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21-mule)
|
2008-11-07 17:08:52 +00:00
|
|
|
cd ${WRKSRC}/docs && \
|
2002-06-10 23:33:48 +00:00
|
|
|
${SETENV} LANG=ja_JP.eucJP ${EMACS_CMD} -no-site-file -no-init-file \
|
2008-11-07 17:08:52 +00:00
|
|
|
-batch -l texinfmt -f batch-texinfo-format yatexj.tex
|
1998-08-14 00:16:07 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2012-08-04 16:15:50 +00:00
|
|
|
@${MKDIR} ${ELISPDIR}/yatex ${HELPDIR} ${PREFIX}/${INFO_PATH}
|
2008-10-05 02:46:12 +00:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} ${EL_FILES} ${ELISPDIR}/yatex && \
|
|
|
|
${INSTALL_DATA} ${HELP} ${HELPDIR}
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21) || (${EMACS_PORT_NAME} == xemacs21-mule)
|
2008-10-05 02:46:12 +00:00
|
|
|
for F in ${INFOFILES:S,:, ,g}; do \
|
2012-08-04 16:15:50 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/$${F} \
|
|
|
|
${PREFIX}/${INFO_PATH}/$${F}.info; \
|
1999-09-29 07:31:01 +00:00
|
|
|
done
|
1999-09-27 13:48:10 +00:00
|
|
|
.else
|
2008-10-05 02:46:12 +00:00
|
|
|
cd ${WRKSRC}/docs && \
|
2012-08-04 16:15:50 +00:00
|
|
|
${INSTALL_DATA} ${INFOFILES:S,:, ,g} ${PREFIX}/${INFO_PATH}
|
1999-09-27 13:48:10 +00:00
|
|
|
.endif
|
1998-08-14 00:16:07 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2008-10-05 02:46:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${WRKSRC}
|
2012-08-04 16:15:50 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2008-10-05 02:46:12 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
1998-08-14 00:16:07 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2012-08-04 16:15:50 +00:00
|
|
|
@${SETENV} TOUCH=${TOUCH} INFODIR=${PREFIX}/${INFO_PATH} \
|
1998-08-14 00:16:07 +00:00
|
|
|
ELISPDIR=${ELISPDIR} DIRSECTION="${DIRSECTION}" \
|
|
|
|
INFOFILES="${INFOFILES}" \
|
1998-12-13 08:47:43 +00:00
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1999-03-17 06:57:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/yatex-startup.el ${ELISPDIR}
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21) || (${EMACS_PORT_NAME} == xemacs21-mule)
|
2012-08-04 16:15:50 +00:00
|
|
|
@${RM} -f ${WRKDIR}/${MANIFEST}
|
|
|
|
@${CAT} ${PLIST} | ${GREP} -e "^${EMACS_LIBDIR}" | \
|
2000-09-18 02:05:45 +00:00
|
|
|
${SED} -e "s;^${EMACS_LIBDIR}/;;" > ${WRKDIR}/${MANIFEST}
|
2012-08-04 16:15:50 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/site-packages/pkginfo
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
2000-09-18 02:05:45 +00:00
|
|
|
${PREFIX}/${EMACS_LIBDIR}/site-packages/pkginfo/
|
1999-09-27 13:48:10 +00:00
|
|
|
.endif
|
2008-10-05 02:46:12 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-08-14 00:16:07 +00:00
|
|
|
|
2008-10-05 02:46:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|