aboutsummaryrefslogtreecommitdiff
path: root/development/gtest
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2024-03-04 09:33:28 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-03-09 08:08:18 +0700
commite56659aaa92c36722ae4101f42ebad86c854a272 (patch)
tree10e3bd2d9ad74250ca1e425a653c3e02e1a40376 /development/gtest
parent33029875235e167a84210783e0178de5b823e8d7 (diff)
development/gtest: Downgraded to version 1.12.1.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/gtest')
-rw-r--r--development/gtest/gtest.SlackBuild42
-rw-r--r--development/gtest/gtest.info6
2 files changed, 29 insertions, 19 deletions
diff --git a/development/gtest/gtest.SlackBuild b/development/gtest/gtest.SlackBuild
index d0e3eccbfca1..867de2d6e992 100644
--- a/development/gtest/gtest.SlackBuild
+++ b/development/gtest/gtest.SlackBuild
@@ -2,8 +2,8 @@
# Slackware build script for gtest
-# Copyright 2016-2024 Dimitris Zlatanidis Orestiada, Greece
# 2013-02-12 Bernski Comadizo <bcomadizo@gmail.com> Cebu
+# Copyright 2016-2024 Dimitris Zlatanidis Orestiada, Greece
#
# All rights reserved.
#
@@ -24,14 +24,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220415 bkw: Modified by SlackBuilds.org, BUILD=4:
+# - install (or actually symlink) docs to /usr/doc/$PRGNAM-$VERSION,
+# to follow Slackware standards.
+# - install shared libraries with +x permission.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gtest
SRCNAM=googletest
-VERSION=${VERSION:-1.14.0}
+VERSION=${VERSION:-1.12.1}
BUILD=${BUILD:-1}
-PKGTYPE=${PKGTYPE:-tgz}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -69,15 +74,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION
-tar -xvf $CWD/$SRCNAM-$VERSION.tar.gz
-cd $SRCNAM-$VERSION
+rm -rf $SRCNAM-release-$VERSION
+tar -xvf $CWD/$SRCNAM-release-$VERSION.tar.gz
+cd $SRCNAM-release-$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 \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
mkdir -p build
cd build
@@ -106,7 +111,7 @@ install -m 0644 googletest/include/$PRGNAM/internal/custom/*.h \
$PKG/usr/include/$PRGNAM/internal/custom
# install the libs and the pkgconfig files!
-install -m 0755 build/lib/*.so $PKG/usr/lib$LIBDIRSUFFIX
+install -s -m 0755 build/lib/*.so $PKG/usr/lib$LIBDIRSUFFIX
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig
for i in gmock gmock_main gtest gtest_main ; do
sed "s| -lpthread||g" build/googletest/generated/${i}.pc \
@@ -116,16 +121,21 @@ done
mkdir -p $PKG/usr/src
cp -R googlemock $PKG/usr/src
cp -R googletest $PKG/usr/src
-
# Create symlinks as some programs look for the shorter names
(cd $PKG/usr/src ; ln -svf googlemock gmock ; ln -svf googletest gtest)
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# 20220415 bkw: the docs get installed in /usr/src along with
+# everything else. symlink them to a place that slackware users
+# expect to see them.
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+for dir in googlemock googletest; do
+ mkdir -p $PKGDOC/$dir
+ for file in CONTRIBUTORS LICENSE README.md docs samples; do
+ [ -e $PKG/usr/src/$dir/$file ] && ln -s ../../../src/$dir/$file $PKGDOC/$dir
+ done
+done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/development/gtest/gtest.info b/development/gtest/gtest.info
index 365410f7e476..413fdc2f9806 100644
--- a/development/gtest/gtest.info
+++ b/development/gtest/gtest.info
@@ -1,8 +1,8 @@
PRGNAM="gtest"
-VERSION="1.14.0"
+VERSION="1.12.1"
HOMEPAGE="https://github.com/google/googletest"
-DOWNLOAD="https://github.com/google/googletest/archive/v1.14.0/googletest-1.14.0.tar.gz"
-MD5SUM="c8340a482851ef6a3fe618a082304cfc"
+DOWNLOAD="https://github.com/google/googletest/archive/release-1.12.1/googletest-release-1.12.1.tar.gz"
+MD5SUM="e82199374acdfda3f425331028eb4e2a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""