summaryrefslogtreecommitdiff
path: root/print/xdvik
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2009-02-23 19:32:01 +0000
committerminskim <minskim@pkgsrc.org>2009-02-23 19:32:01 +0000
commit41e5c0652f3809cfe9e61e2ad8a39ffee9d233d1 (patch)
treeb554eb4720580a4073e5bdf8af72f468184605e0 /print/xdvik
parentf59fa7083c881ee83d2a509ea2f7cc3b47824ae3 (diff)
downloadpkgsrc-41e5c0652f3809cfe9e61e2ad8a39ffee9d233d1.tar.gz
Import xdvik-22.84.14 as print/xdvik.
Xdvik, the kpathsea version of xdvi, is a previewer for DVI files produced e.g. by the TeX or troff typesetting systems.
Diffstat (limited to 'print/xdvik')
-rw-r--r--print/xdvik/DESCR2
-rw-r--r--print/xdvik/Makefile70
-rw-r--r--print/xdvik/PLIST10
-rw-r--r--print/xdvik/distinfo7
-rw-r--r--print/xdvik/patches/patch-aa14
-rw-r--r--print/xdvik/patches/patch-ab17
6 files changed, 120 insertions, 0 deletions
diff --git a/print/xdvik/DESCR b/print/xdvik/DESCR
new file mode 100644
index 00000000000..7a72db197e1
--- /dev/null
+++ b/print/xdvik/DESCR
@@ -0,0 +1,2 @@
+Xdvik, the kpathsea version of xdvi, is a previewer for DVI files
+produced e.g. by the TeX or troff typesetting systems.
diff --git a/print/xdvik/Makefile b/print/xdvik/Makefile
new file mode 100644
index 00000000000..256d5af0e78
--- /dev/null
+++ b/print/xdvik/Makefile
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/23 19:32:01 minskim Exp $
+
+DISTNAME= xdvik-22.84.14
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xdvi/}
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://xdvi.sourceforge.net/
+COMMENT= Previewer for DVI files
+
+CONFLICTS+= teTeX-bin<3.0nb25
+DEPENDS+= tex-bin-xdvi-[0-9]*:../../print/tex-bin-xdvi
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/texk/xdvik
+
+FIND_PREFIX:= TETEX_PREFIX=texlive-tetex
+.include "../../mk/find-prefix.mk"
+
+CONFIGURE_ARGS+= --with-system-kpathsea --with-system-t1lib \
+ --with-xdvi-x-toolkit=xaw
+
+MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q} \
+ kpathsea_parent=${BUILDLINK_PREFIX.kpathsea}/include
+
+INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
+ mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+PKG_SYSCONFSUBDIR= texmf
+
+MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdvi
+CONF_FILES= ${PREFIX}/share/texmf-dist/xdvi/XDvi \
+ ${PKG_SYSCONFDIR}/xdvi/XDvi
+
+BUILD_DEFS+= PAPERSIZE
+
+INSTALLATION_DIRS+= share/texmf-dist/xdvi
+
+TEX_TEXMF_DIRS+= ${PKG_SYSCONFDIR}
+TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf
+TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf-dist
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${PAPERSIZE} == "Letter"
+XDVI_PAPERSIZE= us
+.else
+XDVI_PAPERSIZE= a4
+.endif
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../fonts/t1lib/buildlink3.mk"
+.include "../../print/kpathsea/buildlink3.mk"
+.include "../../print/kpathsea/texmf.mk"
+.include "../../x11/libXp/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../mk/xaw.buildlink3.mk"
+
+post-build:
+ env TFC_TEXMFCONFIG=${WRKSRC}/texmf \
+ ${TETEX_PREFIX}/bin/texconfig xdvi paper ${XDVI_PAPERSIZE}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/texmf/xdvi/XDvi \
+ ${DESTDIR}${PREFIX}/share/texmf-dist/xdvi
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/xdvik/PLIST b/print/xdvik/PLIST
new file mode 100644
index 00000000000..f479d3ec829
--- /dev/null
+++ b/print/xdvik/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/23 19:32:01 minskim Exp $
+bin/oxdvi
+bin/xdvi
+bin/xdvi-xaw
+man/man1/oxdvi.1
+man/man1/xdvi.1
+share/texmf-dist/xdvi/XDvi
+share/texmf/xdvi/pixmaps/toolbar.xpm
+share/texmf/xdvi/pixmaps/toolbar2.xpm
+share/texmf/xdvi/xdvi.cfg
diff --git a/print/xdvik/distinfo b/print/xdvik/distinfo
new file mode 100644
index 00000000000..e29a6db3e96
--- /dev/null
+++ b/print/xdvik/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/02/23 19:32:01 minskim Exp $
+
+SHA1 (xdvik-22.84.14.tar.gz) = 1ca7f0c7930d24c3e10cc1d7115abed7dd39e95e
+RMD160 (xdvik-22.84.14.tar.gz) = a19920fcc9e4e5d2878b16e65fa95bab5f034b74
+Size (xdvik-22.84.14.tar.gz) = 2016256 bytes
+SHA1 (patch-aa) = 878d51f49647160c6f75acb1ca386fefb7fd778b
+SHA1 (patch-ab) = bbbeb011aa888f2ee7dab84c1602fb3e1127cdb1
diff --git a/print/xdvik/patches/patch-aa b/print/xdvik/patches/patch-aa
new file mode 100644
index 00000000000..e3b30144c82
--- /dev/null
+++ b/print/xdvik/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/02/23 19:32:01 minskim Exp $
+
+XDvi is installed by tex-bin-xdvi.
+
+--- Makefile.in.orig 2008-05-03 12:45:05.000000000 -0700
++++ Makefile.in
+@@ -161,7 +161,6 @@ install-data: $(manpage).1 pixmaps/toolb
+ $(INSTALL_DATA) $(manpage).1 $(man1dir)/$(manpage).$(manext)
+ rm -f $(man1dir)/o$(manpage).$(manext)
+ ln -s $(manpage).$(manext) $(man1dir)/o$(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 \
diff --git a/print/xdvik/patches/patch-ab b/print/xdvik/patches/patch-ab
new file mode 100644
index 00000000000..c11bee5448e
--- /dev/null
+++ b/print/xdvik/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/02/23 19:32:01 minskim Exp $
+
+Make sure teTeX3 compiles even if floor is defined by the OS (which is
+the case on Mac OS 10.4 at least)
+
+--- special.c.orig 2008-05-03 12:45:10.000000000 -0700
++++ special.c
+@@ -181,7 +181,9 @@ static Boolean parse_color (const char *
+ #define MAX_PEN_SIZE 7 /* Max pixels of pen width */
+ #define TWOPI (3.14159265359 * 2.0)
+
++#ifndef floor
+ extern double floor(double);
++#endif
+ #define rint(x) floor((x) + 0.5)
+
+ static int xx[MAXPOINTS], yy[MAXPOINTS]; /* Path in milli-inches */