From 7a0d559efed6058ec7dc3a1ded60b824a1569077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20T=C3=BCrky=C4=B1lmaz?= Date: Thu, 12 May 2022 17:59:25 +0300 Subject: libraries/libgdata: Use yes/no for build options Signed-off-by: Willy Sudiarto Raharjo --- libraries/libgdata/README | 12 +++---- libraries/libgdata/libgdata.SlackBuild | 62 +++++++++++++++++++++++++++------- 2 files changed, 55 insertions(+), 19 deletions(-) (limited to 'libraries/libgdata') diff --git a/libraries/libgdata/README b/libraries/libgdata/README index 3e406646ca..fcbc29f6f8 100644 --- a/libraries/libgdata/README +++ b/libraries/libgdata/README @@ -4,9 +4,9 @@ APIs to access the common Google services, and has full asynchronous support. Below variables can be used to configure the build: - GTKDOC=true : Builds gtkdocs - INSTROSPECTION=true : Enables the introspection generation - TESTS=true : Build & install test programs - VAPI=true : Enable creation of vapi files - OAUTH=enabled : Enable OAuth 1.0 support (deprecated) - MAN=true : Generate man pages + GTKDOC=yes : Builds gtkdocs + INSTROSPECTION=yes : Enables the introspection generation + TESTS=yes : Build & install test programs + VAPI=yes : Enable creation of vapi files + OAUTH=yes : Enable OAuth 1.0 support (deprecated) + MAN=yes : Generate man pages diff --git a/libraries/libgdata/libgdata.SlackBuild b/libraries/libgdata/libgdata.SlackBuild index d6626f6f4f..1f309d00aa 100644 --- a/libraries/libgdata/libgdata.SlackBuild +++ b/libraries/libgdata/libgdata.SlackBuild @@ -26,16 +26,52 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libgdata VERSION=${VERSION:-0.18.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -TESTS=${TESTS:-false} -GTKDOC=${GTKDOC:-false} -INTROSPECTION=${INTROSPECTION:-false} -VAPI=${VAPI:-false} -OAUTH1=${OAUTH1=disabled} -MAN=${MAN:-false} +TESTS=${TESTS:-no} +GTKDOC=${GTKDOC:-no} +INTROSPECTION=${INTROSPECTION:-no} +VAPI=${VAPI:-no} +OAUTH1=${OAUTH1=no} +MAN=${MAN:-no} + +if [ "$TESTS" = "yes" ]; then + TESTSP="true" +else + TESTSP="false" +fi + +if [ "$GTKDOC" = "yes" ]; then + GTKDOCP="true" +else + GTKDOCP="false" +fi + +if [ "$INTROSPECTION" = "yes" ]; then + INTROSPECTIONP="true" +else + INTROSPECTIONP="false" +fi + +if [ "$VAPI" = "yes" ]; then + VAPIP="true" +else + VAPIP="false" +fi + +if [ "$OAUTH1" = "yes" ]; then + OAUTH1P="enabled" +else + OAUTH1P="disabled" +fi + +if [ "$MAN" = "yes" ]; then + MANP="true" +else + MANP="false" +fi if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -104,12 +140,12 @@ cd build -Dgtk=enabled \ -Dgnome=disabled \ -Dgoa=enabled \ - -Dalways_build_tests="$TESTS" \ - -Dgtk_doc="$GTKDOC" \ - -Dintrospection="$INTROSPECTION" \ - -Dvapi="$VAPI" \ - -Doauth1="$OAUTH1" \ - -Dman="$MAN" + -Dalways_build_tests="$TESTSP" \ + -Dgtk_doc="$GTKDOCP" \ + -Dintrospection="$INTROSPECTIONP" \ + -Dvapi="$VAPIP" \ + -Doauth1="$OAUTH1P" \ + -Dman="$MANP" "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install cd .. -- cgit v1.2.3