summaryrefslogtreecommitdiff
path: root/system/mdocml/mdocml.SlackBuild
diff options
context:
space:
mode:
authorLEVAI Daniel <leva@ecentrum.hu>2015-10-29 19:45:43 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-29 19:45:43 +0700
commit49240572cf91cd1a9e278857fcc30d8435800e4a (patch)
tree0e1dc9639a54b26eccd8310301acf82ab495d280 /system/mdocml/mdocml.SlackBuild
parent280b4372449470f0abfc0750b81f9d24ea86c024 (diff)
downloadslackbuilds-49240572cf91cd1a9e278857fcc30d8435800e4a.tar.gz
system/mdocml: Updated for version 1.13.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mdocml/mdocml.SlackBuild')
-rw-r--r--system/mdocml/mdocml.SlackBuild41
1 files changed, 14 insertions, 27 deletions
diff --git a/system/mdocml/mdocml.SlackBuild b/system/mdocml/mdocml.SlackBuild
index be2904fee5..db389491b4 100644
--- a/system/mdocml/mdocml.SlackBuild
+++ b/system/mdocml/mdocml.SlackBuild
@@ -24,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mdocml
-VERSION=${VERSION:-1.13.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.13.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,31 +70,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# XXX We can get back to "Slackware Linux" for OSNAME with 1.13.2
-CFLAGS=$SLKCFLAGS' -DOSNAME="\"Slackware\""' \
+if [ -z "${REPLACE_MAN}" ];then
+ 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 install DESTDIR=$PKG PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX}/mdocml
-
-mkdir -m755 -p $PKG/etc/
-install -m 644 -o root -g root $CWD/mandoc.conf.new $PKG/etc/
-
-# 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
+make install \
+ DESTDIR=$PKG \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib${LIBDIRSUFFIX}
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
@@ -108,7 +96,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}