print/teTeX restructuring:

Add a dependency of print/teTeX-base.

Approved by:	linimon (mentor)
This commit is contained in:
Hiroki Sato 2004-06-18 15:29:44 +00:00
parent a890c9d58a
commit 84d847ce68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111733
4 changed files with 56 additions and 15 deletions

View file

@ -7,15 +7,21 @@
PORTNAME= xdvik
PORTVERSION= 22.78
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xdvi
PKGNAMESUFFIX= -tetex
MAINTAINER= hrs@FreeBSD.org
COMMENT= DVI Previewer(kpathsearch) for X
BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
RUN_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
BUILD_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
mktexlsr:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
mktexlsr:${PORTSDIR}/print/teTeX-base
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib
USE_XLIB= yes
@ -27,21 +33,29 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}"
INSTALL_WRKSRC= ${WRKSRC}/texk/xdvik
PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR}
PLIST_SUB= TEXMF=${TEXMF} MKTEXLSR=${MKTEXLSR}
CONFLICTS= xdvi-* *-xdvi*
MAN1= xdvi.1 t1mapper.1 xdvizilla.1
TEXMFDIR?= share/texmf
TEXMF?= share/texmf
MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
LIBT1_PREFIX?= ${LOCALBASE}
DOC_FILES= BUGS CHANGES INSTALL \
README README.CVS README_maintainer TODO
do-install:
cd ${WRKSRC}/texk/xdvik && \
${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}
TETEX_MODESW= ${LOCALBASE}/bin/tetex-modesw
PKGINSTALL= ${WRKDIR}/pkg-install.sh
PKGDEINSTALL= ${WRKDIR}/pkg-install.sh
PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \
MKTEXLSR=${MKTEXLSR}
pre-build:
${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
${CHMOD} 0755 ${PKGINSTALL}
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/texk/xdvik/t1mapper ${PREFIX}/bin
@ -49,6 +63,6 @@ post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
${MKTEXLSR}
@${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>

View file

@ -0,0 +1,10 @@
--- texk/xdvik/Makefile.in.orig Sat May 15 01:15:17 2004
+++ texk/xdvik/Makefile.in Sat May 15 01:15:39 2004
@@ -137,7 +137,6 @@
$(SHELL) $(top_srcdir)/../mkinstalldirs $(mandir)
$(SHELL) $(top_srcdir)/../mkinstalldirs $(texmf)/xdvi/pixmaps
$(INSTALL_DATA) $(srcdir)/$(manpage).1 $(mandir)/$(manpage).$(manext)
- $(INSTALL_DATA) $(srcdir)/texmf/XDvi $(texmf)/xdvi/XDvi
$(INSTALL_DATA) $(srcdir)/pixmaps/toolbar.xpm $(srcdir)/pixmaps/toolbar2.xpm $(texmf)/xdvi/pixmaps
if \
grep 'original xdvi.cfg --' $(texmf)/xdvi/xdvi.cfg >/dev/null 2>&1 \

View file

@ -0,0 +1,20 @@
#!/bin/sh
# $FreeBSD$
GREP=/usr/bin/grep
SED=/usr/bin/sed
MODE=default
MKTEXLSR=%%MKTEXLSR%%
TETEX_MODESW=%%TETEX_MODESW%%
case $2 in
POST-INSTALL)
${TETEX_MODESW} ${MODE} XDvi forceinstall
${MKTEXLSR}
;;
DEINSTALL)
${TETEX_MODESW} uninstall XDvi
${MKTEXLSR}
;;
esac

View file

@ -4,11 +4,10 @@ bin/xdvi
bin/xdvi-xaw.bin
bin/xdvi.bin
bin/xdvizilla
%%TEXMFDIR%%/xdvi/XDvi
%%TEXMFDIR%%/xdvi/xdvi.cfg
%%TEXMFDIR%%/xdvi/pixmaps/toolbar.xpm
%%TEXMFDIR%%/xdvi/pixmaps/toolbar2.xpm
@dirrm %%TEXMFDIR%%/xdvi/pixmaps
%%TEXMF%%/xdvi/xdvi.cfg
%%TEXMF%%/xdvi/pixmaps/toolbar.xpm
%%TEXMF%%/xdvi/pixmaps/toolbar2.xpm
@dirrm %%TEXMF%%/xdvi/pixmaps
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
@ -17,5 +16,3 @@ bin/xdvizilla
%%PORTDOCS%%%%DOCSDIR%%/README_maintainer
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@exec %%MKTEXLSR%%
@unexec %%MKTEXLSR%%