mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
libraries/argtable: Updated for version 2.13 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
11d40c4532
commit
3701594fe5
3 changed files with 104 additions and 15 deletions
|
@ -22,9 +22,24 @@
|
||||||
|
|
||||||
# Modified by the SlackBuilds.org Project
|
# Modified by the SlackBuilds.org Project
|
||||||
|
|
||||||
|
# modified again 20140210 bkw:
|
||||||
|
# - took over maintenance
|
||||||
|
# - update for v2.13
|
||||||
|
# - derive SRCVER from VERSION
|
||||||
|
# - 'make install-strip' instead of boilerplate find/strip
|
||||||
|
# - get rid of static lib
|
||||||
|
# - simplify man page gzipping, make argtable.3.gz a symlink to
|
||||||
|
# argtable2.3.gz, since they're identical
|
||||||
|
# - don't need full API docs in HTML, PDF, *and* PS, install only
|
||||||
|
# HTML by default, add env vars for PS and PDF
|
||||||
|
# - don't install INSTALL (it's autoconf boilerplate)
|
||||||
|
# - do install AUTHORS (contains actual information)
|
||||||
|
# - fix paths in FILES section of man page + html doc
|
||||||
|
# Installed package is now 1/14 the size the old 2.9 package was.
|
||||||
|
|
||||||
PRGNAM=argtable
|
PRGNAM=argtable
|
||||||
VERSION=2.9
|
VERSION=${VERSION:-2.13}
|
||||||
SRCVER=2-9
|
SRCVER=${VERSION/./-}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -70,6 +85,9 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
|
# man and html pages misuse autoconf macros
|
||||||
|
patch -p1 < $CWD/doc_paths.diff
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -79,21 +97,32 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-static \
|
||||||
--build=$ARCH-slackware-linux \
|
--build=$ARCH-slackware-linux \
|
||||||
--host=$ARCH-slackware-linux
|
--host=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install-strip DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
# upstream installs 2 copies of the man page, use symlink instead
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
MAN3=$PKG/usr/man/man3
|
||||||
|
rm -f $MAN3/$PRGNAM.3
|
||||||
|
gzip $MAN3/${PRGNAM}2.3
|
||||||
|
ln -s ${PRGNAM}2.3.gz $MAN3/$PRGNAM.3.gz
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
# before adding this bit, the package was 4.7MB ungzipped, 4.3MB (92%)
|
||||||
find . -type f -name "*.?" -exec gzip -9 {} \;
|
# of which were PDF and PostScript copies of the API docs, which almost
|
||||||
)
|
# nobody is ever going to read anyway. We'll keep the HTML ones, they're
|
||||||
|
# the same information, much smaller. If anyone *really* wants the bloated
|
||||||
|
# docs, they can set PS=yes and/or PDF=yes.
|
||||||
|
|
||||||
cp -a ChangeLog COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
|
DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
[ "${PS:-no}" != "yes" ] && rm -f $DOCDIR/*.ps
|
||||||
|
[ "${PDF:-no}" != "yes" ] && rm -f $DOCDIR/*.pdf
|
||||||
|
|
||||||
|
cp -a AUTHORS ChangeLog COPYING README $DOCDIR
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$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
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="argtable"
|
PRGNAM="argtable"
|
||||||
VERSION="2.9"
|
VERSION="2.13"
|
||||||
HOMEPAGE="http://argtable.sourceforge.net/"
|
HOMEPAGE="http://argtable.sourceforge.net/"
|
||||||
DOWNLOAD="http://prdownloads.sourceforge.net/argtable/argtable2-9.tar.gz"
|
DOWNLOAD="http://prdownloads.sourceforge.net/argtable/argtable2-13.tar.gz"
|
||||||
MD5SUM="a7fcddef768db0ae66534ec4c4a51dee"
|
MD5SUM="156773989d0d6406cea36526d3926668"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
MAINTAINER="Rodney Cobb"
|
MAINTAINER="B. Watson"
|
||||||
EMAIL="rdc@ktabic.co.uk"
|
EMAIL="yalhcru@gmail.com"
|
||||||
|
|
60
libraries/argtable/doc_paths.diff
Normal file
60
libraries/argtable/doc_paths.diff
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
diff -Naur argtable2-13/doc/argtable2.3.in argtable2-13.patched/doc/argtable2.3.in
|
||||||
|
--- argtable2-13/doc/argtable2.3.in 2011-01-10 05:44:01.000000000 -0500
|
||||||
|
+++ argtable2-13.patched/doc/argtable2.3.in 2014-02-10 08:52:25.000000000 -0500
|
||||||
|
@@ -59,7 +59,7 @@
|
||||||
|
Argtable is an ANSI C library for parsing GNU style command line arguments with a minimum of fuss. It enables the programmer to define their program's argument syntax directly in the source code as an array of structs. The command line is then parsed according to that specification and the resulting values stored directly into user\-defined program variables where they are accessible to the main program.
|
||||||
|
.PP
|
||||||
|
This man page is only for reference.
|
||||||
|
-Introductory documentation and example source code is typically installed under \fB@prefix@/share/doc/argtable2/\fP
|
||||||
|
+Introductory documentation and example source code is typically installed under \fB@docdir@/\fP
|
||||||
|
and is also available from the argtable homepage at http://argtable.sourceforge.net.
|
||||||
|
|
||||||
|
.SS Constructing an arg_<xxx> data structure
|
||||||
|
@@ -352,15 +352,13 @@
|
||||||
|
.SH "FILES"
|
||||||
|
@prefix@/include/argtable2.h
|
||||||
|
.br
|
||||||
|
-@prefix@/lib/libargtable2.a
|
||||||
|
+@libdir@/libargtable2.so
|
||||||
|
.br
|
||||||
|
-@prefix@/lib/libargtable2.so
|
||||||
|
+@mandir@/man3/argtable2.3.gz
|
||||||
|
.br
|
||||||
|
-@prefix@/man3/argtable2.3
|
||||||
|
+@docdir@/
|
||||||
|
.br
|
||||||
|
-@prefix@/share/doc/argtable2/
|
||||||
|
-.br
|
||||||
|
-@prefix@/share/doc/argtable2/example/
|
||||||
|
+@docdir@/example/
|
||||||
|
|
||||||
|
.SH "AUTHOR"
|
||||||
|
Stewart Heitmann <sheitmann@users.sourceforge.net>
|
||||||
|
diff -Naur argtable2-13/doc/argtable2.html.in argtable2-13.patched/doc/argtable2.html.in
|
||||||
|
--- argtable2-13/doc/argtable2.html.in 2011-01-10 06:29:53.000000000 -0500
|
||||||
|
+++ argtable2-13.patched/doc/argtable2.html.in 2014-02-10 08:52:20.000000000 -0500
|
||||||
|
@@ -115,7 +115,7 @@
|
||||||
|
<p style="margin-left:11%; margin-top: 1em">This man page
|
||||||
|
is only for reference. Introductory documentation and
|
||||||
|
example source code is typically installed under
|
||||||
|
-<b>@prefix@/share/doc/argtable2/</b> and is also available
|
||||||
|
+<b>@docdir@/</b> and is also available
|
||||||
|
from the argtable homepage at
|
||||||
|
http://argtable.sourceforge.net.</p>
|
||||||
|
|
||||||
|
@@ -577,11 +577,10 @@
|
||||||
|
|
||||||
|
<p style="margin-left:11%; margin-top: 1em">@prefix@/include/argtable2.h
|
||||||
|
<br>
|
||||||
|
-@prefix@/lib/libargtable2.a <br>
|
||||||
|
-@prefix@/lib/libargtable2.so <br>
|
||||||
|
-@prefix@/man3/argtable2.3 <br>
|
||||||
|
-@prefix@/share/doc/argtable2/ <br>
|
||||||
|
-@prefix@/share/doc/argtable2/example/</p>
|
||||||
|
+@libdir@/libargtable2.so <br>
|
||||||
|
+@mandir@/man3/argtable2.3.gz <br>
|
||||||
|
+@docdir@/ <br>
|
||||||
|
+@docdir@/example/</p>
|
||||||
|
|
||||||
|
<h2>AUTHOR
|
||||||
|
<a name="AUTHOR"></a>
|
Loading…
Reference in a new issue