aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhu Qun-Ying <zhu.qunying@gmail.com>2025-02-18 23:06:24 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-02-19 09:31:54 +0700
commit9e82f6261e7afc427eafe64ebcdee2da9cc2a325 (patch)
tree90dfca3d51d596bec2be48f6b9ac5ee566a73c94
parentc580c29fd64602fa67e80da8582bb27faff02921 (diff)
libraries/ahven: Added (Simple Unit Test).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/ahven/README6
-rw-r--r--libraries/ahven/ahven.SlackBuild94
-rw-r--r--libraries/ahven/ahven.info10
-rw-r--r--libraries/ahven/slack-desc19
4 files changed, 129 insertions, 0 deletions
diff --git a/libraries/ahven/README b/libraries/ahven/README
new file mode 100644
index 0000000000..a7133d4162
--- /dev/null
+++ b/libraries/ahven/README
@@ -0,0 +1,6 @@
+Ahven is a simple unit test library (or a framework) for Ada
+programming language. It is loosely modelled after JUnit and some
+ideas are taken from AUnit.
+
+Ahven is free software distributed under permissive ISC license and
+should work with any Ada 95 or 2005 compiler.
diff --git a/libraries/ahven/ahven.SlackBuild b/libraries/ahven/ahven.SlackBuild
new file mode 100644
index 0000000000..090aad5378
--- /dev/null
+++ b/libraries/ahven/ahven.SlackBuild
@@ -0,0 +1,94 @@
+#!/bin/bash
+# Slackware build script for ahven
+# Copyright 2012-2021 Zhu Qun-Ying
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+PRGNAM=ahven
+VERSION=${VERSION:-2.8}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$(uname -m) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=${TMP}/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \; || exit 1
+
+make DESTDIR=$PKG prefix=/usr libdir=/usr/lib$LIBDIRSUFFIX \
+GNAT_BUILDER=gprbuild GNAT_BUILDER_FLAGS="-R -cargs $SLKCFLAGS -largs -s -gargs"
+
+make DESTDIR=$PKG prefix=/usr libdir=/usr/lib$LIBDIRSUFFIX install \
+GNAT_BUILDER=gprbuild GNAT_BUILDER_FLAGS="-R -cargs $SLKCFLAGS -largs -s -gargs"
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+(cd doc/manual/en; make html; rm -rf build/html/_sources; cp -a build/html $PKG/usr/doc/$PRGNAM-$VERSION)
+
+cp README.md ROADMAP NEWS.txt LICENSE.txt $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/tutorial examples $PKG/usr/doc/$PRGNAM-$VERSION
+
+cd $PKG
+mkdir -p $PKG/install
+cp $CWD/slack-desc $PKG/install
+
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/libraries/ahven/ahven.info b/libraries/ahven/ahven.info
new file mode 100644
index 0000000000..8d17759054
--- /dev/null
+++ b/libraries/ahven/ahven.info
@@ -0,0 +1,10 @@
+PRGNAM="ahven"
+VERSION="2.8"
+HOMEPAGE="https://www.ahven-framework.com"
+DOWNLOAD="https://www.ahven-framework.com/releases/ahven-2.8.tar.gz"
+MD5SUM="5cb01bc1200481a90038bd56fb965ff2"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="gprbuild"
+MAINTAINER="Zhu Qun-Ying"
+EMAIL="zhu.qunying@gmail.com"
diff --git a/libraries/ahven/slack-desc b/libraries/ahven/slack-desc
new file mode 100644
index 0000000000..22765ff98b
--- /dev/null
+++ b/libraries/ahven/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+ahven: ahven (a simple unit test library for Ada)
+ahven:
+ahven: Ahven is a simple unit test library (or a framework) for Ada
+ahven: programming language. It is loosely modelled after JUnit and some
+ahven: ideas are taken from AUnit.
+ahven:
+ahven: Ahven is free software distributed under permissive ISC license and
+ahven: should work with any Ada 95 or 2005 compiler.
+ahven:
+ahven: Homepage: https://www.ahven-framework.com/
+ahven: