aboutsummaryrefslogtreecommitdiff
path: root/japanese/less
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-01-20 01:29:21 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-01-20 01:29:21 +0000
commit40aeca76733258044209ef46c289c999e24b6670 (patch)
tree35fa6e9f611123a4472057bf5d2ab85fabf43d96 /japanese/less
parent15e96412330f005711a04b81e572cd975b332247 (diff)
downloadports-40aeca76733258044209ef46c289c999e24b6670.tar.gz
ports-40aeca76733258044209ef46c289c999e24b6670.zip
Notes
Diffstat (limited to 'japanese/less')
-rw-r--r--japanese/less/Makefile4
-rw-r--r--japanese/less/files/patch-charset.c41
2 files changed, 43 insertions, 2 deletions
diff --git a/japanese/less/Makefile b/japanese/less/Makefile
index a3292fad99f5..f49868ffe611 100644
--- a/japanese/less/Makefile
+++ b/japanese/less/Makefile
@@ -3,7 +3,7 @@
PORTNAME= less+iso
PORTVERSION= 382.262
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nork
@@ -33,7 +33,7 @@ CONFIGURE_ARGS= --with-cs-regex
MAN1= jless.1 jlesskey.1
DOCSDIR= ${PREFIX}/share/doc/less
PORTDOCS= README.iso README.iso.jp README.lesw.euc \
- README.regex README.regex.jp
+ README.regex README.regex.jp README.ext.jp
post-extract:
cd ${WRKDIR} && \
diff --git a/japanese/less/files/patch-charset.c b/japanese/less/files/patch-charset.c
new file mode 100644
index 000000000000..2e208e62aca5
--- /dev/null
+++ b/japanese/less/files/patch-charset.c
@@ -0,0 +1,41 @@
+--- charset.c.orig 2013-01-20 04:32:52.491037000 +0900
++++ charset.c 2013-01-20 05:05:01.106026675 +0900
+@@ -872,6 +872,18 @@
+ return;
+ }
+
++#if HAVE_LOCALE
++ /*
++ * Use setlocale.
++ */
++ ilocale();
++#else
++#if MSDOS_COMPILER
++ /*
++ * Default to "dos".
++ */
++ (void) icharset("dos");
++#else
+ #if HAVE_STRSTR
+ /*
+ * Check whether LC_ALL, LC_CTYPE or LANG look like UTF-8 is used.
+@@ -888,19 +900,6 @@
+ return;
+ }
+ #endif
+-
+-#if HAVE_LOCALE
+- /*
+- * Use setlocale.
+- */
+- ilocale();
+-#else
+-#if MSDOS_COMPILER
+- /*
+- * Default to "dos".
+- */
+- (void) icharset("dos");
+-#else
+ /*
+ * All variables are not defined either, default to DEFCHARSET.
+ * DEFCHARSET is defined in defines.h.