diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-18 13:16:39 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-18 13:16:39 -0400 |
commit | ec2dbc5a3295603e07f42adeb683c9d8a58fdad6 (patch) | |
tree | 149be309591083cb80ee14947757f2eacf7a3eef /libraries/tclap | |
parent | 49f2d0f9fe7169c71ac542783d0802741fe6dad9 (diff) |
libraries/tclap: Make API docs optional.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/tclap')
-rw-r--r-- | libraries/tclap/README | 5 | ||||
-rw-r--r-- | libraries/tclap/tclap.SlackBuild | 30 |
2 files changed, 24 insertions, 11 deletions
diff --git a/libraries/tclap/README b/libraries/tclap/README index 18bfebd9d679..80108d7a9979 100644 --- a/libraries/tclap/README +++ b/libraries/tclap/README @@ -1,3 +1,8 @@ TCLAP is a small templatized library that provides a simple interface for defining and accessing command line arguments. It was intially inspired by the user friendly CLAP libary. + +By default, the API documentation is not built, as it's rather +resource-intensive, and not required unless you're a developer. If +you need the API docs, install graphviz, then run this build with +APIDOC=yes in the environment. diff --git a/libraries/tclap/tclap.SlackBuild b/libraries/tclap/tclap.SlackBuild index 40ddd614f1c2..9a3e7084b14a 100644 --- a/libraries/tclap/tclap.SlackBuild +++ b/libraries/tclap/tclap.SlackBuild @@ -22,25 +22,27 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220417 bkw: Modified by SlackBuilds.org, BUILD=2: +# - make API docs optional. +# - remove useless INSTAL from doc dir. +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tclap VERSION=${VERSION:-1.2.2} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -50,8 +52,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -75,9 +77,12 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ + +apidocopt="--disable-doxygen" +[ "${APIDOC:-no}" = "yes" ] && apidocopt="--enable-doxygen" CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -87,14 +92,17 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + $apidocopt \ --build=$ARCH-slackware-linux make docdir=/usr/doc/$PRGNAM-$VERSION make install docdir=/usr/doc/$PRGNAM-$VERSION DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +# 20220418 bkw: this dir is empty if we disabled doxygen: +rmdir $PKG/usr/doc/$PRGNAM-$VERSION/html &>/dev/null || true + cp -a \ - AUTHORS COPYING ChangeLog INSTALL NEWS README \ + AUTHORS COPYING ChangeLog NEWS README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |