diff options
author | Ozan Türkyılmaz <ozan.turkyilmaz@gmail.com> | 2022-05-12 17:59:25 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-14 19:27:52 +0700 |
commit | 7a0d559efed6058ec7dc3a1ded60b824a1569077 (patch) | |
tree | 1abb30ad82a8d1576ebc7466489d8e5f477e2c52 /libraries/libgdata | |
parent | a69f948e6660a831b81017477cb17603f0d0b71c (diff) | |
download | slackbuilds-7a0d559efed6058ec7dc3a1ded60b824a1569077.tar.gz |
libraries/libgdata: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libgdata')
-rw-r--r-- | libraries/libgdata/README | 12 | ||||
-rw-r--r-- | libraries/libgdata/libgdata.SlackBuild | 62 |
2 files changed, 55 insertions, 19 deletions
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 .. |