Mail archive
alpine-devel

Re: [alpine-devel] [PATCH] testing/gtest new aport

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Fri, 26 Sep 2014 16:49:04 +0200

On Fri, 26 Sep 2014 07:52:21 +0400
k0r10n <k0r10n.dev_at_gmail.com> wrote:

> ---
> testing/gtest/APKBUILD | 55 +++++++++++++++++++++++++++++++++++++++
> testing/gtest/src/gtest-1.7.0.zip | 1 +
> 2 files changed, 56 insertions(+)
> create mode 100644 testing/gtest/APKBUILD
> create mode 120000 testing/gtest/src/gtest-1.7.0.zip

Hi, it failed for me:

>>> gtest: Entering fakeroot...
install: can't create '/home/ncopa/aports/testing/gtest/pkg/gtest/usr/lib': No such file or directory
install: can't create
'/home/ncopa/aports/testing/gtest/pkg/gtest/usr/lib': No such file or
directory

>
> diff --git a/testing/gtest/APKBUILD b/testing/gtest/APKBUILD
> new file mode 100644
> index 0000000..3957b32
> --- /dev/null
> +++ b/testing/gtest/APKBUILD
> _at_@ -0,0 +1,55 @@
> +# Contributor:
> +# Maintainer:
> +pkgname=gtest
> +pkgver=1.7.0
> +pkgrel=0
> +pkgdesc="Google Test - C++ testing utility based on the xUnit framework (like JUnit)"
> +url="http://code.google.com/p/googletest"
> +arch="all"
> +license="BSD"
> +depends="libgcc bash"
> +depends_dev="python cmake"
> +makedepends="$depends_dev"
> +install=""
> +subpackages="$pkgname-dev $pkgname-doc"
> +source="http://googletest.googlecode.com/files/${pkgname}-${pkgver}.zip"
> +
> +_builddir="$srcdir"/${pkgname}-${pkgver}
> +prepare() {
> + local i
> + cd "$_builddir"
> + for i in $source; do
> + case $i in
> + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
> + esac
> + done
> +}
> +
> +build() {
> + cd "$_builddir"
> + rm -rf build
> + mkdir build
> + cd build
> +
> + cmake -DBUILD_SHARED_LIBS=ON \
> + -DCMAKE_SKIP_RPATH=ON ../ || return 1
> + make || return 1
> +}
> +
> +package() {
> + cd "$_builddir"
> + for dir in {"$pkgdir"/usr/lib,"$pkgdir"/usr/include/gtest/internal,"$pkgdir"/usr/share/licenses/gtest,"$pkgdir"/usr/src/gtest/cmake,"$pkgdir"/usr/src/gtest/src};do

This does not work ^^^

-nc



---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Fri Sep 26 2014 - 16:49:04 GMT