pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/xdvik Fix build problems of xdvi, noted by seb@.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c6f7faa77cb
branches:  trunk
changeset: 555388:8c6f7faa77cb
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Mar 01 17:45:19 2009 +0000

description:
Fix build problems of xdvi, noted by seb@.

- Add a build-time dependency on texlive-tetex to use texconfig.
- Make sure that generating a conf file does not depend on files that are
  already installed.

Bump PKGREVISION.

diffstat:

 print/xdvik/Makefile |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 730e6c95ea66 -r 8c6f7faa77cb print/xdvik/Makefile
--- a/print/xdvik/Makefile      Sun Mar 01 15:22:09 2009 +0000
+++ b/print/xdvik/Makefile      Sun Mar 01 17:45:19 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2009/02/23 19:32:01 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2009/03/01 17:45:19 minskim Exp $
 
 DISTNAME=      xdvik-22.84.14
+PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=xdvi/}
 
@@ -9,7 +10,8 @@
 COMMENT=       Previewer for DVI files
 
 CONFLICTS+=    teTeX-bin<3.0nb25
-DEPENDS+=      tex-bin-xdvi-[0-9]*:../../print/tex-bin-xdvi
+BUILD_DEPENDS+=        texlive-tetex-[0-9]*:../../print/texlive-tetex
+BUILD_DEPENDS+=        tex-bin-xdvi-[0-9]*:../../print/tex-bin-xdvi
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
@@ -17,7 +19,7 @@
 USE_LIBTOOL=   yes
 WRKSRC=                ${WRKDIR}/${DISTNAME}/texk/xdvik
 
-FIND_PREFIX:=  TETEX_PREFIX=texlive-tetex
+FIND_PREFIX:=  TETEX_PREFIX=texlive-tetex BIN_XDVI_PREFIX=tex-bin-xdvi
 .include "../../mk/find-prefix.mk"
 
 CONFIGURE_ARGS+=       --with-system-kpathsea --with-system-t1lib \
@@ -60,7 +62,10 @@
 .include "../../mk/xaw.buildlink3.mk"
 
 post-build:
-       env TFC_TEXMFCONFIG=${WRKSRC}/texmf \
+       ${MKDIR} -p ${WRKSRC}/texmf/xdvi
+       ${CP} ${BIN_XDVI_PREFIX}/share/texmf/xdvi/XDvi \
+               ${WRKSRC}/texmf/xdvi
+       env TEXMFSYSCONFIG=${WRKSRC}/texmf TFC_TEXMFCONFIG=${WRKSRC}/texmf \
                ${TETEX_PREFIX}/bin/texconfig xdvi paper ${XDVI_PAPERSIZE}
 
 post-install:



Home | Main Index | Thread Index | Old Index