pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc
Module Name: pkgsrc
Committed By: nia
Date: Mon Jan 26 19:43:32 UTC 2026
Modified Files:
pkgsrc/textproc: Makefile
Added Files:
pkgsrc/textproc/jstrings: DESCR Makefile PLIST distinfo
pkgsrc/textproc/jstrings/patches: patch-CMakeLists.txt
patch-inc_enc__shiftjis.hpp
Log Message:
jstrings: Initial import.
A tool for finding JIS encoded Japanese text in binary data.
Verified to build on NetBSD, FreeBSD, OpenBSD, macOS, Linux.
To generate a diff of this commit:
cvs rdiff -u -r1.1568 -r1.1569 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/jstrings/DESCR \
pkgsrc/textproc/jstrings/Makefile pkgsrc/textproc/jstrings/PLIST \
pkgsrc/textproc/jstrings/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/jstrings/patches/patch-CMakeLists.txt \
pkgsrc/textproc/jstrings/patches/patch-inc_enc__shiftjis.hpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1568 pkgsrc/textproc/Makefile:1.1569
--- pkgsrc/textproc/Makefile:1.1568 Sun Jan 25 13:48:47 2026
+++ pkgsrc/textproc/Makefile Mon Jan 26 19:43:32 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1568 2026/01/25 13:48:47 alnsn Exp $
+# $NetBSD: Makefile,v 1.1569 2026/01/26 19:43:32 nia Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -503,6 +503,7 @@ SUBDIR+= json-schema
SUBDIR+= json-yaml
SUBDIR+= json2tsv
SUBDIR+= jsoncpp
+SUBDIR+= jstrings
SUBDIR+= kakasi
SUBDIR+= kapidox
SUBDIR+= kbanner
Added files:
Index: pkgsrc/textproc/jstrings/DESCR
diff -u /dev/null pkgsrc/textproc/jstrings/DESCR:1.1
--- /dev/null Mon Jan 26 19:43:32 2026
+++ pkgsrc/textproc/jstrings/DESCR Mon Jan 26 19:43:32 2026
@@ -0,0 +1 @@
+A tool for finding JIS encoded Japanese text in binary data.
Index: pkgsrc/textproc/jstrings/Makefile
diff -u /dev/null pkgsrc/textproc/jstrings/Makefile:1.1
--- /dev/null Mon Jan 26 19:43:32 2026
+++ pkgsrc/textproc/jstrings/Makefile Mon Jan 26 19:43:32 2026
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2026/01/26 19:43:32 nia Exp $
+
+DISTNAME= jstrings-1.6
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=drojaazu/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/drojaazu/jstrings
+COMMENT= Tool for finding Shift JIS in binary data
+LICENSE= mit
+
+USE_LANGUAGES= c c++
+
+USE_CXX_FEATURES= c++17
+
+.include "../../devel/cmake/build.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/jstrings/PLIST
diff -u /dev/null pkgsrc/textproc/jstrings/PLIST:1.1
--- /dev/null Mon Jan 26 19:43:32 2026
+++ pkgsrc/textproc/jstrings/PLIST Mon Jan 26 19:43:32 2026
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2026/01/26 19:43:32 nia Exp $
+bin/jstrings
Index: pkgsrc/textproc/jstrings/distinfo
diff -u /dev/null pkgsrc/textproc/jstrings/distinfo:1.1
--- /dev/null Mon Jan 26 19:43:32 2026
+++ pkgsrc/textproc/jstrings/distinfo Mon Jan 26 19:43:32 2026
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2026/01/26 19:43:32 nia Exp $
+
+BLAKE2s (jstrings-1.6.tar.gz) = d951227b527a085816dd158ae8de362eb0f6aba1a46855fde03bbab8f3691267
+SHA512 (jstrings-1.6.tar.gz) = b9f73e1383cd4038c99a2ae8d3a8f65d4cc77ea9c4f84546740b9f8d4f166aa9b192fd313698de0589530102f9261430bd608f959773514053627cccce95c68f
+Size (jstrings-1.6.tar.gz) = 131767 bytes
+SHA1 (patch-CMakeLists.txt) = 82548ec22175eccb038250452f15b9fba72b77f6
+SHA1 (patch-inc_enc__shiftjis.hpp) = cb5d584c44725f566c503e9b5c85c3ff0f587d90
Index: pkgsrc/textproc/jstrings/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/textproc/jstrings/patches/patch-CMakeLists.txt:1.1
--- /dev/null Mon Jan 26 19:43:32 2026
+++ pkgsrc/textproc/jstrings/patches/patch-CMakeLists.txt Mon Jan 26 19:43:32 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2026/01/26 19:43:32 nia Exp $
+
+Make iconv dependency optional, some systems have it in libc.
+
+--- CMakeLists.txt.orig 2026-01-26 19:30:15.724494513 +0000
++++ CMakeLists.txt
+@@ -32,11 +32,9 @@ find_library(ICONV_LIB iconv)
+
+ find_library(ICONV_LIB iconv)
+
+-if(NOT ICONV_LIB)
+- message(FATAL_ERROR "libiconv not found")
++if(ICONV_LIB)
++ target_link_libraries(${PROJECT_NAME} iconv)
+ endif()
+-
+-target_link_libraries(${PROJECT_NAME} iconv)
+
+ install(TARGETS jstrings
+ RUNTIME DESTINATION bin)
Index: pkgsrc/textproc/jstrings/patches/patch-inc_enc__shiftjis.hpp
diff -u /dev/null pkgsrc/textproc/jstrings/patches/patch-inc_enc__shiftjis.hpp:1.1
--- /dev/null Mon Jan 26 19:43:32 2026
+++ pkgsrc/textproc/jstrings/patches/patch-inc_enc__shiftjis.hpp Mon Jan 26 19:43:32 2026
@@ -0,0 +1,26 @@
+$NetBSD: patch-inc_enc__shiftjis.hpp,v 1.1 2026/01/26 19:43:32 nia Exp $
+
+NetBSD does not recognize SHIFT-JIS as a valid encoding without the
+underscore.
+
+--- inc/enc_shiftjis.hpp.orig 2026-01-26 19:15:04.811539545 +0000
++++ inc/enc_shiftjis.hpp
+@@ -18,7 +18,11 @@ class shiftjis_validator : public jis_validator (priva
+ class shiftjis_validator : public jis_validator
+ {
+ private:
++#ifdef __NetBSD__
++ constexpr static char const * m_iconvcode = "SHIFT_JIS";
++#else
+ constexpr static char const * m_iconvcode = "SHIFT-JIS";
++#endif
+
+ public:
+ shiftjis_validator() :
+@@ -29,4 +33,4 @@ class shiftjis_validator : public jis_validator (priva
+ };
+
+ } // namespace motoi
+-#endif
+\ No newline at end of file
++#endif
Home |
Main Index |
Thread Index |
Old Index