aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorOzan Türkyılmaz <ozan.turkyilmaz@gmail.com>2022-05-12 17:59:25 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-14 19:27:52 +0700
commit7a0d559efed6058ec7dc3a1ded60b824a1569077 (patch)
tree1abb30ad82a8d1576ebc7466489d8e5f477e2c52 /libraries
parenta69f948e6660a831b81017477cb17603f0d0b71c (diff)
libraries/libgdata: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libgdata/README12
-rw-r--r--libraries/libgdata/libgdata.SlackBuild62
2 files changed, 55 insertions, 19 deletions
diff --git a/libraries/libgdata/README b/libraries/libgdata/README
index 3e406646ca84..fcbc29f6f841 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 d6626f6f4fdb..1f309d00aab7 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 ..