From owner-svn-ports-head@FreeBSD.ORG Fri Aug 22 14:32:11 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 544A8ECD; Fri, 22 Aug 2014 14:32:11 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3FCE23902; Fri, 22 Aug 2014 14:32:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7MEWBtt075664; Fri, 22 Aug 2014 14:32:11 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7MEWA06075661; Fri, 22 Aug 2014 14:32:10 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201408221432.s7MEWA06075661@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Fri, 22 Aug 2014 14:32:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r365662 - in head/print/tex-xdvik: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2014 14:32:11 -0000 Author: hrs Date: Fri Aug 22 14:32:10 2014 New Revision: 365662 URL: http://svnweb.freebsd.org/changeset/ports/365662 QAT: https://qat.redports.org/buildarchive/r365662/ Log: Fix bugs which prevented papersize configuration from working. Added: head/print/tex-xdvik/files/patch-texk-xdvik-main.c (contents, props changed) Modified: head/print/tex-xdvik/Makefile head/print/tex-xdvik/files/patch-texk-xdvik-dvi-init.c Modified: head/print/tex-xdvik/Makefile ============================================================================== --- head/print/tex-xdvik/Makefile Fri Aug 22 14:16:56 2014 (r365661) +++ head/print/tex-xdvik/Makefile Fri Aug 22 14:32:10 2014 (r365662) @@ -3,6 +3,7 @@ PORTNAME= xdvik PORTVERSION= 22.87 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= SF/xdvi/${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= tex- Modified: head/print/tex-xdvik/files/patch-texk-xdvik-dvi-init.c ============================================================================== --- head/print/tex-xdvik/files/patch-texk-xdvik-dvi-init.c Fri Aug 22 14:16:56 2014 (r365661) +++ head/print/tex-xdvik/files/patch-texk-xdvik-dvi-init.c Fri Aug 22 14:32:10 2014 (r365662) @@ -1,5 +1,5 @@ --- dvi-init.c.orig 2013-04-05 09:14:54.000000000 +0900 -+++ dvi-init.c 2013-05-06 05:13:12.000000000 +0900 ++++ dvi-init.c 2014-08-22 23:26:27.000000000 +0900 @@ -53,6 +53,9 @@ #include "statusline.h" #include "events.h" @@ -26,7 +26,7 @@ if (*arg == '+') { ++arg; ignore_papersize_specials = True; -@@ -884,6 +892,55 @@ +@@ -884,6 +892,57 @@ break; } arg = temp; @@ -38,12 +38,14 @@ + name = systempapername(); + if (name == NULL) + name = defaultpapername(); ++ if (strcmp(name, "libpaper") == 0) ++ name = "a4"; + + strncpy(temp, name, sizeof(temp)); + temp[sizeof(temp) - 1] = '\0'; + } -+ if (strcmp(temp, "letter") != 0 || -+ strcmp(temp, "ledgar") != 0) { ++ if (strcmp(temp, "letter") != 0 && ++ strcmp(temp, "ledger") != 0) { + if (temp[strlen(temp) - 1] == 'r') { + temp[strlen(temp) - 1] = '\0'; + landscape = 1; @@ -82,7 +84,7 @@ /* perform substitutions */ for (p = paper_types; p < paper_types + paper_types_size; p += 2) { if (strcmp(temp, *p) == 0) { -@@ -898,6 +955,7 @@ +@@ -898,6 +957,7 @@ m_paper_unshrunk_h = atopix(arg1 + 1, False); globals.grid_paper_unit = atopixunit(arg); Added: head/print/tex-xdvik/files/patch-texk-xdvik-main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/tex-xdvik/files/patch-texk-xdvik-main.c Fri Aug 22 14:32:10 2014 (r365662) @@ -0,0 +1,38 @@ +--- main.c.orig 2014-04-03 10:17:12.000000000 +0900 ++++ main.c 2014-08-22 23:24:13.000000000 +0900 +@@ -39,6 +39,9 @@ + #include "filehist.h" + #include "mag.h" + #include "message-window.h" ++#ifdef HAVE_LIBPAPER ++#include ++#endif + + #if FREETYPE + # include +@@ -651,8 +654,16 @@ + + /* paper type */ + if (!set_paper_type(resource.paper)) { +- const char **p; + char *helpmsg = xstrdup("Possible paper types are:\n "); ++#ifdef HAVE_LIBPAPER ++ const struct paper *pp; ++ ++ for (pp = paperfirst(); pp; pp = papernext(pp)) { ++ helpmsg = xstrcat(helpmsg, papername(pp)); ++ helpmsg = xstrcat(helpmsg, " "); ++ } ++#else ++ const char **p; + const char **paper_types = get_paper_types(); + for (p = paper_types; p < paper_types + get_paper_types_size(); p += 2) { + if (**p == '\0') { /* next line of list */ +@@ -663,6 +674,7 @@ + helpmsg = xstrcat(helpmsg, " "); + } + } ++#endif + helpmsg = xstrcat(helpmsg, + "\n(the names ending with `r' are `rotated' or `landscape' variants).\n" + "Alternatively, you can specify the dimensions as `WIDTHxHEIGHT', followed "