[Midnightbsd-cvs] mports [19566] trunk/print: add tex-ptexenc
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jul 9 17:07:28 EDT 2015
Revision: 19566
http://svnweb.midnightbsd.org/mports/?rev=19566
Author: laffer1
Date: 2015-07-09 17:07:26 -0400 (Thu, 09 Jul 2015)
Log Message:
-----------
add tex-ptexenc
Modified Paths:
--------------
trunk/print/Makefile
Added Paths:
-----------
trunk/print/tex-ptexenc/
trunk/print/tex-ptexenc/Makefile
trunk/print/tex-ptexenc/distinfo
trunk/print/tex-ptexenc/files/
trunk/print/tex-ptexenc/files/patch-Makefile.in
trunk/print/tex-ptexenc/files/patch-ptexenc.c
trunk/print/tex-ptexenc/pkg-descr
trunk/print/tex-ptexenc/pkg-plist
Modified: trunk/print/Makefile
===================================================================
--- trunk/print/Makefile 2015-07-09 21:07:16 UTC (rev 19565)
+++ trunk/print/Makefile 2015-07-09 21:07:26 UTC (rev 19566)
@@ -45,6 +45,7 @@
SUBDIR += qpdf
SUBDIR += t1utils
SUBDIR += tex-formats
+SUBDIR += tex-ptexenc
SUBDIR += tex-texmflocal
SUBDIR += texinfo
SUBDIR += texlive-base
Added: trunk/print/tex-ptexenc/Makefile
===================================================================
--- trunk/print/tex-ptexenc/Makefile (rev 0)
+++ trunk/print/tex-ptexenc/Makefile 2015-07-09 21:07:26 UTC (rev 19566)
@@ -0,0 +1,29 @@
+# $MidnightBSD$
+# $FreeBSD: head/print/tex-ptexenc/Makefile 365637 2014-08-22 11:04:23Z hrs $
+
+PORTNAME= ptexenc
+PORTVERSION= 1.3.2
+CATEGORIES= print
+MASTER_SITES= ftp://tug.org/historic/systems/texlive/2014/
+PKGNAMEPREFIX= tex-
+DISTNAME= texlive-20140525-source
+DIST_SUBDIR= TeX
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Library for Japanese pTeX and its tools
+
+LICENSE= bsd3
+
+USES= tar:xz libtool
+USE_TEX= kpathsea
+USE_LDCONFIG= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/texk/ptexenc
+EXTRACT_AFTER_ARGS= ${EXTRACT_FILES}
+EXTRACT_FILES= ${DISTNAME}/build-aux \
+ ${DISTNAME}/texk/ptexenc
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-system-kpathsea \
+ --with-kpathsea-includes=${LOCALBASE}/include \
+ --with-kpathsea-libdir=${LOCALBASE}/lib
+
+.include <bsd.port.mk>
Property changes on: trunk/print/tex-ptexenc/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/tex-ptexenc/distinfo
===================================================================
--- trunk/print/tex-ptexenc/distinfo (rev 0)
+++ trunk/print/tex-ptexenc/distinfo 2015-07-09 21:07:26 UTC (rev 19566)
@@ -0,0 +1,2 @@
+SHA256 (TeX/texlive-20140525-source.tar.xz) = 08bb4eb02923ac65ce1183612c6b64da185904f26a1660f5ca4f902d055795be
+SIZE (TeX/texlive-20140525-source.tar.xz) = 41657688
Property changes on: trunk/print/tex-ptexenc/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/tex-ptexenc/files/patch-Makefile.in
===================================================================
--- trunk/print/tex-ptexenc/files/patch-Makefile.in (rev 0)
+++ trunk/print/tex-ptexenc/files/patch-Makefile.in 2015-07-09 21:07:26 UTC (rev 19566)
@@ -0,0 +1,12 @@
+--- Makefile.in.orig 2014-08-21 00:32:34.000000000 +0900
++++ Makefile.in 2014-08-21 00:33:04.000000000 +0900
+@@ -381,7 +381,8 @@
+ libptexenc_la_LIBADD = $(KPATHSEA_LIBS)
+ nobase_include_HEADERS = \
+ ptexenc/ptexenc.h \
+- ptexenc/unicode.h
++ ptexenc/unicode.h \
++ ptexenc/unicode-jp.h
+
+ EXTRA_DIST = COPYRIGHT ChangeLog.jp
+
Property changes on: trunk/print/tex-ptexenc/files/patch-Makefile.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/tex-ptexenc/files/patch-ptexenc.c
===================================================================
--- trunk/print/tex-ptexenc/files/patch-ptexenc.c (rev 0)
+++ trunk/print/tex-ptexenc/files/patch-ptexenc.c 2015-07-09 21:07:26 UTC (rev 19566)
@@ -0,0 +1,93 @@
+--- ptexenc.c.orig 2014-04-28 15:37:18.000000000 +0900
++++ ptexenc.c 2014-08-20 23:12:12.000000000 +0900
+@@ -15,6 +15,7 @@
+ #include <ptexenc/unicode-jp.h>
+
+ #include <ctype.h>
++#include <fnmatch.h>
+
+ #define ENC_UNKNOWN 0
+ #define ENC_JIS 1
+@@ -23,10 +24,46 @@
+ #define ENC_UTF8 4
+ #define ENC_UPTEX 5
+
+-static int default_kanji_enc;
++static int default_kanji_is_uptex;
+ static boolean UPTEX_enabled;
+ static boolean prior_file_enc = false;
+
++static struct le {
++ char *name;
++ int enc;
++ int flag;
++} letable[] = {
++ {"*.UTF-8", ENC_UTF8, FNM_NOESCAPE},
++ {"*.eucJP", ENC_EUC, FNM_NOESCAPE | FNM_CASEFOLD},
++ {"*.EUC-JP", ENC_EUC, FNM_NOESCAPE},
++ {"*.EUC", ENC_EUC, FNM_NOESCAPE | FNM_CASEFOLD},
++ {"*.PCK", ENC_SJIS, FNM_NOESCAPE | FNM_CASEFOLD},
++ {"*.SJIS", ENC_SJIS, FNM_NOESCAPE | FNM_CASEFOLD},
++ {"*.ISO-2022-JP", ENC_JIS, FNM_NOESCAPE | FNM_CASEFOLD},
++ {NULL, 0, 0}
++};
++
++static int
++default_kanji_enc(void)
++{
++ struct le *le;
++ const char *name;
++ int i;
++
++ if (default_kanji_is_uptex)
++ return (ENC_UPTEX);
++ name = getenv("LANG");
++ if (name == NULL)
++ return (ENC_UTF8);
++
++ for (i = 0; letable[i].name != NULL; i++) {
++ if (fnmatch(letable[i].name, name, letable[i].flag) !=
++ FNM_NOMATCH)
++ return (letable[i].enc);
++ }
++ return (ENC_UTF8);
++}
++
+ #define ESC '\033'
+
+ #ifndef NOFILE
+@@ -64,7 +101,7 @@
+ static int string_to_enc(const_string str)
+ {
+ if (str == NULL) return ENC_UNKNOWN;
+- if (strcasecmp(str, "default")== 0) return default_kanji_enc;
++ if (strcasecmp(str, "default")== 0) return default_kanji_enc();
+ if (strcasecmp(str, "jis") == 0) return ENC_JIS;
+ if (strcasecmp(str, "euc") == 0) return ENC_EUC;
+ if (strcasecmp(str, "sjis") == 0) return ENC_SJIS;
+@@ -92,7 +129,7 @@
+ } else if (enc != ENC_UNKNOWN) {
+ return enc;
+ }
+- return default_kanji_enc;
++ return default_kanji_enc();
+ }
+
+ static void set_file_enc(int enc)
+@@ -150,14 +187,14 @@
+ {
+ UPTEX_enabled = enable;
+ if (enable) {
+- default_kanji_enc = ENC_UPTEX;
++ default_kanji_is_uptex = 1;
+ internal_enc = ENC_UPTEX;
+ } else {
+ #ifdef WIN32
+ default_kanji_enc = ENC_SJIS;
+ internal_enc = ENC_SJIS;
+ #else
+- default_kanji_enc = ENC_UTF8;
++ default_kanji_is_uptex = 0;
+ internal_enc = ENC_EUC;
+ #endif
+ }
Property changes on: trunk/print/tex-ptexenc/files/patch-ptexenc.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/tex-ptexenc/pkg-descr
===================================================================
--- trunk/print/tex-ptexenc/pkg-descr (rev 0)
+++ trunk/print/tex-ptexenc/pkg-descr 2015-07-09 21:07:26 UTC (rev 19566)
@@ -0,0 +1,8 @@
+ptexenc is a useful library for Japanese pTeX (which stands for
+publishing TeX, and is an extension of TeX by ASCII Co.) and its
+surrounding tools. ptexenc provides a better way of handling
+character encodings.
+
+ptexenc is not an official product of ASCII Co., so pTeX and other
+tools need some patches to make use of it. Some patches are included
+within this archive.
Property changes on: trunk/print/tex-ptexenc/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/tex-ptexenc/pkg-plist
===================================================================
--- trunk/print/tex-ptexenc/pkg-plist (rev 0)
+++ trunk/print/tex-ptexenc/pkg-plist 2015-07-09 21:07:26 UTC (rev 19566)
@@ -0,0 +1,7 @@
+include/ptexenc/ptexenc.h
+include/ptexenc/unicode.h
+include/ptexenc/unicode-jp.h
+lib/libptexenc.a
+lib/libptexenc.so
+lib/libptexenc.so.1
+lib/libptexenc.so.1.3.2
Property changes on: trunk/print/tex-ptexenc/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list