diff options
author | B. Watson <yalhcru@gmail.com> | 2018-07-02 15:52:13 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-07-07 06:54:21 +0700 |
commit | fefd3f96a8b0543b4459e7a91d421d098dce1de0 (patch) | |
tree | 92031882349107f58d1278ce27cd6ef56203ede3 | |
parent | ef9bb9951a5f152237ba2d964665193812fbfb6f (diff) |
audio/synthv1: Updated for version 0.9.1, French man page.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r-- | audio/synthv1/synthv1.SlackBuild | 44 | ||||
-rw-r--r-- | audio/synthv1/synthv1.info | 6 |
2 files changed, 45 insertions, 5 deletions
diff --git a/audio/synthv1/synthv1.SlackBuild b/audio/synthv1/synthv1.SlackBuild index d5806adbfe5b6..2c927fa9ba753 100644 --- a/audio/synthv1/synthv1.SlackBuild +++ b/audio/synthv1/synthv1.SlackBuild @@ -6,6 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20180702 bkw: updated for v0.9.1, install French man page correctly. # 20180615 bkw: updated for v0.9.0 # 20180101 bkw: updated for v0.8.6 # 20171220 bkw: updated for v0.8.5. Skipped 0.8.4 due to compile errors. @@ -15,7 +16,7 @@ # 20170324 bkw: updated for v0.8.1 PRGNAM=synthv1 -VERSION=${VERSION:-0.9.0} +VERSION=${VERSION:-0.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -82,9 +83,48 @@ make install DESTDIR=$PKG [ -d $PKG/usr/share/metainfo ] && \ mv $PKG/usr/share/metainfo $PKG/usr/share/appdata +# 20180702 bkw: big long block of notes-to-self (and hopefully others): + +# Upstream ships a French man page, but installs it in the wrong place. + +# The Slackware situation with character sets and man pages confusing to +# begin with, and is in flux because post-14.2 -current has switched to +# using man-db. A lot of Slackware packages (not just SBo ones) get this +# stuff wrong. + +# For 14.2, using old-school man, the man page has to be in ISO-8859-1, +# in the /usr/man/fr/ directory. This works for LANG=fr_FR (page is +# used as-is) and also LANG=fr_FR.UTF-8 (man command converts it to +# UTF-8 for displaying). Old-school man doesn't even look for a +# /usr/man/fr.UTF-8/ dir at all. + +# 15.0, using man-db, works the opposite way: the man page should be +# in UTF-8, stored in /usr/man/fr.UTF-8/, and will be used as-is if +# LANG=fr_FR.UTF-8. If LANG=fr_FR, man-db will convert it to ISO-8859-1 +# for display. + +# The situation is even worse if you speak e.g. Japanese: I haven't found +# a way to make 14.2's man display Japanese at all (which is one of the +# reasons 15.0 will be using man-db actually). + +# For this build, upstream's French man page is UTF-8, so for 14.2 we have +# to convert it to ISO-8859-1 here. When updating this script for 15.0, +# we'll be able to get rid of the conversion (and most of this comment +# block!) and ship only the UTF-8 man page. For now, include both, +# to be -current-friendly. + +mkdir -p $PKG/usr/man/fr/man1 $PKG/usr/man/fr.UTF-8/man1 +mv $PKG/usr/man/man1/$PRGNAM.fr.1.gz $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz +zcat $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz | \ + iconv -f UTF-8 -t ISO-8859-1 | \ + gzip -9c \ + > $PKG/usr/man/fr/man1/$PRGNAM.1.gz + # binaries already stripped, man page already gzipped. make symlink # to man page, to match the actual name of the binary. -ln -s $PRGNAM.1.gz $PKG/usr/man/man1/${PRGNAM}_jack.1.gz +for i in man1 fr/man1 fr.UTF-8/man1; do + ln -s $PRGNAM.1.gz $PKG/usr/man/$i/${PRGNAM}_jack.1.gz +done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/audio/synthv1/synthv1.info b/audio/synthv1/synthv1.info index 141af9022f40b..8bd478d27940b 100644 --- a/audio/synthv1/synthv1.info +++ b/audio/synthv1/synthv1.info @@ -1,8 +1,8 @@ PRGNAM="synthv1" -VERSION="0.9.0" +VERSION="0.9.1" HOMEPAGE="https://synthv1.sourceforge.io/" -DOWNLOAD="https://downloads.sourceforge.net/project/synthv1/synthv1/0.9.0/synthv1-0.9.0.tar.gz" -MD5SUM="4af8ebd4249424eb94f51c2a09fdf13e" +DOWNLOAD="https://downloads.sourceforge.net/project/synthv1/synthv1/0.9.1/synthv1-0.9.1.tar.gz" +MD5SUM="e53c7655fd554cfd0432d1a9220474dd" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jack-audio-connection-kit" |