Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2000 06:35:22 -0500 (EST)
From:      bsdport@ddm.crosswinds.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23499: [NEW PORT]: Two LaTeX macro package ports
Message-ID:  <200012121135.eBCBZMq39263@squigy.ddm.crosswinds.net>
Resent-Message-ID: <200012121140.eBCBe2503241@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23499
>Category:       ports
>Synopsis:       [NEW PORT]: Two LaTeX macro package ports
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 12 03:40:02 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dave Chapeskie
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
DDM Consulting
>Environment:
>Description:

Included below are two new ports, they are both LaTeX macro packages.

Although LaTeX packages are reasonably easy to install by hand they are
just complicated enough to benefit from the ports system.  Plus novice
users or users of LyX may find it easier to install a port/package.

Due to the similarity of these ports (and any other future ports of
LaTeX packages) I split out all the common stuff from the makefiles and
put it into Mk/bsd.latex.mk and modified Mk/bsd.port.mk to include it
when LATEX_PORTNAME is defined.  A ports god type person will probably
want to review this file.  I tried to comment it well and follow the
example of the other Mk/bsd.*.mk files.

In case the way I did Mk/bsd.latex.mk is unacceptable I also included
print/*/Makefile.standalone which are normal everyday port Makefiles for
the two ports.  Either the standalone makefiles should be renamed and
committed or the bsd.latex.mk changes should be commited, not both.

I've tested the two ports with both sets of makefiles so that they
build, install, deinstall, and build a package that installs and
deinstalls cleanly.

There are a couple of small issues that I'm not entirely happy with
however.  With "make install" I've put in a variable to control the
running of "texconfig rehash" but I didn't make a way to turn this
off in the package (it's always done via an @exec/@unexec pair in
the plists).  Similarily, if the LaTex macro package is one which
is auto-detectable by LyX then "make install" will by default run
${PREFIX}/share/lyx/configure" (if it exists), I couldn't think of a
clean way of doing this quickly in the package so I ignored it.  Neither
of these issues are very important.


>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	Mk/bsd.latex.mk
#	Mk/bsd.port.mk.patch
#	print/latex-foiltex
#	print/latex-foiltex/pkg-comment
#	print/latex-foiltex/Makefile
#	print/latex-foiltex/distinfo
#	print/latex-foiltex/pkg-descr
#	print/latex-foiltex/pkg-plist
#	print/latex-foiltex/Makefile.standalone
#	print/latex-dropping
#	print/latex-dropping/pkg-plist
#	print/latex-dropping/pkg-descr
#	print/latex-dropping/pkg-comment
#	print/latex-dropping/distinfo
#	print/latex-dropping/Makefile
#	print/latex-dropping/files
#	print/latex-dropping/files/patch-aa
#	print/latex-dropping/Makefile.standalone
#
echo x - Mk/bsd.latex.mk
sed 's/^X//' >Mk/bsd.latex.mk << 'END-of-Mk/bsd.latex.mk'
X#
X# bsd.latex.mk - Utility definitions for LaTeX macro package related ports
X#
X# Created by:		Dave Chapeskie <bsdport@ddm.crosswinds.net>
X#
X# $FreeBSD$
X#
X
X.if !defined(Latex_Include)
X
XLatex_Include=			bsd.latex.mk
XLatex_Include_MAINTAINER=	bsdport@ddm.crosswinds.net
X
X#
X# This file for ports of LaTeX macro packages.
X# Define LATEX_PORTNAME variable before bsd.port.[pre.]mk
X# and it will automatically include this file.
X#
X# This file uses the following variables:
X#
X# LATEX_PORTNAME:
X#	Must be set by port.
X#
X# LATEX_NO_EXTRACT:
X#	If set to anything other than NO then the ${LATEX_INS_FILES} will
X#	NOT be run during the extract target.
X#
X# LATEX_NO_WRKSUBDIR:
X#	Unless this is set to something other than NO, ${NO_WRKSUBDIR} will
X#	be set.
X#
X# LATEX_NO_DEPENDS:
X#	If set to anything other than NO then BUILD_DEPENDS and RUN_DEPENDS
X#	are left alone (normally latex:${PORTSDIR}/print/teTeX is added).
X#
X# LATEX_NO_DOC_BUILD:
X#	If set to anything other than NO then the ${LATEX_DTX_FILES} will
X#	NOT be run through LaTeX during the build target.
X#
X# LATEX_NO_INSTALL:
X#	If set to anything other than NO then ${LATEX_INSTALL_FILES} will
X#	NOT be installed during the install target.
X#
X# LATEX_NO_DOC_INSTALL:
X#	If set to anything other than NO then ${LATEX_INSTALL_DOC_FILES}
X#	will NOT be installed during the install target.
X#	Default: ${LATEX_NO_DOC_BUILD}
X#
X# LATEX_REHASH:
X#	If set to YES then the install target will run "texconfig rehash".
X#	Default: YES
X#
X# LATEX_LYX_RECONFIG:
X#	If set to YES then the install target will run "./configure" from
X#	${PREFIX}/share/lyx.  This should be set as ?=YES in ports for
X#	macro packages that LyX auto-detects.  The port user can then override
X#	it if they wish.
X#	Default: NO
X#
X#
X# LATEX_MASTER_SITES:
X#	Master sites for the LaTeX macro source.
X#	Default: ${MASTER_SITE_TEX_CTAN}
X#
X# LATEX_DISTFILES:
X#	Typical distfiles for a LaTeX macro package on CTAN.
X#	Default: ${LATEX_INS_FILES} ${LATEX_DTX_FILES}
X#
X# LATEX_INS_FILES:
X#	Files that are run through latex during the extract target unless
X#	${LATEX_NO_EXTRACT} is set.
X#	Default: ${LATEX_PORTNAME}.ins
X#
X# LATEX_DTX_FILES:
X#	Documentaion files, run through latex to format.
X#	Default: ${LATEX_PORTNAME}.dtx
X#
X# LATEX_LINK_DISTFILES:
X#	${DISTFILES} that need to be symlinked into ${WRKSRC} during
X#	extract target for later latex runs.
X#	Default: all *.ins and *.dtx files in ${LATEX_DISTFILES} unless
X#		${LATEX_NO_EXTRACT} != NO.
X#
X# LATEX_INSTALL_DIR:
X#	Location to install LaTeX macro packages.
X#	Default: ${PREFIX}/share/texmf/tex/latex/${LATEX_PORTNAME}
X#
X# LATEX_INSTALL_DOC_DIR:
X#	Location to install LaTeX macro package documentation.
X#	Default: ${PREFIX}/share/texmf/doc/latex/${LATEX_PORTNAME}
X#
X# LATEX_INSTALL_FILES:
X#	Files to install into ${LATEX_INSTALL_DIR} unless ${LATEX_NO_INSTALL}
X#	is set to something other than NO.
X#	Default: ${LATEX_PORTNAME}.sty
X#
X# LATEX_INSTALL_DOC_FILES:
X#	Files to install into ${LATEX_INSTALL_DOC_DIR} unless
X#	${LATEX_NO_DOC_INSTALL} is set to something other than NO.
X#	Default: ${LATEX_DTX_FILES} and coresponding *.dvi files.
X
XPKGNAMEPREFIX?=		latex-
X
XLATEX_CMD?=		latex
XLATEX_ARGS?=
X
XLATEX_NO_EXTRACT?=	NO
XLATEX_NO_WRKSUBDIR?=	NO
XLATEX_NO_DEPENDS?=	NO
XLATEX_NO_DOC_BUILD?=	NO
XLATEX_NO_INSTALL?=	NO
XLATEX_NO_DOC_INSTALL?=	${LATEX_NO_DOC_BUILD}
XLATEX_REHASH?=		YES
XLATEX_LYX_RECONFIG?=	NO
X
XLATEX_DISTFILES?=	${LATEX_INS_FILES} ${LATEX_DTX_FILES}
XLATEX_INS_FILES?=	${LATEX_PORTNAME}.ins
XLATEX_DTX_FILES?=	${LATEX_PORTNAME}.dtx
XLATEX_INSTALL_DIR?=	${PREFIX}/share/texmf/tex/latex/${LATEX_PORTNAME}
XLATEX_INSTALL_DOC_DIR?=	${PREFIX}/share/texmf/doc/latex/${LATEX_PORTNAME}
XLATEX_INSTALL_FILES?=	${LATEX_PORTNAME}.sty
XLATEX_INSTALL_DOC_FILES?=${LATEX_DTX_FILES} ${LATEX_DTX_FILES:R:S/$/.dvi/}
X
X.if ${LATEX_NO_EXTRACT} == "NO"
XLATEX_LINK_DISTFILES?=	${LATEX_DISTFILES:M*.ins} ${LATEX_DISTFILES:M*.dtx}
X.else
XLATEX_LINK_DISTFILES?=
X.endif
X
X.if ( ${LATEX_LINK_DISTFILES} != "" )
X# LaTeX needs the files in the same directory.
Xpost-extract: latex-link-distfiles
Xlatex-link-distfiles:
X	${LN} -s ${LATEX_LINK_DISTFILES:S?^?${DISTDIR}/?} ${WRKSRC}
X.endif
X
X.if ${LATEX_NO_EXTRACT} == "NO"
XEXTRACT_ONLY?=
Xpost-extract:	latex-extract
X.endif
Xlatex-extract:
X	@cd ${WRKSRC} && for file in ${LATEX_INS_FILES}; do \
X		${LATEX_CMD} ${LATEX_ARGS} $$file; \
X	done
X
X.if ${LATEX_NO_DEPENDS} == "NO"
XBUILD_DEPENDS+=	latex:${PORTSDIR}/print/teTeX
XRUN_DEPENDS+=	latex:${PORTSDIR}/print/teTeX
X.endif
X
X.if ${LATEX_NO_WRKSUBDIR} == "NO"
XNO_WRKSUBDIR=
X.endif
X
X.if ${LATEX_NO_DOC_BUILD} == "NO"
Xdo-build: latex-doc-build
Xlatex-doc-build:
X# 3 latex runs to get cross-references right.
X# XXX could beter determine how many latex runs are required.
X# XXX could have variables to build other formats (e.g. PS, PDF)
X# Some people might by upset seeing all of LaTeX's normal warnings so
X# punt the output to /dev/null
X	@cd ${BUILD_WRKSRC}; for file in ${LATEX_DTX_FILES}; do \
X		for i in 1 2 3; do \
X			${ECHO} "${LATEX_CMD} ${LATEX_ARGS} $$file"; \
X			${LATEX_CMD} ${LATEX_ARGS} $$file > /dev/null; \
X		done; \
X	done
X.endif
X
Xdo-install: latex-lyx-reconfig
X
Xlatex-install:
X.if ${LATEX_NO_INSTALL} == "NO"
X	${MKDIR} ${LATEX_INSTALL_DIR}
X	cd ${INSTALL_WRKSRC}; ${INSTALL_DATA} ${LATEX_INSTALL_FILES} \
X			${LATEX_INSTALL_DIR}
X.endif
X
Xlatex-doc-install:
X.if ${LATEX_NO_DOC_INSTALL} == "NO"
X	${MKDIR} ${LATEX_INSTALL_DOC_DIR}
X	cd ${INSTALL_WRKSRC}; ${INSTALL_DATA} ${LATEX_INSTALL_DOC_FILES} \
X			${LATEX_INSTALL_DOC_DIR}
X.endif
X
Xlatex-rehash: latex-install latex-doc-install
X.if ${LATEX_REHASH} == "YES"
X	texconfig rehash
X.endif
X
Xlatex-lyx-reconfig: latex-rehash
X.if ${LATEX_LYX_RECONFIG} == "YES"
X	@if [ -x ${PREFIX}/share/lyx/configure ]; then \
X		cd ${PREFIX}/share/lyx; ./configure; \
X	fi
X.endif
X
X.if ${LATEX_NO_DOC_INSTALL} == "NO"
Xpost-install: latex-doc-install-notice
Xlatex-doc-install-notice:
X	@${ECHO} ""
X	@${ECHO} "*** ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} documenation has been installed in:"
X	@${ECHO} "***         ${LATEX_INSTALL_DOC_DIR}"
X	@${ECHO} ""
X.endif
X
X.endif # Latex_Include
END-of-Mk/bsd.latex.mk
echo x - Mk/bsd.port.mk.patch
sed 's/^X//' >Mk/bsd.port.mk.patch << 'END-of-Mk/bsd.port.mk.patch'
XIndex: bsd.port.mk
X===================================================================
XRCS file: /cvs/FreeBSD/ports/Mk/bsd.port.mk,v
Xretrieving revision 1.360
Xdiff -u -t -r1.360 bsd.port.mk
X--- bsd.port.mk	2000/11/16 13:06:25	1.360
X+++ bsd.port.mk	2000/12/12 09:56:57
X@@ -704,6 +704,10 @@
X 
X .if defined(USE_RUBY) || defined(USE_LIBRUBY)
X .include "${PORTSDIR}/Mk/bsd.ruby.mk"
X .endif
X+
X+.if defined(LATEX_PORTNAME)
X+.include "${PORTSDIR}/Mk/bsd.latex.mk"
X+.endif
X 
X .include "${PORTSDIR}/Mk/bsd.gnome.mk"
END-of-Mk/bsd.port.mk.patch
echo c - print/latex-foiltex
mkdir -p print/latex-foiltex > /dev/null 2>&1
echo x - print/latex-foiltex/pkg-comment
sed 's/^X//' >print/latex-foiltex/pkg-comment << 'END-of-print/latex-foiltex/pkg-comment'
XCollection of LaTeX files for making foils.
END-of-print/latex-foiltex/pkg-comment
echo x - print/latex-foiltex/Makefile
sed 's/^X//' >print/latex-foiltex/Makefile << 'END-of-print/latex-foiltex/Makefile'
X# New ports collection makefile for:	foiltex
X# Date created:		Fri Dec  8 20:49:05 EST 2000
X# Whom:			Dave Chapeskie <bsdport@ddm.crosswinds.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	foiltex
XPORTVERSION=	2.1.3
XCATEGORIES=	print
XMASTER_SITES=	${LATEX_MASTER_SITES}
XMASTER_SITE_SUBDIR=     macros/latex/contrib/supported/${PORTNAME}
XDISTFILES=	${LATEX_DISTFILES}
X
XMAINTAINER=	bsdport@ddm.crosswinds.net
X
XLATEX_PORTNAME=	${PORTNAME}
XLATEX_LYX_RECONFIG=	YES
X
XLATEX_INSTALL_FILES=	foils.cls foil17.clo foil20.clo foil30.clo \
X			fltfonts.def foils.sty
X
XLATEX_INSTALL_DOC_FILES=${LATEX}.dtx ${PORTNAME}.dvi \
X			sampfoil.tex
X
X.include <bsd.port.mk>
END-of-print/latex-foiltex/Makefile
echo x - print/latex-foiltex/distinfo
sed 's/^X//' >print/latex-foiltex/distinfo << 'END-of-print/latex-foiltex/distinfo'
XMD5 (foiltex.dtx) = 3f45061a71b4b4c5974277f48c7b7495
XMD5 (foiltex.ins) = 3d6ddb022e06c68d59c348efcfedeb09
END-of-print/latex-foiltex/distinfo
echo x - print/latex-foiltex/pkg-descr
sed 's/^X//' >print/latex-foiltex/pkg-descr << 'END-of-print/latex-foiltex/pkg-descr'
XThe FoilTeX is a collection of LaTeX files for making foils.  A number
Xof features are built-in including large sans serif font as normal
Xfont, options for setting normalsize at 20pt (default), 17pt, 25pt or
X30pt, new macros for starting new foils, for special environments like
XTheorem and Proof, simple macros to control the headline and footline.
XWith Rokicki's dvips or Y&Y's dvipsone, it will even rotate individual
Xfoils easily.  More in formation can be found in the documentation
X(foiltex.dtx, a LaTeX2e file).
END-of-print/latex-foiltex/pkg-descr
echo x - print/latex-foiltex/pkg-plist
sed 's/^X//' >print/latex-foiltex/pkg-plist << 'END-of-print/latex-foiltex/pkg-plist'
Xshare/texmf/doc/latex/foiltex/foiltex.dtx
Xshare/texmf/doc/latex/foiltex/foiltex.dvi
Xshare/texmf/doc/latex/foiltex/sampfoil.tex
Xshare/texmf/tex/latex/foiltex/fltfonts.def
Xshare/texmf/tex/latex/foiltex/foil17.clo
Xshare/texmf/tex/latex/foiltex/foil20.clo
Xshare/texmf/tex/latex/foiltex/foil30.clo
Xshare/texmf/tex/latex/foiltex/foils.cls
Xshare/texmf/tex/latex/foiltex/foils.sty
X@dirrm share/texmf/doc/latex/foiltex
X@dirrm share/texmf/tex/latex/foiltex
X@exec env PATH=$PATH:%D/bin %D/bin/texconfig rehash
X@unexec env PATH=$PATH:%D/bin %D/bin/texconfig rehash
END-of-print/latex-foiltex/pkg-plist
echo x - print/latex-foiltex/Makefile.standalone
sed 's/^X//' >print/latex-foiltex/Makefile.standalone << 'END-of-print/latex-foiltex/Makefile.standalone'
X# New ports collection makefile for:	foiltex
X# Date created:		Fri Dec  8 20:49:05 EST 2000
X# Whom:			Dave Chapeskie <bsdport@ddm.crosswinds.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	foiltex
XPORTVERSION=	2.1.3
XCATEGORIES=	print
XMASTER_SITES=	${MASTER_SITE_TEX_CTAN}
XMASTER_SITE_SUBDIR=     macros/latex/contrib/supported/${PORTNAME}
XDISTFILES=	${PORTNAME}.ins ${PORTNAME}.dtx
XEXTRACT_ONLY=	${PORTNAME}.ins
X
XMAINTAINER=	bsdport@ddm.crosswinds.net
X
XBUILD_DEPENDS=	latex:${PORTSDIR}/print/teTeX
XRUN_DEPENDS=	latex:${PORTSDIR}/print/teTeX
X
XNO_WRKSUBDIR=
XEXTRACT_CMD=	${LN} -s ${DISTFILES:S?^?${DISTDIR}/?} ${WRKSRC}; latex
XEXTRACT_BEFORE_ARGS=
XEXTRACT_AFTER_ARGS=
X
X# 3 latex runs to get cross-references right
Xdo-build:
X	@cd ${BUILD_WRKSRC}; for i in 1 2 3; do \
X			latex ${PORTNAME}.dtx; \
X		done
X
XINSTALL_DIR=		${PREFIX}/share/texmf/tex/latex/${PORTNAME}
XINSTALL_FILES=		foils.cls foil17.clo foil20.clo foil30.clo \
X			fltfonts.def foils.sty
X
XINSTALL_DOCDIR=		${PREFIX}/share/texmf/doc/latex/${PORTNAME}
XINSTALL_DOCFILES=	${PORTNAME}.dtx ${PORTNAME}.dvi
XINSTALL_DOCFILES+=	sampfoil.tex
X
X# NO_TEX_REHASH is provide for the case were a person wants to install
X# several TeX things like this and then manually rehash at the end.
Xdo-install:
X	${MKDIR} ${INSTALL_DIR}
X	cd ${WRKSRC}; ${INSTALL_DATA} ${INSTALL_FILES} ${INSTALL_DIR}
X	${MKDIR} ${INSTALL_DOCDIR}
X	cd ${WRKSRC}; ${INSTALL_DATA} ${INSTALL_DOCFILES} ${INSTALL_DOCDIR}
X.ifndef NO_TEX_REHASH
X	texconfig rehash
X.endif
X.ifndef NO_LYX_RECONFIG
X	@if [ -x ${PREFIX}/share/lyx/configure ]; then \
X		cd ${PREFIX}/share/lyx; ./configure; \
X	fi
X.endif
X	@${ECHO} ""
X	@${ECHO} "*** ${PORTNAME} documenation has been installed in:"
X	@${ECHO} "***         ${INSTALL_DOCDIR}"
X
X.include <bsd.port.mk>
END-of-print/latex-foiltex/Makefile.standalone
echo c - print/latex-dropping
mkdir -p print/latex-dropping > /dev/null 2>&1
echo x - print/latex-dropping/pkg-plist
sed 's/^X//' >print/latex-dropping/pkg-plist << 'END-of-print/latex-dropping/pkg-plist'
Xshare/texmf/doc/latex/dropping/dropping.dtx
Xshare/texmf/doc/latex/dropping/dropping.dvi
Xshare/texmf/tex/latex/dropping/dropping.sty
X@dirrm share/texmf/doc/latex/dropping
X@dirrm share/texmf/tex/latex/dropping
X@exec env PATH=$PATH:%D/bin %D/bin/texconfig rehash
X@unexec env PATH=$PATH:%D/bin %D/bin/texconfig rehash
END-of-print/latex-dropping/pkg-plist
echo x - print/latex-dropping/pkg-descr
sed 's/^X//' >print/latex-dropping/pkg-descr << 'END-of-print/latex-dropping/pkg-descr'
XDropping LaTeX package by Mats Dahlgren.
X
XThis LaTeX package defines a command, \dropping, to drop the first
Xcharacter(s) of a paragraph.  It is based on Fred J. Lauwer's
Xdropcaps.sty.  In short dropping is an automatization of dropcaps in
Xthat the user does not need to know the internal nme of the font file
X(the .tfm file) but can control this via the ordinary LaTeX 2e commands
X(\rmfamily, etc).
END-of-print/latex-dropping/pkg-descr
echo x - print/latex-dropping/pkg-comment
sed 's/^X//' >print/latex-dropping/pkg-comment << 'END-of-print/latex-dropping/pkg-comment'
XLaTeX package for starting a paragraph with a dropped letter (or word).
END-of-print/latex-dropping/pkg-comment
echo x - print/latex-dropping/distinfo
sed 's/^X//' >print/latex-dropping/distinfo << 'END-of-print/latex-dropping/distinfo'
XMD5 (dropping.zip) = d992f61e9ad4fb7a7ff171e34a5a2301
END-of-print/latex-dropping/distinfo
echo x - print/latex-dropping/Makefile
sed 's/^X//' >print/latex-dropping/Makefile << 'END-of-print/latex-dropping/Makefile'
X# New ports collection makefile for:	dropping
X# Date created:		Tue Dec 12 01:12:21 EST 2000
X# Whom:			Dave Chapeskie <bsdport@ddm.crosswinds.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dropping
XPORTVERSION=	0.12a
XCATEGORIES=	print
XMASTER_SITES=	http://www.homenet.se/matsd/latex/
XDISTNAME=	dropping
X
XMAINTAINER=	bsdport@ddm.crosswinds.net
X
XLATEX_PORTNAME=	${PORTNAME}
XLATEX_NO_EXTRACT=
XUSE_ZIP=	yes
X
X# More correctly this is part of extraction but we need
X# to do a one line patch to the *.ins file first :(
Xpost-patch:	latex-extract
X
X.include <bsd.port.mk>
END-of-print/latex-dropping/Makefile
echo c - print/latex-dropping/files
mkdir -p print/latex-dropping/files > /dev/null 2>&1
echo x - print/latex-dropping/files/patch-aa
sed 's/^X//' >print/latex-dropping/files/patch-aa << 'END-of-print/latex-dropping/files/patch-aa'
X--- dropping.ins.orig	Fri Jun  5 17:03:28 1998
X+++ dropping.ins	Tue Dec 12 01:43:00 2000
X@@ -46,7 +46,6 @@
X %  It is my sincere hope that condition (3) is fullfilled in the
X %  documentation.  -md  
X %  
X-\NeesTeXFormat{LaTeX2e}[1996/12/01]
X \def\batchfile{dropping.ins}
X \input docstrip.tex
X 
END-of-print/latex-dropping/files/patch-aa
echo x - print/latex-dropping/Makefile.standalone
sed 's/^X//' >print/latex-dropping/Makefile.standalone << 'END-of-print/latex-dropping/Makefile.standalone'
X# New ports collection makefile for:	dropping
X# Date created:		Tue Dec 12 01:12:21 EST 2000
X# Whom:			Dave Chapeskie <bsdport@ddm.crosswinds.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dropping
XPORTVERSION=	0.12a
XCATEGORIES=	print
XMASTER_SITES=	http://www.homenet.se/matsd/latex/
XDISTNAME=	dropping
X
XMAINTAINER=	bsdport@ddm.crosswinds.net
X
XBUILD_DEPENDS=	latex:${PORTSDIR}/print/teTeX
XRUN_DEPENDS=	latex:${PORTSDIR}/print/teTeX
X
XUSE_ZIP=	yes
XNO_WRKSUBDIR=
X
X# More correctly this is part of extraction but we need
X# to do a one line patch to the *.ins file first :(
Xpost-patch:
X	cd ${WRKSRC}; latex ${PORTNAME}.ins
X
Xdo-build:
X	cd ${BUILD_WRKSRC}; latex ${PORTNAME}.dtx;
X
XINSTALL_DIR=		${PREFIX}/share/texmf/tex/latex/${PORTNAME}
XINSTALL_FILES=		${PORTNAME}.sty
X
XINSTALL_DOCDIR=		${PREFIX}/share/texmf/doc/latex/${PORTNAME}
XINSTALL_DOCFILES=	${PORTNAME}.dtx ${PORTNAME}.dvi
X
X# NO_TEX_REHASH is provided for the case were a person wants to install
X# several TeX things like this and then manually rehash at the end.
Xdo-install:
X	${MKDIR} ${INSTALL_DIR}
X	cd ${WRKSRC}; ${INSTALL_DATA} ${INSTALL_FILES} ${INSTALL_DIR}
X	${MKDIR} ${INSTALL_DOCDIR}
X	cd ${WRKSRC}; ${INSTALL_DATA} ${INSTALL_DOCFILES} ${INSTALL_DOCDIR}
X.ifndef NO_TEX_REHASH
X	texconfig rehash
X.endif
X	@${ECHO} ""
X	@${ECHO} "*** ${PORTNAME} documenation has been installed in:"
X	@${ECHO} "***         ${INSTALL_DOCDIR}"
X
X.include <bsd.port.mk>
END-of-print/latex-dropping/Makefile.standalone
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012121135.eBCBZMq39263>