aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@fuz.su>2021-09-02 16:23:15 +0000
committerJuraj Lutter <otis@FreeBSD.org>2021-09-02 20:42:20 +0000
commit82ebe485f60306d21adec8fa5765522b3490df22 (patch)
tree707aaa0eaa1e6356dbbd912182f0ce103140c3b1
parent17426ba8b1c664edd43d57c735f2193030e5a170 (diff)
downloadports-82ebe485f60306d21adec8fa5765522b3490df22.tar.gz
ports-82ebe485f60306d21adec8fa5765522b3490df22.zip
devel/schilybase: Update to 2021-09-01
Update to 2021-09-01 and while here, also: - add WWW to misc/schilytools/pkg-descr - use make loops and conditionals instead of shell loops - regenerate some patches to make them apply cleanly - add an NLS option to devel/schilybase (toggles dummy message catalogue generation) PR: 257905 Reported by: bugzeo <kiboto6933@eyeremind.com> Differential Revision: https://reviews.freebsd.org/D31808
-rw-r--r--devel/schilybase/Makefile23
-rw-r--r--devel/schilybase/Makefile.master30
-rw-r--r--devel/schilybase/distinfo6
-rw-r--r--devel/schilybase/files/SCHILY_utils.po14
-rw-r--r--devel/schilybase/files/patch-compare_Makefile4
-rw-r--r--devel/schilybase/files/patch-mt_Makefile8
-rw-r--r--devel/schilybase/pkg-plist45
-rw-r--r--misc/schilytools/pkg-descr2
8 files changed, 104 insertions, 28 deletions
diff --git a/devel/schilybase/Makefile b/devel/schilybase/Makefile
index 41998f7982a3..466d5d64f98c 100644
--- a/devel/schilybase/Makefile
+++ b/devel/schilybase/Makefile
@@ -3,10 +3,11 @@ CATEGORIES= devel
COMMENT= Support files and libraries for the schilytools
+NLS_USES= gettext-tools
USE_LDCONFIG= yes
-OPTIONS_DEFINE= PROFILE DOCS
-OPTIONS_DEFAULT=DOCS
+OPTIONS_DEFINE= DOCS NLS PROFILE
+OPTIONS_DEFAULT=DOCS NLS
OPTIONS_SUB= yes
# do not reorder: order required for build to succeed
@@ -39,6 +40,24 @@ COMPONENTS= conf \
man \
man/man4
+post-build-NLS-on:
+ ${SETENV} LC_ALL=de_DE.ISO8859-1 msgfmt -o ${WRKDIR}/SCHILY_utils.mo ${FILESDIR}/SCHILY_utils.po
+
+# all languages supported by FreeBSD
+_LANGUAGES= af am ar be bg ca cs da de el en es et eu fi fr ga he hi hr hu \
+ hy is it ja kk ko lt lv mn nb nl nn pl pt ro ru se sk sl sr sv \
+ tr uk zh
+
+post-install-NLS-on:
+ @${ECHO_MSG} '=> installing dummy message catalogues'
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/de/LC_MESSAGES
+ ${INSTALL_DATA} ${WRKDIR}/SCHILY_utils.mo ${STAGEDIR}${PREFIX}/share/locale/de/LC_MESSAGES/SCHILY_utils.mo
+.for lang in ${_LANGUAGES:Nde}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES
+ ${RLN} ${STAGEDIR}${PREFIX}/share/locale/de/LC_MESSAGES/SCHILY_utils.mo \
+ ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/SCHILY_utils.mo
+.endfor
+
post-install-PROFILE-off:
${RM} -r ${STAGEDIR}${PREFIX}/lib/profiled
diff --git a/devel/schilybase/Makefile.master b/devel/schilybase/Makefile.master
index 9a698745f70d..7e332cbb4bb7 100644
--- a/devel/schilybase/Makefile.master
+++ b/devel/schilybase/Makefile.master
@@ -1,4 +1,4 @@
-DISTVERSION= 2021-08-14
+DISTVERSION= 2021-09-01
MASTER_SITES= SF/schilytools
DISTNAME= schily-${DISTVERSION}
@@ -64,25 +64,21 @@ do-configure:
cd ${WRKSRC}/psmake && ${SETENV} ${MAKE_ENV} ${SH} ./MAKE-all
.endif
@${ECHO_MSG} "=> configuring components"
- for component in ${COMPONENTS} ; \
- do \
- cd ${WRKSRC}/$$component && \
- ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} config ; \
- done
+.for component in ${COMPONENTS}
+ cd ${WRKSRC}/${component} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} config
+.endfor
do-build:
- for component in ${COMPONENTS} ; \
- do \
- cd ${WRKSRC}/$$component && \
- ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} all ; \
- done
+.for component in ${COMPONENTS}
+ cd ${WRKSRC}/${component} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} all
+.endfor
do-install:
- for component in ${COMPONENTS} ; \
- do \
- cd ${WRKSRC}/$$component && \
- ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install ; \
- done
- [ -z "${COMPONENTS:Mlib*}" ] || ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
+.for component in ${COMPONENTS}
+ cd ${WRKSRC}/${component} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install
+.endfor
+.if "${COMPONENTS:Mlib}" != ""
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
+.endif
.include <bsd.port.mk>
diff --git a/devel/schilybase/distinfo b/devel/schilybase/distinfo
index a0beb1668d27..05e77d759ced 100644
--- a/devel/schilybase/distinfo
+++ b/devel/schilybase/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1629365867
-SHA256 (schily-2021-08-14.tar.bz2) = fb4e4c0ca534aa28127f7e7556c9017e059f4c7b93f6bfc33965f28091230f10
-SIZE (schily-2021-08-14.tar.bz2) = 4942864
+TIMESTAMP = 1630581827
+SHA256 (schily-2021-09-01.tar.bz2) = 8d1a6a1ff73144f3933367900a4f1ebe4aed63e5bb0db4e6aa2a108bb08024b8
+SIZE (schily-2021-09-01.tar.bz2) = 4954006
diff --git a/devel/schilybase/files/SCHILY_utils.po b/devel/schilybase/files/SCHILY_utils.po
new file mode 100644
index 000000000000..7bce85fee99b
--- /dev/null
+++ b/devel/schilybase/files/SCHILY_utils.po
@@ -0,0 +1,14 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Schilytools\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-08-21 10:40+0200\n"
+"Last-Translator: Jörg Schilling <EMAIL@ADDRESS>\n"
+"Language: all\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#, c-format
+msgid "Jörg Schilling"
+msgstr "Jörg Schilling"
diff --git a/devel/schilybase/files/patch-compare_Makefile b/devel/schilybase/files/patch-compare_Makefile
index e87e17a91e54..689f7e0a514b 100644
--- a/devel/schilybase/files/patch-compare_Makefile
+++ b/devel/schilybase/files/patch-compare_Makefile
@@ -1,4 +1,4 @@
---- compare/Makefile.orig 2021-06-21 15:02:35 UTC
+--- compare/Makefile.orig 2021-08-19 10:00:38 UTC
+++ compare/Makefile
@@ -6,7 +6,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.top
###########################################################################
@@ -8,4 +8,4 @@
+TARGET= scompare
CPPOPTS += -DUSE_LARGEFILES
CPPOPTS += -DSCHILY_PRINT
-
+ CPPOPTS += -DUSE_NLS # Include locale support
diff --git a/devel/schilybase/files/patch-mt_Makefile b/devel/schilybase/files/patch-mt_Makefile
index cf2d9c5cc929..ded376f5b604 100644
--- a/devel/schilybase/files/patch-mt_Makefile
+++ b/devel/schilybase/files/patch-mt_Makefile
@@ -1,4 +1,4 @@
---- mt/Makefile.orig 2021-06-07 13:29:48 UTC
+--- mt/Makefile.orig 2021-08-19 17:51:16 UTC
+++ mt/Makefile
@@ -7,7 +7,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.top
@@ -8,11 +8,11 @@
+#SYMLINKS= mt
CPPOPTS += -DUSE_REMOTE
CPPOPTS += -DSCHILY_PRINT
-
-@@ -17,7 +17,7 @@ CFILES= mt.c
+ CPPOPTS += -DUSE_NLS # Include locale support
+@@ -21,7 +21,7 @@ CFILES= mt.c
# LIB_CAP is needed for Linux capability support in librmt.
#
- LIBS= -lrmt -lschily $(LIB_SOCKET) $(LIB_CAP)
+ LIBS= -lrmt -lschily $(LIB_SOCKET) $(LIB_CAP) $(LIB_INTL)
-XMK_FILE= Makefile.man mt.mk1
+XMK_FILE= Makefile.man
diff --git a/devel/schilybase/pkg-plist b/devel/schilybase/pkg-plist
index ac4eedaefe53..d1fdf959a2f5 100644
--- a/devel/schilybase/pkg-plist
+++ b/devel/schilybase/pkg-plist
@@ -206,6 +206,51 @@ lib/libxtermcap.so.1.0
%%PROFILE%%lib/profiled/libxtermcap.a
%%PORTDOCS%%share/doc/libparanoia/README.interface
%%PORTDOCS%%share/doc/libparanoia/README.paranoia
+%%NLS%%share/locale/af/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/am/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/ar/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/be/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/da/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/de/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/el/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/en/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/es/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/et/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/he/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/hi/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/hy/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/is/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/it/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/kk/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/mn/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/se/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/SCHILY_utils.mo
+%%NLS%%share/locale/zh/LC_MESSAGES/SCHILY_utils.mo
share/lib/siconv/cp10000
share/lib/siconv/cp10006
share/lib/siconv/cp10007
diff --git a/misc/schilytools/pkg-descr b/misc/schilytools/pkg-descr
index 3f5b24aba9a5..bcc8a5346c2f 100644
--- a/misc/schilytools/pkg-descr
+++ b/misc/schilytools/pkg-descr
@@ -13,3 +13,5 @@ Programs and tools included in the Schily-Tools bundle:
* SCCS derived from OpenSolaris sources
* star, the oldest free TAR implementation, started in 1982
* ved, A portable, easy to learn and extremely fast screen oriented editor.
+
+WWW: http://schilytools.sourceforge.net/