pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/xdvik Import xdvik-22.84.14 as print/xdvik.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fe88e1918ea2
branches:  trunk
changeset: 555035:fe88e1918ea2
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Mon Feb 23 19:32:01 2009 +0000

description:
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:

 print/xdvik/DESCR            |   2 +
 print/xdvik/Makefile         |  70 ++++++++++++++++++++++++++++++++++++++++++++
 print/xdvik/PLIST            |  10 ++++++
 print/xdvik/distinfo         |   7 ++++
 print/xdvik/patches/patch-aa |  14 ++++++++
 print/xdvik/patches/patch-ab |  17 ++++++++++
 6 files changed, 120 insertions(+), 0 deletions(-)

diffs (144 lines):

diff -r f21070343bc7 -r fe88e1918ea2 print/xdvik/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/xdvik/DESCR Mon Feb 23 19:32:01 2009 +0000
@@ -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 -r f21070343bc7 -r fe88e1918ea2 print/xdvik/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/xdvik/Makefile      Mon Feb 23 19:32:01 2009 +0000
@@ -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@localhost
+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 -r f21070343bc7 -r fe88e1918ea2 print/xdvik/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/xdvik/PLIST Mon Feb 23 19:32:01 2009 +0000
@@ -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 -r f21070343bc7 -r fe88e1918ea2 print/xdvik/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/xdvik/distinfo      Mon Feb 23 19:32:01 2009 +0000
@@ -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 -r f21070343bc7 -r fe88e1918ea2 print/xdvik/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/xdvik/patches/patch-aa      Mon Feb 23 19:32:01 2009 +0000
@@ -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 -r f21070343bc7 -r fe88e1918ea2 print/xdvik/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/xdvik/patches/patch-ab      Mon Feb 23 19:32:01 2009 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index