system/mdocml: Updated for version 1.13.3.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
LEVAI Daniel 2015-10-29 19:45:43 +07:00 committed by Willy Sudiarto Raharjo
parent 280b437244
commit 49240572cf
6 changed files with 27 additions and 30 deletions

View file

@ -8,3 +8,13 @@ XHTML, HTML, PostScript, and PDF. It also includes preconv, for recoding
multibyte manuals; demandoc, for emitting only text parts of manuals; mandocdb, multibyte manuals; demandoc, for emitting only text parts of manuals; mandocdb,
for indexing manuals; and apropos, whatis, and man.cgi (via catman) for for indexing manuals; and apropos, whatis, and man.cgi (via catman) for
semantic search of manual content. semantic search of manual content.
There is an environment variable called REPLACE_MAN, that if set to a non-empty
string, will instruct the slackbuild script to replace the stock man package
(you should remove(pkg) it first, though).
After installing, make sure to (re)create the mandoc specific "whatis"
database(s) in your manpath(s), eg.:
# mandocdb /usr/man /usr/local/man
... or, if you've chosen to replace man, then:
# makewhatis /usr/man /usr/local/man

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -24,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mdocml PRGNAM=mdocml
VERSION=${VERSION:-1.13.1} VERSION=${VERSION:-1.13.3}
BUILD=${BUILD:-2} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -70,31 +70,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# XXX We can get back to "Slackware Linux" for OSNAME with 1.13.2 if [ -z "${REPLACE_MAN}" ];then
CFLAGS=$SLKCFLAGS' -DOSNAME="\"Slackware\""' \ gzip -dc "${CWD}"/configure-noconflict.local.gz >./configure.local
else
gzip -dc "${CWD}"/configure-replace.local.gz >./configure.local
fi
zcat "${CWD}"/mansearch_c-regcomp_compat.diff.gz |patch -p0
./configure
CFLAGS=$SLKCFLAGS \
make make
make install DESTDIR=$PKG PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX}/mdocml make install \
DESTDIR=$PKG \
mkdir -m755 -p $PKG/etc/ PREFIX=/usr \
install -m 644 -o root -g root $CWD/mandoc.conf.new $PKG/etc/ LIBDIR=/usr/lib${LIBDIRSUFFIX}
# don't conflict with stock man
mv $PKG/usr/sbin/makewhatis $PKG/usr/sbin/makewhatis-mdocml
mv $PKG/usr/man/man8/makewhatis.8 $PKG/usr/man/man8/makewhatis-mdocml.8
mv $PKG/usr/bin/whatis $PKG/usr/bin/whatis-mdocml
mv $PKG/usr/man/man1/whatis.1 $PKG/usr/man/man1/whatis-mdocml.1
mv $PKG/usr/bin/apropos $PKG/usr/bin/apropos-mdocml
rm -f $PKG/usr/man/man1/apropos.1
ln -s whatis-mdocml.1 $PKG/usr/man/man1/apropos-mdocml.1
# don't conflict with stock groff
mv $PKG/usr/bin/preconv $PKG/usr/bin/preconv-mdocml
mv $PKG/usr/man/man1/preconv.1 $PKG/usr/man/man1/preconv-mdocml.1
mv $PKG/usr/man/man7/man.7 $PKG/usr/man/man7/man-mdocml.7
mv $PKG/usr/man/man7/mdoc.7 $PKG/usr/man/man7/mdoc-mdocml.7
mv $PKG/usr/man/man7/roff.7 $PKG/usr/man/man7/roff-mdocml.7
mv $PKG/usr/man/man7/tbl.7 $PKG/usr/man/man7/tbl-mdocml.7
mv $PKG/usr/man/man7/eqn.7 $PKG/usr/man/man7/eqn-mdocml.7
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@ -108,7 +96,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,8 @@
PRGNAM="mdocml" PRGNAM="mdocml"
VERSION="1.13.1" VERSION="1.13.3"
HOMEPAGE="http://mdocml.bsd.lv/" HOMEPAGE="http://mdocml.bsd.lv/"
DOWNLOAD="http://mdocml.bsd.lv/snapshots/mdocml-1.13.1.tar.gz" DOWNLOAD="http://mdocml.bsd.lv/snapshots/mdocml-1.13.3.tar.gz"
MD5SUM="8f9c366a95a568026f14eab45f3dfa9b" MD5SUM="7be80e1116a11abe2aabd6b2f04434ef"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""