1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/print/yatex/Makefile

141 lines
4.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: YaTeX
# Date created: 98/11/17
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
#
1999-08-31 01:53:22 +00:00
# $FreeBSD$
#
2000-04-13 11:22:38 +00:00
PORTNAME= yatex
2012-08-04 16:15:50 +00:00
PORTVERSION= 1.76
CATEGORIES?= print elisp
MASTER_SITES= http://www.yatex.org/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Yet Another LaTeX mode and html mode on Emacs
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PKGMESSAGE= ${WRKDIR}/pkg-message
DESCR= ${PKGDIR}/pkg-descr
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
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} \
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
EMACS_NO_RUN_DEPENDS=YES
EMACS_MASTERDIR_PKGFILES=YES
EMACS_PACKAGESDIR=${EMACS_LIBDIR}/site-packages
TARGETNAME= YaTeX
DIRSECTION= The Emacs editor and associated tools
.include <bsd.port.pre.mk>
.if (${EMACS_PORT_NAME} == xemacs21)
EMACS_NO_BUILD_DEPENDS= YES
2012-08-04 16:15:50 +00:00
INFO_PATH= ${EMACS_PACKAGESDIR}/info
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
PLIST= ${PKGDIR}/pkg-plist.xemacs
MANIFEST= MANIFEST.yatex
HELP= help/YATEXHLP.eng
INFOFILES= yatexe:yahtmle
INFONODES= YaTeX:yahtml
INFONODEEXPS= Yet Another tex-mode for Emacs.:Yet Another HTML mode.
.elif (${EMACS_PORT_NAME} == xemacs21-mule)
2012-08-04 16:15:50 +00:00
INFO_PATH= ${EMACS_PACKAGESDIR}/info
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
PLIST= ${PKGDIR}/pkg-plist.xemacs-mule
MANIFEST= MANIFEST.yatex
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.
.else
EMACS_NO_BUILD_DEPENDS= YES
PLIST= ${PKGDIR}/pkg-plist.emacs
ELISPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
HELPDIR= ${ELISPDIR}
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
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.
.endif
PORTDOCS+= yatexe.tex htmlqa.eng yahtmle.tex yatexref.eng qanda.eng
EL_FILES= comment.el yatex.el yatexadd.el yatexgen.el \
yatexenv.el yatexlib.el \
yatexmth.el yatexhks.el yatexhlp.el yatexprc.el \
yatexm-o.el yatexsec.el yatexpkg.el yatexhie.el yahtml.el \
yatex19.el
do-build:
@${DO_NADA}
# For XEmacs, yatexj (a Japanese info file) should be remade.
.if (${EMACS_PORT_NAME} == xemacs21-mule)
cd ${WRKSRC}/docs && \
${SETENV} LANG=ja_JP.eucJP ${EMACS_CMD} -no-site-file -no-init-file \
-batch -l texinfmt -f batch-texinfo-format yatexj.tex
.endif
do-install:
2012-08-04 16:15:50 +00:00
@${MKDIR} ${ELISPDIR}/yatex ${HELPDIR} ${PREFIX}/${INFO_PATH}
cd ${WRKSRC} && \
${INSTALL_DATA} ${EL_FILES} ${ELISPDIR}/yatex && \
${INSTALL_DATA} ${HELP} ${HELPDIR}
.if (${EMACS_PORT_NAME} == xemacs21) || (${EMACS_PORT_NAME} == xemacs21-mule)
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; \
done
.else
cd ${WRKSRC}/docs && \
2012-08-04 16:15:50 +00:00
${INSTALL_DATA} ${INFOFILES:S,:, ,g} ${PREFIX}/${INFO_PATH}
.endif
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/docs/* ${WRKSRC}
2012-08-04 16:15:50 +00:00
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
post-install:
2012-08-04 16:15:50 +00:00
@${SETENV} TOUCH=${TOUCH} INFODIR=${PREFIX}/${INFO_PATH} \
ELISPDIR=${ELISPDIR} DIRSECTION="${DIRSECTION}" \
INFOFILES="${INFOFILES}" \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${INSTALL_DATA} ${WRKDIR}/yatex-startup.el ${ELISPDIR}
.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}" | \
${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} \
${PREFIX}/${EMACS_LIBDIR}/site-packages/pkginfo/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>