diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-03-22 01:35:57 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-03-22 06:28:06 +0000 |
commit | 5f531b41f25694a64b90938f378d592b150dcd37 (patch) | |
tree | 4b180ca849432e5b195ea70b98d93f9b69faea0b /testing | |
parent | 5362b4e79d99ab947e430d898e0ed0b7199385bd (diff) | |
download | aports-5f531b41f25694a64b90938f378d592b150dcd37.tar.bz2 aports-5f531b41f25694a64b90938f378d592b150dcd37.tar.xz |
community/libcouchbase: moved from testing
- would be need to build community/php7-couchbase
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libcouchbase/APKBUILD | 81 | ||||
-rw-r--r-- | testing/libcouchbase/disable_git_version_check.patch | 37 | ||||
-rw-r--r-- | testing/libcouchbase/fix_snappy.patch | 12 | ||||
-rw-r--r-- | testing/libcouchbase/fix_socktest.patch | 11 |
4 files changed, 0 insertions, 141 deletions
diff --git a/testing/libcouchbase/APKBUILD b/testing/libcouchbase/APKBUILD deleted file mode 100644 index aa3b310e52..0000000000 --- a/testing/libcouchbase/APKBUILD +++ /dev/null @@ -1,81 +0,0 @@ -# Contributor: Nathan Johnson <nathan@nathanjohnson.info> -# Maintainer: Nathan Johnson <nathan@nathanjohnson.info> -pkgname=libcouchbase -pkgver=2.7.3 -pkgrel=0 -pkgdesc="C client library for Couchbase" -url="https://developer.couchbase.com/community" -arch="all" -license="ASL 2.0" -depends= -depends_dev="musl-dev libressl-dev snappy-dev" -makedepends="$depends_dev cmake perl libtool libev-dev libevent-dev libuv-dev" -subpackages="$pkgname-dev $pkgname-bin $pkgname-doc $pkgname-libevent $pkgname-libev $pkgname-libuv" -source="$pkgname-$pkgver.tar.gz::https://github.com/couchbase/libcouchbase/archive/$pkgver.tar.gz - disable_git_version_check.patch - fix_snappy.patch - fix_socktest.patch" -builddir="$srcdir/$pkgname-$pkgver" - -build() { - mkdir "$builddir"/build - cd "$builddir"/build - ../cmake/configure \ - --prefix=/usr \ - --disable-couchbasemock \ - || return 1 - make -} - -check() { - cd "$builddir"/build - ctest -} - -package() { - make -C "$builddir"/build install DESTDIR="$pkgdir" || return 1 -} - -dev() { - default_dev || return 1 - mv "$subpkgdir"/usr/bin/cbc-write-config \ - "$pkgdir"/usr/bin || return 1 - rmdir "$subpkgdir"/usr/bin -} - -libevent() { - pkgdesc="$pkgdesc (libevent backend)" - depends="$pkgname libevent" - - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/libcouchbase_libevent.so "$subpkgdir"/usr/lib -} - -libev() { - pkgdesc="$pkgdesc (libev backend)" - depends="$pkgname libev" - - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/libcouchbase_libev.so "$subpkgdir"/usr/lib -} - -libuv() { - pkgdesc="$pkgdesc (libuv backend)" - depends="$pkgname libuv" - - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/libcouchbase_libuv.so "$subpkgdir"/usr/lib -} - -bin() { - pkgdesc="$pkgdesc (command line utilities)" - depends="$pkgname" - - mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ -} - -sha512sums="606969bfd49a285ae0c0b60b2f6823f0dad85c94a3597bf8f0205f10b25ca9f205a335f5bde20ccf11d010a42bd9c0bbe6599ae58851ac7a402c065168f04c01 libcouchbase-2.7.3.tar.gz -987b76b9c8a38a1f144bcada3c24192b30b352c993c433f4a2a1e381b765ae6bb845ebc6393c794da1b4efbb68fd1d34b027104fecf5c9bcc29b0f58c7f6a474 disable_git_version_check.patch -9023fe6c0d88577f40598f201be121012199167e9eef7e99da29664d23fd5e0c488fad2eda88ed3b30ea089b60e760c1b472bb46bb0804b5f7bb7091f0d8a2ed fix_snappy.patch -72319b86fdd91728723ccb091e72199788a84e2ec9ea12c0fcd1ed686eb155ec11e0addbff96735f83e7f31764a85650f0483b6e76d3a8bee16f71b2751fe4a9 fix_socktest.patch" diff --git a/testing/libcouchbase/disable_git_version_check.patch b/testing/libcouchbase/disable_git_version_check.patch deleted file mode 100644 index 438e37b8c4..0000000000 --- a/testing/libcouchbase/disable_git_version_check.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- a/cmake/Modules/GetVersionInfo.cmake -+++ b/cmake/Modules/GetVersionInfo.cmake -@@ -7,34 +7,6 @@ - # LCB_VERSION_MINOR - # LCB_VERSION_PATCH - --## Try git first ## --FIND_PROGRAM(GIT_EXECUTABLE NAMES git git.exe) --MACRO(RUNGIT outvar) -- EXECUTE_PROCESS(COMMAND git ${ARGN} -- OUTPUT_VARIABLE ${outvar} -- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} -- OUTPUT_STRIP_TRAILING_WHITESPACE) --ENDMACRO() -- --if (GIT_EXECUTABLE) -- RUNGIT(LCB_REVDESCRIBE describe --long) -- RUNGIT(LCB_VERSION describe) -- STRING(REPLACE "-" "_" LCB_VERSION "${LCB_VERSION}") -- MESSAGE(STATUS "Sanitized VERSION=${LCB_VERSION}") -- RUNGIT(LCB_VERSION_CHANGESET rev-parse HEAD) -- -- EXECUTE_PROCESS( -- COMMAND echo ${LCB_VERSION} -- COMMAND awk -F. "{printf \"0x%0.2d%0.2d%0.2d\", $1, $2, $3}" -- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} -- OUTPUT_VARIABLE LCB_VERSION_HEX) --ENDIF() -- --IF(LCB_VERSION) -- # Have the version information -- CONFIGURE_FILE(${LCB_GENINFODIR}/distinfo.cmake.in ${LCB_GENINFODIR}/distinfo.cmake) --ENDIF() -- - # library version - IF(NOT LCB_VERSION AND EXISTS ${LCB_GENINFODIR}/distinfo.cmake) - INCLUDE(${LCB_GENINFODIR}/distinfo.cmake) diff --git a/testing/libcouchbase/fix_snappy.patch b/testing/libcouchbase/fix_snappy.patch deleted file mode 100644 index 5e4281b186..0000000000 --- a/testing/libcouchbase/fix_snappy.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/cmake/configure -+++ b/cmake/configure -@@ -287,6 +287,9 @@ - } - if ($NO_SNAPPY) { - push @CM_OPTIONS, "-DLCB_NO_SNAPPY=1"; -+} else { -+ # the cmake options default NO_SNAPPY to ON, so this is necessary -+ push @CM_OPTIONS, "-DLCB_NO_SNAPPY=0"; - } - if ($ENABLE_SNAPPY) { - push @CM_OPTIONS, "-DLCB_NO_SNAPPY=0"; diff --git a/testing/libcouchbase/fix_socktest.patch b/testing/libcouchbase/fix_socktest.patch deleted file mode 100644 index 2ee7cc68b0..0000000000 --- a/testing/libcouchbase/fix_socktest.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- libcouchbase-2.5.6/tests/socktests/t_basic.cc -+++ libcouchbase-2.5.6-2/tests/socktests/t_basic.cc -@@ -48,7 +49,7 @@ - - static bool isRefused(lcbio_OSERR err) - { -- if (err == ECONNREFUSED || err == ECONNABORTED) { -+ if (err == ECONNREFUSED || err == ECONNABORTED || err == EAFNOSUPPORT) { - return true; - } - #ifdef _WIN32 |