Skip to content

Commit

Permalink
cunit: Add version 2.1-3
Browse files Browse the repository at this point in the history
Description [1]:

> CUnit is a lightweight system for writing, administering, and running
> unit tests in C.  It provides C programmers a basic testing
> functionality with a flexible variety of user interfaces.
>
> CUnit is built as a static library which is linked with the user's
> testing code.  It uses a simple framework for building test
> structures, and provides a rich set of assertions for testing common
> data types.   In addition, several different interfaces are provided
> for running tests and reporting results. These interfaces currently
> include:

Building outside of the source directory currently fails with the errors
below.

```
[…]
make[3]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit/Sources'
make[2]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit/Sources'
Making install in Headers
make[2]: Entering directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit/Headers'
make[3]: Entering directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit/Headers'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/dev/shm/bee-root/cunit/cunit-2.1_3-0/image/usr/include/CUnit'
 /usr/bin/install -c -m 644 /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/CUError.h CUnit.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/CUnit_intl.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/MyMem.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/TestDB.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/TestRun.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/Util.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/Basic.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/Console.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/Automated.h '/dev/shm/bee-root/cunit/cunit-2.1_3-0/image/usr/include/CUnit'
make[3]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit/Headers'
make[2]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit/Headers'
make[2]: Entering directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit'
make[3]: Entering directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit'
make[2]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit'
make[1]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/CUnit'
Making install in doc
make[1]: Entering directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/doc'
Making install in headers
make[2]: Entering directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/doc/headers'
cp -f /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/*.h .
cp -f /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Sources/Win/Win.h .
make[3]: Entering directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/doc/headers'
make[3]: Nothing to be done for 'install-exec-am'.
cp -f /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Headers/*.h .
cp -f /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/CUnit/Sources/Win/Win.h .
 /bin/mkdir -p '/dev/shm/bee-root/cunit/cunit-2.1_3-0/image/usr/doc/CUnit/headers'
 /usr/bin/install -c -m 644 Automated.h Basic.h Console.h CUError.h /dev/shm/bee-root/cunit/cunit-2.1_3-0/source/doc/headers/CUnit.h CUnit_intl.h CUCurses.h MyMem.h TestDB.h TestRun.h Util.h Win.h '/dev/shm/bee-root/cunit/cunit-2.1_3-0/image/usr/doc/CUnit/headers'
/usr/bin/install: cannot stat ‘/dev/shm/bee-root/cunit/cunit-2.1_3-0/source/doc/headers/CUnit.h’: No such file or directory
Makefile:340: recipe for target 'install-dochdrDATA' failed
make[3]: *** [install-dochdrDATA] Error 1
make[3]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/doc/headers'
Makefile:410: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/doc/headers'
Makefile:423: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/dev/shm/bee-root/cunit/cunit-2.1_3-0/build/doc'
Makefile:503: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
```

[1] http://cunit.sourceforge.net/index.html
  • Loading branch information
pmenzel committed Sep 7, 2017
1 parent 9d7026a commit 80ed795
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions cunit.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
#!/usr/bin/env beesh

# BEE_VERSION cunit-2.1_3-0

## this file was created by bee init and should be executed to build a
## bee-package. (Additional hints are located at the end of this file.)

###############################################################################
## The source URL(s) define the location of the sources that will be
## downloaded. Version variables may be used to simplify reuse of this bee-file.

SRCURL[0]="https://sourceforge.net/projects/cunit/files/latest/download?source=typ_redirect"

###############################################################################
## Add URLs/pathes to patch files to the PATCHURL array.
## The sources will be patched in the order of the array.

# PATCHURL+=()

###############################################################################
## Add filename patterns to the EXCLUDE array of files that should not
## be added to you package but may be present in the image directory.

# EXCLUDE+=()

###############################################################################
## Uncomment the next statement, if the software may not be able to be built
## outside the source directory and needs to be built inside the source
## directory.

build_in_sourcedir

###############################################################################
## bee cannot detect buildtypes specified in subdirectories.
## Sometimes packages "hide" the real sources in a subdirectory named
## 'src' or 'cmake' or ..
## use 'sourcesubdir_append' to specify this directory if known.

# sourcesubdir_append src

BEE_BUILDTYPE=autotools

###############################################################################
## Change the default (auto-detected) steps to
## extract, patch, configure/setup, build and install the software.
## Make sure the mee_install function does install everything to the
## image directory "${D}"

#mee_extract() {
# bee_extract "${@}"
#}

mee_patch() {
bee_patch "${@}"
start_cmd ./bootstrap
start_cmd make distclean
}

#mee_configure() {
# bee_configure
#}

#mee_build() {
# bee_build
#}

#mee_install() {
# bee_install
#}
## by default this may be 'make install DESTDIR="${D}"'

###############################################################################
##
## Additional hints:
##
## The name of this bee-file should follow the following naming convention:
## pkgname-pkgversion-pkgrevision.bee
##
## You may remove all comments as long as SRCURL[0] is set.
##
## Everything in this file will be executed in a bash environment.
##
## Build the package by executing
## './pkg-version-N.bee' or
## 'beesh ./pkg-version-N.bee'
##
## see http://beezinga.org/
##

0 comments on commit 80ed795

Please sign in to comment.