[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/, dev-cpp/libcmis/files/

2024-08-31 Thread David Seifert
commit: 2b65a97f3126c54f74c706e2e16e81e83989bdd4
Author: David Seifert  gentoo  org>
AuthorDate: Sat Aug 31 10:44:33 2024 +
Commit: David Seifert  gentoo  org>
CommitDate: Sat Aug 31 10:44:33 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b65a97f

dev-cpp/libcmis: patch for boost 1.86

Signed-off-by: David Seifert  gentoo.org>

 .../libcmis/files/libcmis-0.6.2-boost-1.86.patch   | 47 ++
 dev-cpp/libcmis/libcmis-0.6.2.ebuild   |  8 +++-
 2 files changed, 53 insertions(+), 2 deletions(-)

diff --git a/dev-cpp/libcmis/files/libcmis-0.6.2-boost-1.86.patch 
b/dev-cpp/libcmis/files/libcmis-0.6.2-boost-1.86.patch
new file mode 100644
index ..5d2a9ba404e3
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.6.2-boost-1.86.patch
@@ -0,0 +1,47 @@
+https://github.com/tdf/libcmis/issues/67
+https://github.com/tdf/libcmis/pull/68
+
+From dfcb642a491f7ec2ae52e3e83d31bb6cdf3670c2 Mon Sep 17 00:00:00 2001
+From: David Seifert 
+Date: Sat, 31 Aug 2024 12:39:39 +0200
+Subject: [PATCH] Fix boost 1.86 breakage
+
+The fix does not break building against <1.86 since we're now accessing the
+object representation of the return value.
+
+Fixes #67
+---
+ src/libcmis/xml-utils.cxx | 14 ++
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/src/libcmis/xml-utils.cxx b/src/libcmis/xml-utils.cxx
+index e487d17..cdf088f 100644
+--- a/src/libcmis/xml-utils.cxx
 b/src/libcmis/xml-utils.cxx
+@@ -531,16 +531,22 @@ namespace libcmis
+ boost::uuids::detail::sha1 sha1;
+ sha1.process_bytes( str.c_str(), str.size() );
+ 
+-unsigned int digest[5];
++// on boost <  1.86.0, digest_type is typedef'd as unsigned int[5]
++// on boost >= 1.86.0, digest_type is typedef'd as unsigned char[20]
++boost::uuids::detail::sha1::digest_type digest;
+ sha1.get_digest( digest );
+ 
++// by using a pointer to unsigned char, we can read the
++// object representation of either typedef.
++const unsigned char* ptr = reinterpret_cast( 
digest );
++
+ stringstream out;
+-// Setup writing mode. Every number must produce eight
++// Setup writing mode. Every number must produce two
+ // hexadecimal digits, including possible leading 0s, or we get
+ // less than 40 digits as result.
+ out << hex << setfill('0') << right;
+-for ( int i = 0; i < 5; ++i )
+-out << setw(8) << digest[i];
++for ( int i = 0; i < sizeof( digest ); ++ptr, ++i )
++out << setw(2) << static_cast( *ptr );
+ return out.str();
+ }
+ 

diff --git a/dev-cpp/libcmis/libcmis-0.6.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
index c20057c85432..5130a7ba2744 100644
--- a/dev-cpp/libcmis/libcmis-0.6.2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
@@ -41,8 +41,12 @@ BDEPEND="
)
 "
 
-# https://github.com/tdf/libcmis/pull/52
-PATCHES=( "${FILESDIR}/${P}-libxml2-2.12.patch" ) # bug 917523
+PATCHES=(
+   # https://github.com/tdf/libcmis/pull/52
+   "${FILESDIR}"/${P}-libxml2-2.12.patch # bug 917523
+   # https://github.com/tdf/libcmis/pull/68
+   "${FILESDIR}"/${P}-boost-1.86.patch
+)
 
 src_prepare() {
default



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/files/, dev-cpp/libcmis/

2024-02-20 Thread Andreas Sturmlechner
commit: df3eba68a07da555f27af5377c131dbb44bd84e7
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Feb 20 19:35:14 2024 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Feb 20 20:48:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df3eba68

dev-cpp/libcmis: drop 0.5.2-r2

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/Manifest   |  2 -
 dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch | 17 --
 dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild| 70 --
 3 files changed, 89 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index 46f4619af881..86f9994fa42b 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,3 +1 @@
-DIST libcmis-0.5.2-patchset.tar.xz 16632 BLAKE2B 
0a9802955059214428e7c2d6171093b171e47899de05404ee462bbf2c68c808927759a0808d79aa3aa9c8b9cd1a60b55686f7596b121701704a2d9720d6a8ba8
 SHA512 
bca4cc908e5510a9f597d6f1b560b3bbfdcda185b79d21320c6e3f7e5c559b7dda375407dfd6f05420b6f4edd666f6e7e70b7b72808506acc22fdfdab344f52c
-DIST libcmis-0.5.2.tar.gz 295020 BLAKE2B 
325eacedd87eb1888a439c727a648c5aeb8d58c9b80add9761ffc55381193b71b589865d13ecd55177faafa935642685001f60456c1354e037989b29e9451c05
 SHA512 
45d8cd6d420a9593b46e1f2d6fbf384ea248cb218b0db6326ee2f082ff29100b65a2cc999ccb849e61df4f4ed7c3721b09addc6c322ef03c6c93f8c0acc02bde
 DIST libcmis-0.6.2.tar.gz 296218 BLAKE2B 
faad99e09b2721cd56b0d47d2a9589e06222ee7881006e936d0943d5e8afc588fcda721ef282ad7d55c785407a9885c90cbce1d172ca012c4a13cc51da0c15b6
 SHA512 
a75a69623f34149c39c382c357396b8dd719d589a78424fc3b5d9de84ffbf3f889bcaaed9a01f91b491a507c189347d3d9252db238fddbb522ff8ba9ce7b5ade

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch
deleted file mode 100644
index 6ba63ee7fe76..
--- a/dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch
+++ /dev/null
@@ -1,17 +0,0 @@
 a/inc/libcmis-c/repository.h   2018-12-27 14:07:55.0 +0100
-+++ b/inc/libcmis-c/repository.h   2019-04-21 01:29:46.504373226 +0200
-@@ -28,12 +28,12 @@
- #ifndef _REPOSITORY_H_
- #define _REPOSITORY_H_
- 
-+#include 
-+
- #ifdef __cplusplus
- extern "C" {
- #endif
- 
--#include 
--
- #include "libcmis-c/libcmis-c-api.h"
- #include "libcmis-c/types.h"
- 

diff --git a/dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild
deleted file mode 100644
index aedc528670f1..
--- a/dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-if [[ ${PV} == ** ]]; then
-   EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
-   inherit git-r3
-else
-   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
-   https://dev.gentoo.org/~asturm/distfiles/${P}-patchset.tar.xz";
-   KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
-fi
-inherit autotools
-
-DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://github.com/tdf/libcmis";
-
-LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
-IUSE="man test tools"
-
-RESTRICT="test"
-
-DEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-RDEPEND="${DEPEND}"
-BDEPEND="
-   virtual/pkgconfig
-   man? (
-   app-text/docbook2X
-   dev-libs/libxslt
-   )
-   test? (
-   dev-util/cppcheck
-   dev-util/cppunit
-   )
-"
-
-PATCHES=(
-   "${FILESDIR}/${P}-icu-64.2.patch" # bug 674414
-   "${WORKDIR}/${P}-patchset/${P}-fix-onedrive.patch"
-   "${WORKDIR}/${P}-patchset/${P}-gdrive-do-not-allow-copying.patch"
-   "${WORKDIR}/${P}-patchset/${P}-onedrive-do-not-allow-copying.patch"
-   "${WORKDIR}/${P}-patchset/${P}-fix-gdrive-onedrive.patch"
-)
-
-src_prepare() {
-   default
-   eautoreconf
-}
-
-src_configure() {
-   local myeconfargs=(
-   --program-suffix=-$(ver_cut 1-2)
-   --disable-werror
-   $(use_with man)
-   $(use_enable test tests)
-   $(use_enable tools client)
-   )
-   econf "${myeconfargs[@]}"
-}
-
-src_install() {
-   default
-   find "${D}" -name '*.la' -delete || die
-}



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2024-01-04 Thread Arthur Zamarin
commit: 22a96d1c4342c34f80feff33121a0ed700fda957
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jan  5 05:24:52 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jan  5 05:26:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22a96d1c

dev-cpp/libcmis: Stabilize 0.6.2 amd64, #919762

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-cpp/libcmis/libcmis-0.6.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.6.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
index 5dad5dab1347..3eef8d845dd4 100644
--- a/dev-cpp/libcmis/libcmis-0.6.2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
@@ -8,7 +8,7 @@ if [[ ${PV} == ** ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
+   KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2024-01-04 Thread Arthur Zamarin
commit: a6d42f8aa42e411e6536dfeec23f0837022b7f6e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jan  5 05:24:46 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jan  5 05:26:13 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6d42f8a

dev-cpp/libcmis: Stabilize 0.6.2 arm64, #919762

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-cpp/libcmis/libcmis-0.6.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.6.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
index d63b6bdf4e78..5dad5dab1347 100644
--- a/dev-cpp/libcmis/libcmis-0.6.2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
@@ -8,7 +8,7 @@ if [[ ${PV} == ** ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
+   KEYWORDS="~amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2024-01-04 Thread Arthur Zamarin
commit: 92581df74610e1e6e39c46569c7e54c870338c89
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jan  5 05:24:36 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jan  5 05:26:10 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92581df7

dev-cpp/libcmis: Stabilize 0.6.2 x86, #919762

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-cpp/libcmis/libcmis-0.6.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.6.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
index 6c8abf60f12d..d63b6bdf4e78 100644
--- a/dev-cpp/libcmis/libcmis-0.6.2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,7 +8,7 @@ if [[ ${PV} == ** ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2023-11-21 Thread Andreas Sturmlechner
commit: 2b96598694166457938b92c8f50911337884baa4
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Nov 11 16:37:11 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Nov 21 22:19:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b965986

dev-cpp/libcmis: 0.6.2 version bump, SLOT=0 and bump subslot to 0.6

Closes: https://bugs.gentoo.org/915606
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/Manifest  |  1 +
 dev-cpp/libcmis/{libcmis-.ebuild => libcmis-0.6.2.ebuild} | 11 ++-
 dev-cpp/libcmis/libcmis-.ebuild   | 11 ++-
 3 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index 6dd6b81353db..46f4619af881 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,2 +1,3 @@
 DIST libcmis-0.5.2-patchset.tar.xz 16632 BLAKE2B 
0a9802955059214428e7c2d6171093b171e47899de05404ee462bbf2c68c808927759a0808d79aa3aa9c8b9cd1a60b55686f7596b121701704a2d9720d6a8ba8
 SHA512 
bca4cc908e5510a9f597d6f1b560b3bbfdcda185b79d21320c6e3f7e5c559b7dda375407dfd6f05420b6f4edd666f6e7e70b7b72808506acc22fdfdab344f52c
 DIST libcmis-0.5.2.tar.gz 295020 BLAKE2B 
325eacedd87eb1888a439c727a648c5aeb8d58c9b80add9761ffc55381193b71b589865d13ecd55177faafa935642685001f60456c1354e037989b29e9451c05
 SHA512 
45d8cd6d420a9593b46e1f2d6fbf384ea248cb218b0db6326ee2f082ff29100b65a2cc999ccb849e61df4f4ed7c3721b09addc6c322ef03c6c93f8c0acc02bde
+DIST libcmis-0.6.2.tar.gz 296218 BLAKE2B 
faad99e09b2721cd56b0d47d2a9589e06222ee7881006e936d0943d5e8afc588fcda721ef282ad7d55c785407a9885c90cbce1d172ca012c4a13cc51da0c15b6
 SHA512 
a75a69623f34149c39c382c357396b8dd719d589a78424fc3b5d9de84ffbf3f889bcaaed9a01f91b491a507c189347d3d9252db238fddbb522ff8ba9ce7b5ade

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
similarity index 83%
copy from dev-cpp/libcmis/libcmis-.ebuild
copy to dev-cpp/libcmis/libcmis-0.6.2.ebuild
index 10de5182674b..1d4b60e4cd0e 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,7 +8,7 @@ if [[ ${PV} == ** ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 
@@ -16,7 +16,7 @@ DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
+SLOT="0/0.6"
 IUSE="man test tools"
 
 RESTRICT="test"
@@ -26,7 +26,9 @@ DEPEND="
dev-libs/libxml2
net-misc/curl
 "
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+   !dev-cpp/libcmis:0.5
+"
 BDEPEND="
virtual/pkgconfig
man? (
@@ -46,7 +48,6 @@ src_prepare() {
 
 src_configure() {
local myeconfargs=(
-   --program-suffix=-$(ver_cut 1-2)
--disable-werror
$(use_with man)
$(use_enable test tests)

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 10de5182674b..1d4b60e4cd0e 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,7 +8,7 @@ if [[ ${PV} == ** ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 
@@ -16,7 +16,7 @@ DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
+SLOT="0/0.6"
 IUSE="man test tools"
 
 RESTRICT="test"
@@ -26,7 +26,9 @@ DEPEND="
dev-libs/libxml2
net-misc/curl
 "
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+   !dev-cpp/libcmis:0.5
+"
 BDEPEND="
virtual/pkgconfig
man? (
@@ -46,7 +48,6 @@ src_prepare() {
 
 src_configure() {
local myeconfargs=(
-   --program-suffix=-$(ver_cut 1-2)
--disable-werror
$(use_with man)
$(use_enable test tests)



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/, dev-cpp/libcmis/files/

2023-11-21 Thread Andreas Sturmlechner
commit: 123eca67c41a657baef5709ec6fa9ff2dcf5403f
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Nov 21 20:42:16 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Nov 21 22:19:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=123eca67

dev-cpp/libcmis: Fix build with dev-libs/libxml2-2.12.0

Closes: https://bugs.gentoo.org/917523
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../libcmis/files/libcmis-0.6.2-libxml2-2.12.patch | 26 ++
 dev-cpp/libcmis/libcmis-0.6.2.ebuild   |  3 +++
 2 files changed, 29 insertions(+)

diff --git a/dev-cpp/libcmis/files/libcmis-0.6.2-libxml2-2.12.patch 
b/dev-cpp/libcmis/files/libcmis-0.6.2-libxml2-2.12.patch
new file mode 100644
index ..a00fb863dcb5
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.6.2-libxml2-2.12.patch
@@ -0,0 +1,26 @@
+From 72618e63433c7243e4d9e79a638f19a09402eecc Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Tue, 21 Nov 2023 23:10:07 +0100
+Subject: [PATCH] Fix build with libxml2-2.12 (missing include)
+
+See also: https://github.com/tdf/libcmis/issues/51
+Signed-off-by: Andreas Sturmlechner 
+---
+ inc/libcmis/xml-utils.hxx | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/inc/libcmis/xml-utils.hxx b/inc/libcmis/xml-utils.hxx
+index 929385e..9bd99ae 100644
+--- a/inc/libcmis/xml-utils.hxx
 b/inc/libcmis/xml-utils.hxx
+@@ -34,6 +34,7 @@
+ #include 
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+-- 
+2.43.0
+

diff --git a/dev-cpp/libcmis/libcmis-0.6.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
index 1d4b60e4cd0e..6c8abf60f12d 100644
--- a/dev-cpp/libcmis/libcmis-0.6.2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.6.2.ebuild
@@ -41,6 +41,9 @@ BDEPEND="
)
 "
 
+# https://github.com/tdf/libcmis/pull/52
+PATCHES=( "${FILESDIR}/${P}-libxml2-2.12.patch" ) # bug 917523
+
 src_prepare() {
default
eautoreconf



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2023-11-14 Thread Andreas Sturmlechner
commit: cb1e5069e03ad2bd2a3d99a753e8b514ef873659
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Nov 11 16:37:11 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Nov 14 22:55:29 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb1e5069

dev-cpp/libcmis: 0.6.0 version bump, new slot

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/Manifest   |  2 ++
 .../libcmis/{libcmis-.ebuild => libcmis-0.6.0.ebuild}  | 14 +-
 dev-cpp/libcmis/libcmis-.ebuild|  8 
 3 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index 6dd6b81353db..63cfc415531c 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,2 +1,4 @@
 DIST libcmis-0.5.2-patchset.tar.xz 16632 BLAKE2B 
0a9802955059214428e7c2d6171093b171e47899de05404ee462bbf2c68c808927759a0808d79aa3aa9c8b9cd1a60b55686f7596b121701704a2d9720d6a8ba8
 SHA512 
bca4cc908e5510a9f597d6f1b560b3bbfdcda185b79d21320c6e3f7e5c559b7dda375407dfd6f05420b6f4edd666f6e7e70b7b72808506acc22fdfdab344f52c
 DIST libcmis-0.5.2.tar.gz 295020 BLAKE2B 
325eacedd87eb1888a439c727a648c5aeb8d58c9b80add9761ffc55381193b71b589865d13ecd55177faafa935642685001f60456c1354e037989b29e9451c05
 SHA512 
45d8cd6d420a9593b46e1f2d6fbf384ea248cb218b0db6326ee2f082ff29100b65a2cc999ccb849e61df4f4ed7c3721b09addc6c322ef03c6c93f8c0acc02bde
+DIST libcmis-0.6.0-patchset.tar.xz 2728 BLAKE2B 
264c6ef7a273449c0887c9a2891e8df44517df0b274303037e57946ff44c9186e7e54a6ca3919b530d9f0c1750bb711f524c3e45474a1dabbb66e2bce129b10c
 SHA512 
7325edb0e19a0bee953a853086c4289a7e6edbd6a885fedf6bbfdff48bd5a3170538be196f404d36f629964b21de404c256c4bc1310f7ca5e2bf25e10043b5a7
+DIST libcmis-0.6.0.tar.gz 294976 BLAKE2B 
b78ead81577a0edf3a47dfae6672bf27e54c5ee8f37b0f145a61eaca792565187d346a1c60544d5ee0cf00d3b6f38d7e77ebaae5202a1d61cf43a280734a9b93
 SHA512 
b9de99b0693793eec7936d6c42d75ef67145c6767a66aea5c665cd99022911a6da5d6ceedf9054e009a696ba47e8b4e4b80003670209840f388f7a9ad1cd8bf5

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.6.0.ebuild
similarity index 73%
copy from dev-cpp/libcmis/libcmis-.ebuild
copy to dev-cpp/libcmis/libcmis-0.6.0.ebuild
index 10de5182674b..f24a427bd144 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.6.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,8 +7,10 @@ if [[ ${PV} == ** ]]; then
EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
inherit git-r3
 else
-   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+   PATCHSET="${P}-patchset"
+   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+   https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}.tar.xz";
+#  KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 
@@ -16,7 +18,7 @@ DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
+SLOT="0.6"
 IUSE="man test tools"
 
 RESTRICT="test"
@@ -39,6 +41,8 @@ BDEPEND="
)
 "
 
+PATCHES=( "${WORKDIR}/${PATCHSET}" ) # from git master, to be 0.6.1
+
 src_prepare() {
default
eautoreconf
@@ -46,7 +50,7 @@ src_prepare() {
 
 src_configure() {
local myeconfargs=(
-   --program-suffix=-$(ver_cut 1-2)
+   --program-suffix=-${SLOT}
--disable-werror
$(use_with man)
$(use_enable test tests)

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 10de5182674b..3ab040210d77 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,7 +8,7 @@ if [[ ${PV} == ** ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 
@@ -16,7 +16,7 @@ DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
+SLOT="0.6"
 IUSE="man test tools"
 
 RESTRICT="test"
@@ -46,7 +46,7 @@ src_prepare() {
 
 src_configure() {
local myeconfargs=(
-   --program-suffix=-$(ver_cut 1-2)
+

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2023-03-06 Thread Yixun Lan
commit: 6b9ffc53343c90c879ffa80df5c3449ce802493a
Author: Yixun Lan  gentoo  org>
AuthorDate: Mon Mar  6 11:37:42 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Mar  7 00:14:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b9ffc53

dev-cpp/libcmis: Keyword 0.5.2-r2 riscv, #881389

Signed-off-by: Yixun Lan  gentoo.org>

 dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild
index fe44c67a31da..aedc528670f1 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild
@@ -9,7 +9,7 @@ if [[ ${PV} == ** ]]; then
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
https://dev.gentoo.org/~asturm/distfiles/${P}-patchset.tar.xz";
-   KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 fi
 inherit autotools
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2023-01-24 Thread Andreas Sturmlechner
commit: 6c7fcad9c09760f68119873a6252ed02eab777d2
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Jan 24 14:26:03 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jan 24 16:11:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c7fcad9

dev-cpp/libcmis: drop 0.5.2-r1

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild | 68 -
 1 file changed, 68 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
deleted file mode 100644
index 7bb0d2a1f925..
--- a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-if [[ ${PV} =  ]]; then
-   EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
-   inherit git-r3
-else
-   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 x86 ~amd64-linux ~x86-linux"
-fi
-inherit autotools flag-o-matic
-
-DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://github.com/tdf/libcmis";
-
-LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
-
-IUSE="man static-libs test tools"
-
-BDEPEND="
-   virtual/pkgconfig
-   man? (
-   app-text/docbook2X
-   dev-libs/libxslt
-   )
-   test? (
-   dev-util/cppcheck
-   dev-util/cppunit
-   )
-"
-DEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-RDEPEND="${DEPEND}"
-
-RESTRICT="test"
-
-PATCHES=( "${FILESDIR}/${P}-icu-64.2.patch" )
-
-src_prepare() {
-   default
-   eautoreconf
-}
-
-src_configure() {
-   # bug 618778
-   append-cxxflags -std=c++14
-
-   local myeconfargs=(
-   --program-suffix=-$(ver_cut 1-2)
-   --disable-werror
-   $(use_with man)
-   $(use_enable static-libs static)
-   $(use_enable test tests)
-   $(use_enable tools client)
-   )
-   econf "${myeconfargs[@]}"
-}
-
-src_install() {
-   default
-   find "${D}" -name '*.la' -delete || die
-}



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/files/, dev-cpp/libcmis/

2022-12-26 Thread Andreas Sturmlechner
commit: 3a944bd3133689afaaeab7b203726303790c8909
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Dec 26 23:40:35 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Dec 26 23:40:39 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a944bd3

dev-cpp/libcmis: make it a patchset

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/Manifest   |   1 +
 .../files/libcmis-0.5.2-fix-gdrive-onedrive.patch  | 980 -
 .../libcmis/files/libcmis-0.5.2-fix-onedrive.patch | 481 --
 ...libcmis-0.5.2-gdrive-do-not-allow-copying.patch | 722 ---
 ...bcmis-0.5.2-onedrive-do-not-allow-copying.patch | 430 -
 dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild|  11 +-
 6 files changed, 7 insertions(+), 2618 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index c1568ef2f82e..6dd6b81353db 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1 +1,2 @@
+DIST libcmis-0.5.2-patchset.tar.xz 16632 BLAKE2B 
0a9802955059214428e7c2d6171093b171e47899de05404ee462bbf2c68c808927759a0808d79aa3aa9c8b9cd1a60b55686f7596b121701704a2d9720d6a8ba8
 SHA512 
bca4cc908e5510a9f597d6f1b560b3bbfdcda185b79d21320c6e3f7e5c559b7dda375407dfd6f05420b6f4edd666f6e7e70b7b72808506acc22fdfdab344f52c
 DIST libcmis-0.5.2.tar.gz 295020 BLAKE2B 
325eacedd87eb1888a439c727a648c5aeb8d58c9b80add9761ffc55381193b71b589865d13ecd55177faafa935642685001f60456c1354e037989b29e9451c05
 SHA512 
45d8cd6d420a9593b46e1f2d6fbf384ea248cb218b0db6326ee2f082ff29100b65a2cc999ccb849e61df4f4ed7c3721b09addc6c322ef03c6c93f8c0acc02bde

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-onedrive.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-onedrive.patch
deleted file mode 100644
index b1e07ad89e24..
--- a/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-onedrive.patch
+++ /dev/null
@@ -1,980 +0,0 @@
-From bce91e0854a0ff1d0b2023f1f3a54077a36e3738 Mon Sep 17 00:00:00 2001
-From: Christian Lohmaier 
-Date: Mon, 23 Aug 2021 15:10:08 +0100
-Subject: [PATCH] tdf#101630 - gdrive support w/oAuth and Drive API v3
-
-LibreOffice is only using drive.file scope, so can only see files it
-owns/that were created by LibreOffice.
-
-In addition, also store the refresh token in LO's password-store if the
-user enabled persistent storage, removing the need to to the
-copy'n'paste dance to grant access each time LO is launched.
-
-related tdf#115643 also store the refresh token for onedrive
-consolidate the fallback-auth provides for onedrive/gdrive into one,
-they are all the same login in browser, then copy code method that
-ultimately should be changed to having LO listen on local port for the
-code

- inc/libcmis/session.hxx   |   2 +
- src/libcmis/gdrive-document.cxx   |  49 ++--
- src/libcmis/gdrive-folder.cxx |  25 ++--
- src/libcmis/gdrive-object.cxx |  43 +++
- src/libcmis/gdrive-repository.cxx |   2 +-
- src/libcmis/gdrive-session.cxx|  76 ++-
- src/libcmis/gdrive-session.hxx|   8 ++
- src/libcmis/gdrive-utils.cxx  |  33 ++---
- src/libcmis/gdrive-utils.hxx  |   3 +-
- src/libcmis/http-session.hxx  |   2 +-
- src/libcmis/oauth2-handler.cxx|  16 ++-
- src/libcmis/oauth2-handler.hxx|   1 +
- src/libcmis/oauth2-providers.cxx  | 203 +-
- src/libcmis/oauth2-providers.hxx  |   6 +-
- src/libcmis/onedrive-session.cxx  |  39 ++
- src/libcmis/onedrive-session.hxx  |  10 +-
- src/libcmis/session-factory.cxx   |   2 +-
- 17 files changed, 206 insertions(+), 314 deletions(-)
-
-diff --git a/inc/libcmis/session.hxx b/inc/libcmis/session.hxx
-index 0a768a8..ec95ab4 100644
 a/inc/libcmis/session.hxx
-+++ b/inc/libcmis/session.hxx
-@@ -95,6 +95,8 @@ namespace libcmis
- certificate exception feature available on common web browser.
-   */
- virtual void setNoSSLCertificateCheck( bool noCheck ) = 0;
-+
-+virtual std::string getRefreshToken() { return ""; };
- };
- }
- 
-diff --git a/src/libcmis/gdrive-document.cxx b/src/libcmis/gdrive-document.cxx
-index fe7b73a..ecb13d6 100644
 a/src/libcmis/gdrive-document.cxx
-+++ b/src/libcmis/gdrive-document.cxx
-@@ -145,23 +145,17 @@ void GDriveDocument::uploadStream( boost::shared_ptr< 
ostream > os,
- {
- if ( !os.get( ) )
- throw libcmis::Exception( "Missing stream" );
--if ( !isImmutable( ) )
--throw libcmis::Exception( string ( "Document " + getId( )+ 
--" is not editable" ) );
--string putUrl = getUploadUrl( ) + getId( );
--putUrl += "?uploadType=media";
--
--// If it's a Google document, convert it 
--if ( isGoogleDoc( ) )
--putUrl  += "&convert=true";
-+
-+string putUrl = GDRIVE_UPLOAD_LINK + getId( ) + "?uploadType=media";
- 
- // Upload stream
- boost::shared_ptr< istream> is ( new istream ( o

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/files/, dev-cpp/libcmis/

2022-12-26 Thread Andreas Sturmlechner
commit: be8dc4f5b4ef1d2ee4eb99fd2952229dba5f8d4f
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Dec 26 12:16:32 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Dec 26 23:19:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be8dc4f5

dev-cpp/libcmis: Apply fixes from copy bundled in LO

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../files/libcmis-0.5.2-fix-gdrive-onedrive.patch  | 980 +
 .../libcmis/files/libcmis-0.5.2-fix-onedrive.patch | 481 ++
 ...libcmis-0.5.2-gdrive-do-not-allow-copying.patch | 722 +++
 ...bcmis-0.5.2-onedrive-do-not-allow-copying.patch | 430 +
 dev-cpp/libcmis/libcmis-0.5.2-r2.ebuild|  69 ++
 5 files changed, 2682 insertions(+)

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-onedrive.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-onedrive.patch
new file mode 100644
index ..b1e07ad89e24
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-onedrive.patch
@@ -0,0 +1,980 @@
+From bce91e0854a0ff1d0b2023f1f3a54077a36e3738 Mon Sep 17 00:00:00 2001
+From: Christian Lohmaier 
+Date: Mon, 23 Aug 2021 15:10:08 +0100
+Subject: [PATCH] tdf#101630 - gdrive support w/oAuth and Drive API v3
+
+LibreOffice is only using drive.file scope, so can only see files it
+owns/that were created by LibreOffice.
+
+In addition, also store the refresh token in LO's password-store if the
+user enabled persistent storage, removing the need to to the
+copy'n'paste dance to grant access each time LO is launched.
+
+related tdf#115643 also store the refresh token for onedrive
+consolidate the fallback-auth provides for onedrive/gdrive into one,
+they are all the same login in browser, then copy code method that
+ultimately should be changed to having LO listen on local port for the
+code
+---
+ inc/libcmis/session.hxx   |   2 +
+ src/libcmis/gdrive-document.cxx   |  49 ++--
+ src/libcmis/gdrive-folder.cxx |  25 ++--
+ src/libcmis/gdrive-object.cxx |  43 +++
+ src/libcmis/gdrive-repository.cxx |   2 +-
+ src/libcmis/gdrive-session.cxx|  76 ++-
+ src/libcmis/gdrive-session.hxx|   8 ++
+ src/libcmis/gdrive-utils.cxx  |  33 ++---
+ src/libcmis/gdrive-utils.hxx  |   3 +-
+ src/libcmis/http-session.hxx  |   2 +-
+ src/libcmis/oauth2-handler.cxx|  16 ++-
+ src/libcmis/oauth2-handler.hxx|   1 +
+ src/libcmis/oauth2-providers.cxx  | 203 +-
+ src/libcmis/oauth2-providers.hxx  |   6 +-
+ src/libcmis/onedrive-session.cxx  |  39 ++
+ src/libcmis/onedrive-session.hxx  |  10 +-
+ src/libcmis/session-factory.cxx   |   2 +-
+ 17 files changed, 206 insertions(+), 314 deletions(-)
+
+diff --git a/inc/libcmis/session.hxx b/inc/libcmis/session.hxx
+index 0a768a8..ec95ab4 100644
+--- a/inc/libcmis/session.hxx
 b/inc/libcmis/session.hxx
+@@ -95,6 +95,8 @@ namespace libcmis
+ certificate exception feature available on common web browser.
+   */
+ virtual void setNoSSLCertificateCheck( bool noCheck ) = 0;
++
++virtual std::string getRefreshToken() { return ""; };
+ };
+ }
+ 
+diff --git a/src/libcmis/gdrive-document.cxx b/src/libcmis/gdrive-document.cxx
+index fe7b73a..ecb13d6 100644
+--- a/src/libcmis/gdrive-document.cxx
 b/src/libcmis/gdrive-document.cxx
+@@ -145,23 +145,17 @@ void GDriveDocument::uploadStream( boost::shared_ptr< 
ostream > os,
+ {
+ if ( !os.get( ) )
+ throw libcmis::Exception( "Missing stream" );
+-if ( !isImmutable( ) )
+-throw libcmis::Exception( string ( "Document " + getId( )+ 
+-" is not editable" ) );
+-string putUrl = getUploadUrl( ) + getId( );
+-putUrl += "?uploadType=media";
+-
+-// If it's a Google document, convert it 
+-if ( isGoogleDoc( ) )
+-putUrl  += "&convert=true";
++
++string putUrl = GDRIVE_UPLOAD_LINK + getId( ) + "?uploadType=media";
+ 
+ // Upload stream
+ boost::shared_ptr< istream> is ( new istream ( os->rdbuf( ) ) );
+ vector  headers;
+ headers.push_back( string( "Content-Type: " ) + contentType );
++string res;
+ try
+ {
+-getSession()->httpPutRequest( putUrl, *is, headers );
++res = getSession()->httpPatchRequest( putUrl, *is, headers 
)->getStream()->str();
+ }
+ catch ( const CurlException& e )
+ {
+@@ -181,35 +175,10 @@ void GDriveDocument::setContentStream( 
boost::shared_ptr< ostream > os,
+ {
+ if ( !os.get( ) )
+ throw libcmis::Exception( "Missing stream" );
+-
+-if ( !isImmutable( ) )
+-throw libcmis::Exception( string ( "Document " + getId( )+ 
+-" is not editable" ) );
+-string metaUrl = getUrl( );
+-
+-// If it's a Google document, convert it 
+-if ( isGoogleDoc( ) )
+-metaUrl += "?convert=true";
+-
+-// Updat

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2022-12-26 Thread Andreas Sturmlechner
commit: 64482bb14deec93d807995b005753eb1bf6392ba
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Dec 26 11:47:17 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Dec 26 23:19:21 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64482bb1

dev-cpp/libcmis: update EAPI 7 -> 8

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/libcmis-.ebuild | 27 +++
 1 file changed, 11 insertions(+), 16 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 21fd0ee9..10de5182674b 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,25 +1,32 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-if [[ ${PV} =  ]]; then
+if [[ ${PV} == ** ]]; then
EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 fi
-inherit autotools flag-o-matic
+inherit autotools
 
 DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"
+IUSE="man test tools"
 
-IUSE="man static-libs test tools"
+RESTRICT="test"
 
+DEPEND="
+   dev-libs/boost:=
+   dev-libs/libxml2
+   net-misc/curl
+"
+RDEPEND="${DEPEND}"
 BDEPEND="
virtual/pkgconfig
man? (
@@ -31,14 +38,6 @@ BDEPEND="
dev-util/cppunit
)
 "
-DEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-RDEPEND="${DEPEND}"
-
-RESTRICT="test"
 
 src_prepare() {
default
@@ -46,14 +45,10 @@ src_prepare() {
 }
 
 src_configure() {
-   # bug 618778
-   append-cxxflags -std=c++14
-
local myeconfargs=(
--program-suffix=-$(ver_cut 1-2)
--disable-werror
$(use_with man)
-   $(use_enable static-libs static)
$(use_enable test tests)
$(use_enable tools client)
)



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2019-07-31 Thread Aaron Bauman
commit: 5ba6db476ac1e5657edda132b80cc22a1dc2be8e
Author: Aaron Bauman  gentoo  org>
AuthorDate: Wed Jul 31 20:48:53 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Wed Jul 31 21:11:00 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ba6db47

dev-cpp/libcmis: arm64 stable

Signed-off-by: Aaron Bauman  gentoo.org>
Package-Manager: Portage-2.3.69, Repoman-2.3.16
RepoMan-Options: --include-arches="arm64"

 dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
index 1383cf4ab3c..6fcf5cd2b07 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
@@ -8,7 +8,7 @@ if [[ ${PV} =  ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
 fi
 inherit autotools flag-o-matic
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2019-05-24 Thread Andreas Sturmlechner
commit: e6f152df07b3669b0f4bfd81cb542973332219f2
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri May 24 12:22:35 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri May 24 12:22:50 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6f152df

dev-cpp/libcmis: Drop 0.5.2 (r0)

Signed-off-by: Andreas Sturmlechner  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 dev-cpp/libcmis/libcmis-0.5.2.ebuild | 66 
 1 file changed, 66 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2.ebuild
deleted file mode 100644
index bd2e18fadf2..000
--- a/dev-cpp/libcmis/libcmis-0.5.2.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-if [[ ${PV} =  ]]; then
-   EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
-   inherit git-r3
-else
-   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
-fi
-inherit autotools flag-o-matic
-
-DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://github.com/tdf/libcmis";
-
-LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
-
-IUSE="man static-libs test"
-
-RDEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-   virtual/pkgconfig
-   man? (
-   app-text/docbook2X
-   dev-libs/libxslt
-   )
-   test? (
-   dev-util/cppcheck
-   dev-util/cppunit
-   )
-"
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-   eautoreconf
-}
-
-src_configure() {
-   # bug 618778
-   append-cxxflags -std=c++14
-
-   local myeconfargs=(
-   --program-suffix=-$(ver_cut 1-2)
-   --disable-werror
-   $(use_with man)
-   $(use_enable static-libs static)
-   $(use_enable test tests)
-   --enable-client
-   )
-   econf "${myeconfargs[@]}"
-}
-
-src_install() {
-   default
-   find "${D}" -name '*.la' -delete || die
-}



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2019-05-24 Thread Andreas Sturmlechner
commit: 45b3ee57a20efccb781c3d1f56ce735ebcc5a9f5
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri May 24 12:22:04 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri May 24 12:22:50 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45b3ee57

dev-cpp/libcmis: 0.5.2-r1 amd64/x86 stable

Closes: https://bugs.gentoo.org/674414
Signed-off-by: Andreas Sturmlechner  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
index c9f4938bb63..1383cf4ab3c 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
@@ -8,7 +8,7 @@ if [[ ${PV} =  ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
 fi
 inherit autotools flag-o-matic
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/, dev-cpp/libcmis/files/

2019-04-21 Thread Andreas Sturmlechner
commit: 5f2d211486320137d50b3224eb260bbe9f3e747e
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Apr 20 23:56:27 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Apr 21 11:30:59 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f2d2114

dev-cpp/libcmis: Fix build with ICU 64.2

Bug: https://bugs.gentoo.org/674414
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch | 17 +
 dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild|  2 ++
 2 files changed, 19 insertions(+)

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch
new file mode 100644
index 000..6ba63ee7fe7
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.5.2-icu-64.2.patch
@@ -0,0 +1,17 @@
+--- a/inc/libcmis-c/repository.h   2018-12-27 14:07:55.0 +0100
 b/inc/libcmis-c/repository.h   2019-04-21 01:29:46.504373226 +0200
+@@ -28,12 +28,12 @@
+ #ifndef _REPOSITORY_H_
+ #define _REPOSITORY_H_
+ 
++#include 
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
+-#include 
+-
+ #include "libcmis-c/libcmis-c-api.h"
+ #include "libcmis-c/types.h"
+ 

diff --git a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
index a060dbb78ee..c9f4938bb63 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
@@ -40,6 +40,8 @@ RDEPEND="${DEPEND}"
 
 RESTRICT="test"
 
+PATCHES=( "${FILESDIR}/${P}-icu-64.2.patch" )
+
 src_prepare() {
default
eautoreconf



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2019-04-21 Thread Andreas Sturmlechner
commit: 0369fd931feeec7800ed7a9114f2df747f5cc98c
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Apr 20 23:53:37 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Apr 21 11:30:58 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0369fd93

dev-cpp/libcmis: Add USE tools

Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...libcmis-.ebuild => libcmis-0.5.2-r1.ebuild} | 28 --
 dev-cpp/libcmis/libcmis-.ebuild| 28 --
 dev-cpp/libcmis/metadata.xml   |  3 ++-
 3 files changed, 22 insertions(+), 37 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
similarity index 66%
copy from dev-cpp/libcmis/libcmis-.ebuild
copy to dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
index 33f9f92173e..a060dbb78ee 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,11 +6,9 @@ EAPI=7
 if [[ ${PV} =  ]]; then
EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
inherit git-r3
-elif [[ ${PV} = *_pre* ]]; then
-   COMMIT=738528d790b2b1d52d9b72d673842969a852815d
-   SRC_URI="https://github.com/tdf/${PN}/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 fi
 inherit autotools flag-o-matic
 
@@ -20,18 +18,8 @@ HOMEPAGE="https://github.com/tdf/libcmis";
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"
 
-# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
-[[ ${PV} ==  ]] || \
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="man static-libs test tools"
 
-IUSE="man static-libs test"
-
-RDEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-DEPEND="${RDEPEND}"
 BDEPEND="
virtual/pkgconfig
man? (
@@ -43,11 +31,15 @@ BDEPEND="
dev-util/cppunit
)
 "
+DEPEND="
+   dev-libs/boost:=
+   dev-libs/libxml2
+   net-misc/curl
+"
+RDEPEND="${DEPEND}"
 
 RESTRICT="test"
 
-[[ ${PV} = *_pre* ]] && S="${WORKDIR}/${PN}-${COMMIT}"
-
 src_prepare() {
default
eautoreconf
@@ -63,7 +55,7 @@ src_configure() {
$(use_with man)
$(use_enable static-libs static)
$(use_enable test tests)
-   --enable-client
+   $(use_enable tools client)
)
econf "${myeconfargs[@]}"
 }

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 33f9f92173e..a060dbb78ee 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,11 +6,9 @@ EAPI=7
 if [[ ${PV} =  ]]; then
EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
inherit git-r3
-elif [[ ${PV} = *_pre* ]]; then
-   COMMIT=738528d790b2b1d52d9b72d673842969a852815d
-   SRC_URI="https://github.com/tdf/${PN}/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 fi
 inherit autotools flag-o-matic
 
@@ -20,18 +18,8 @@ HOMEPAGE="https://github.com/tdf/libcmis";
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"
 
-# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
-[[ ${PV} ==  ]] || \
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="man static-libs test tools"
 
-IUSE="man static-libs test"
-
-RDEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-DEPEND="${RDEPEND}"
 BDEPEND="
virtual/pkgconfig
man? (
@@ -43,11 +31,15 @@ BDEPEND="
dev-util/cppunit
)
 "
+DEPEND="
+   dev-libs/boost:=
+   dev-libs/libxml2
+   net-misc/curl
+"
+RDEPEND="${DEPEND}"
 
 RESTRICT="test"
 
-[[ ${PV} = *_pre* ]] && S="${WORKDIR}/${PN}-${COMMIT}"
-
 src_prepare() {
default
eautoreconf
@@ -63,7 +55,7 @@ src_configure() {
$(use_with man)
$(use_enable static-libs static)
$(use_enable test tests)
-   --enable-client
+   $(use_enable tools client)
)
econf "${myeconfargs[@]}"
 }

diff --git a/dev-cpp/libcmis/metadata.xml b/dev-cpp/libcmis/metadata.xml
index afb9c075be7..02623876d9c 100644
--- a/dev-cpp/libcmis/metadata.xml
+++ b/dev-cpp/

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/files/, dev-cpp/libcmis/

2019-02-17 Thread Andreas Sturmlechner
commit: 16b0199b7774379301c92946006e6e01f4c51e87
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Feb 17 19:26:42 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Feb 17 22:59:27 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16b0199b

dev-cpp/libcmis: Drop <0.5.2

Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/Manifest   |  2 -
 .../libcmis/files/libcmis-0.5.2-boost-1.68.patch   | 25 ---
 .../files/libcmis-0.5.2-fix-gdrive-2fa.patch   | 70 --
 .../files/libcmis-0.5.2-oauth2-encode.patch| 69 --
 .../libcmis/libcmis-0.5.2_pre20160820-r1.ebuild| 85 --
 dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild   | 77 
 6 files changed, 328 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index 2065d178dde..c1568ef2f82 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,3 +1 @@
 DIST libcmis-0.5.2.tar.gz 295020 BLAKE2B 
325eacedd87eb1888a439c727a648c5aeb8d58c9b80add9761ffc55381193b71b589865d13ecd55177faafa935642685001f60456c1354e037989b29e9451c05
 SHA512 
45d8cd6d420a9593b46e1f2d6fbf384ea248cb218b0db6326ee2f082ff29100b65a2cc999ccb849e61df4f4ed7c3721b09addc6c322ef03c6c93f8c0acc02bde
-DIST libcmis-0.5.2_pre20160820.tar.gz 285100 BLAKE2B 
980200d1a56240d8d069aba2ad349ec02e90d345bad4956f6cbbea3606f9f90951523804293b349ad0419dd2db6db294a45a97872469105c1ba392c888fab332
 SHA512 
4b6d0fc4d80444fea2c5eb16621b92a10b41c58128cc8a355caca50f12648ed5113bd977cc5dbe8971e3dbc11f9d7ae8d45c9d2aa19f37c83659141af135bd1a
-DIST libcmis-0.5.2_pre20180118.tar.gz 291080 BLAKE2B 
1cb5664dcb0bef7f5a04c422b21ac54a9b70d38dec74d688327732630e4a134a88c7262d763a39d1730eda1cd45f5d3c3d47a56099959d01bf5e23972181a793
 SHA512 
630cf7e5c31266e2b55ca093aa942fc373eb24bbb5b9aedd687f67f1b3c6b627a3bdb58878859449bcb340626f3e1bdafa2b9cbb5e61e8e4336c45b804fca7a9

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-boost-1.68.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-boost-1.68.patch
deleted file mode 100644
index 767464242f7..000
--- a/dev-cpp/libcmis/files/libcmis-0.5.2-boost-1.68.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 3ef3569c4ae1c5319aff0664d52cbd8a8d42c909 Mon Sep 17 00:00:00 2001
-From: rezso 
-Date: Tue, 4 Sep 2018 01:18:10 +0200
-Subject: tdf#119344 fix libcmis build with boost 1.68
-
-Change-Id: I80d6ea8ecd001dc02b941c1eb8974c9244316045
-Reviewed-on: https://gerrit.libreoffice.org/59958
-Tested-by: Jenkins
-Reviewed-by: Michael Stahl 
-
 a/src/libcmis/xml-utils.cxx
-+++ b/src/libcmis/xml-utils.cxx
-@@ -31,7 +31,12 @@
- #include 
- #include 
- 
-+#include 
-+#if (BOOST_VERSION >= 106800)
-+#include 
-+#else
- #include 
-+#endif
- #include 
- 
- #include "xml-utils.hxx"

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-2fa.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-2fa.patch
deleted file mode 100644
index 3c19e99a5ba..000
--- a/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-2fa.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 1effce6d286ba3a9f467e15074b532d2ba4b7c98 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Szymon=20K=C5=82os?= 
-Date: Wed, 29 Mar 2017 17:45:10 +0200
-Subject: [PATCH] Fix 2FA for Google Drive
-

- src/libcmis/oauth2-providers.cxx | 15 +--
- 1 file changed, 13 insertions(+), 2 deletions(-)
-
-diff --git a/src/libcmis/oauth2-providers.cxx 
b/src/libcmis/oauth2-providers.cxx
-index 74c0fec..dd872dd 100644
 a/src/libcmis/oauth2-providers.cxx
-+++ b/src/libcmis/oauth2-providers.cxx
-@@ -37,6 +37,7 @@
- #define CHALLENGE_PAGE_ACTION_LEN sizeof( CHALLENGE_PAGE_ACTION ) - 1
- #define PIN_FORM_ACTION "/signin/challenge/ipp"
- #define PIN_FORM_ACTION_LEN sizeof( PIN_FORM_ACTION ) - 1
-+#define PIN_INPUT_NAME "Pin"
- 
- using namespace std;
- 
-@@ -152,7 +153,7 @@ string OAuth2Providers::OAuth2Gdrive( HttpSession* 
session, const string& authUr
- }
- 
- loginChallengeLink = "https://accounts.google.com"; + 
loginChallengeLink;
--loginChallengePost += "Pin=";
-+loginChallengePost += string( PIN_INPUT_NAME ) + "=";
- loginChallengePost += string( pin );
- 
- istringstream loginChallengeIs( loginChallengePost );
-@@ -291,6 +292,8 @@ int OAuth2Providers::parseResponse ( const char* response, 
string& post, string&
- if ( reader == NULL ) return 0;
- 
- bool readInputField = false;
-+bool bIsRightForm = false;
-+bool bHasPinField = false;
- 
- while ( true )
- {
-@@ -301,6 +304,12 @@ int OAuth2Providers::parseResponse ( const char* 
response, string& post, string&
- // Find the redirect link
- if ( xmlStrEqual( nodeName, BAD_CAST( "form" ) ) )
- {
-+// 2FA: Don't add fields form other forms not having pin field
-+if ( bIsRightForm && !bHasPinField )
-+post = strin

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2019-02-17 Thread Mikle Kolyada
commit: 2ccb2b75790baffe6ff18c9f3edbe6b48eeb6284
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Feb 17 17:55:28 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Feb 17 17:58:02 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ccb2b75

dev-cpp/libcmis: x86 stable wrt bug #676956

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
RepoMan-Options: --include-arches="x86"

 dev-cpp/libcmis/libcmis-0.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2.ebuild
index de6bf74d4d3..bd2e18fadf2 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2.ebuild
@@ -8,7 +8,7 @@ if [[ ${PV} =  ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
 fi
 inherit autotools flag-o-matic
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2019-02-17 Thread Mikle Kolyada
commit: 042493e92282206d78ab4605bb0925c0ce9aa825
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Feb 17 15:32:41 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Feb 17 15:32:41 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=042493e9

dev-cpp/libcmis: amd64 stable wrt bug #676956

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
RepoMan-Options: --include-arches="amd64"

 dev-cpp/libcmis/libcmis-0.5.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2.ebuild
index 2598ba45073..de6bf74d4d3 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -8,7 +8,7 @@ if [[ ${PV} =  ]]; then
inherit git-r3
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+   KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 fi
 inherit autotools flag-o-matic
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2018-12-30 Thread Andreas Sturmlechner
commit: d76b148ac130c329531b4758a3b35648d89a263d
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Dec 30 18:56:10 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Dec 30 20:07:25 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d76b148a

dev-cpp/libcmis: 0.5.2 version bump

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-cpp/libcmis/Manifest   |  1 +
 .../{libcmis-.ebuild => libcmis-0.5.2.ebuild}  | 28 +-
 dev-cpp/libcmis/libcmis-.ebuild| 20 +---
 3 files changed, 23 insertions(+), 26 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index 2e15c177422..2065d178dde 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,2 +1,3 @@
+DIST libcmis-0.5.2.tar.gz 295020 BLAKE2B 
325eacedd87eb1888a439c727a648c5aeb8d58c9b80add9761ffc55381193b71b589865d13ecd55177faafa935642685001f60456c1354e037989b29e9451c05
 SHA512 
45d8cd6d420a9593b46e1f2d6fbf384ea248cb218b0db6326ee2f082ff29100b65a2cc999ccb849e61df4f4ed7c3721b09addc6c322ef03c6c93f8c0acc02bde
 DIST libcmis-0.5.2_pre20160820.tar.gz 285100 BLAKE2B 
980200d1a56240d8d069aba2ad349ec02e90d345bad4956f6cbbea3606f9f90951523804293b349ad0419dd2db6db294a45a97872469105c1ba392c888fab332
 SHA512 
4b6d0fc4d80444fea2c5eb16621b92a10b41c58128cc8a355caca50f12648ed5113bd977cc5dbe8971e3dbc11f9d7ae8d45c9d2aa19f37c83659141af135bd1a
 DIST libcmis-0.5.2_pre20180118.tar.gz 291080 BLAKE2B 
1cb5664dcb0bef7f5a04c422b21ac54a9b70d38dec74d688327732630e4a134a88c7262d763a39d1730eda1cd45f5d3c3d47a56099959d01bf5e23972181a793
 SHA512 
630cf7e5c31266e2b55ca093aa942fc373eb24bbb5b9aedd687f67f1b3c6b627a3bdb58878859449bcb340626f3e1bdafa2b9cbb5e61e8e4336c45b804fca7a9

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2.ebuild
similarity index 58%
copy from dev-cpp/libcmis/libcmis-.ebuild
copy to dev-cpp/libcmis/libcmis-0.5.2.ebuild
index 8513c4a8cb4..2598ba45073 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,11 +6,9 @@ EAPI=7
 if [[ ${PV} =  ]]; then
EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
inherit git-r3
-elif [[ ${PV} = *_pre* ]]; then
-   COMMIT=738528d790b2b1d52d9b72d673842969a852815d
-   SRC_URI="https://github.com/tdf/${PN}/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 fi
 inherit autotools flag-o-matic
 
@@ -20,10 +18,6 @@ HOMEPAGE="https://github.com/tdf/libcmis";
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"
 
-# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
-[[ ${PV} ==  ]] || \
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-
 IUSE="man static-libs test"
 
 RDEPEND="
@@ -46,24 +40,24 @@ BDEPEND="
 
 RESTRICT="test"
 
-[[ ${PV} = *_pre* ]] && S="${WORKDIR}/${PN}-${COMMIT}"
-
 src_prepare() {
default
-   [[ ${PV} = *_pre* || ${PV} =  ]] && eautoreconf
+   eautoreconf
 }
 
 src_configure() {
# bug 618778
append-cxxflags -std=c++14
 
-   econf \
-   --program-suffix=-$(ver_cut 1-2) \
-   --disable-werror \
-   $(use_with man) \
-   $(use_enable static-libs static) \
-   $(use_enable test tests) \
+   local myeconfargs=(
+   --program-suffix=-$(ver_cut 1-2)
+   --disable-werror
+   $(use_with man)
+   $(use_enable static-libs static)
+   $(use_enable test tests)
--enable-client
+   )
+   econf "${myeconfargs[@]}"
 }
 
 src_install() {

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 8513c4a8cb4..33f9f92173e 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,7 +22,7 @@ SLOT="0.5"
 
 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
 [[ ${PV} ==  ]] || \
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 
 IUSE="man static-libs test"
 
@@ -50,20 +50,22 @@ RESTRICT="test"
 
 src_prepare() {
default
-   [[ ${PV} = *_pre* || ${PV} =  ]] && eautoreconf
+   eautoreconf
 }
 
 src_configure() {
# bug 618778
append-cxxflags -std=c++14
 
-   econf \
-   --program-suff

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2018-09-19 Thread Matt Turner
commit: 1a85017d8d75bae7221821739238fbe1c9125167
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Sep 19 18:34:07 2018 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Sep 19 18:34:54 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a85017d

dev-cpp/libcmis-0.5.2_pre20180118: added ~ppc64, bug 664414

 dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
index 9d26d35d5df..2707ed8b630 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
@@ -22,7 +22,7 @@ SLOT="0.5"
 
 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
 [[ ${PV} ==  ]] || \
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 
 IUSE="man static-libs test"
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/files/, dev-cpp/libcmis/

2018-09-16 Thread Andreas Sturmlechner
commit: c7befb2acb16f58e52e9914826ef4a6c7ca35cad
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Sep 16 21:47:41 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Sep 16 22:29:12 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7befb2a

dev-cpp/libcmis: Add new 0.5.2_pre20180118 snapshot

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 dev-cpp/libcmis/Manifest   |  1 +
 .../libcmis/files/libcmis-0.5.2-boost-1.68.patch   | 25 
 .../files/libcmis-0.5.2-oauth2-encode.patch| 69 ++
 ...999.ebuild => libcmis-0.5.2_pre20180118.ebuild} | 27 +
 dev-cpp/libcmis/libcmis-.ebuild| 22 +++
 5 files changed, 118 insertions(+), 26 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index b7fef5d145e..2e15c177422 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1 +1,2 @@
 DIST libcmis-0.5.2_pre20160820.tar.gz 285100 BLAKE2B 
980200d1a56240d8d069aba2ad349ec02e90d345bad4956f6cbbea3606f9f90951523804293b349ad0419dd2db6db294a45a97872469105c1ba392c888fab332
 SHA512 
4b6d0fc4d80444fea2c5eb16621b92a10b41c58128cc8a355caca50f12648ed5113bd977cc5dbe8971e3dbc11f9d7ae8d45c9d2aa19f37c83659141af135bd1a
+DIST libcmis-0.5.2_pre20180118.tar.gz 291080 BLAKE2B 
1cb5664dcb0bef7f5a04c422b21ac54a9b70d38dec74d688327732630e4a134a88c7262d763a39d1730eda1cd45f5d3c3d47a56099959d01bf5e23972181a793
 SHA512 
630cf7e5c31266e2b55ca093aa942fc373eb24bbb5b9aedd687f67f1b3c6b627a3bdb58878859449bcb340626f3e1bdafa2b9cbb5e61e8e4336c45b804fca7a9

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-boost-1.68.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-boost-1.68.patch
new file mode 100644
index 000..767464242f7
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.5.2-boost-1.68.patch
@@ -0,0 +1,25 @@
+From 3ef3569c4ae1c5319aff0664d52cbd8a8d42c909 Mon Sep 17 00:00:00 2001
+From: rezso 
+Date: Tue, 4 Sep 2018 01:18:10 +0200
+Subject: tdf#119344 fix libcmis build with boost 1.68
+
+Change-Id: I80d6ea8ecd001dc02b941c1eb8974c9244316045
+Reviewed-on: https://gerrit.libreoffice.org/59958
+Tested-by: Jenkins
+Reviewed-by: Michael Stahl 
+
+--- a/src/libcmis/xml-utils.cxx
 b/src/libcmis/xml-utils.cxx
+@@ -31,7 +31,12 @@
+ #include 
+ #include 
+ 
++#include 
++#if (BOOST_VERSION >= 106800)
++#include 
++#else
+ #include 
++#endif
+ #include 
+ 
+ #include "xml-utils.hxx"

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-oauth2-encode.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-oauth2-encode.patch
new file mode 100644
index 000..c6a99074c50
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.5.2-oauth2-encode.patch
@@ -0,0 +1,69 @@
+From 33f7485dedea90e0f80c6348fa8ac5f27c5052e0 Mon Sep 17 00:00:00 2001
+From: Stephan Bergmann 
+Date: Tue, 4 Sep 2018 16:45:00 +0200
+Subject: Properly encode OAuth2 credentials
+
+Change-Id: Ic3edeae035262309e91fb01e3aca5c2f905bc3e5
+Reviewed-on: https://gerrit.libreoffice.org/59986
+Tested-by: Jenkins
+Reviewed-by: Stephan Bergmann 
+
+--- a/src/libcmis/oauth2-providers.cxx
 b/src/libcmis/oauth2-providers.cxx
+@@ -26,6 +26,8 @@
+  * instead of those above.
+  */
+ 
++#include 
++
+ #include 
+ #include 
+ 
+@@ -45,6 +47,29 @@
+ #define HTML_PARSE_RECOVER 0
+ #endif
+ 
++namespace {
++
++// See :
++void addXWwwFormUrlencoded(std::string * buffer, std::string const & data) {
++assert(buffer);
++for (string::const_iterator i = data.begin(); i != data.end(); ++i) {
++unsigned char c = static_cast(*i);
++if (c == ' ' || c == '*' || c == '-' || c == '.' || (c >= '0' && c <= 
'9')
++|| (c >= 'A' && c <= 'Z') || c == '_' || (c >= 'a' && c <= 'z'))
++{
++*buffer += static_cast(c);
++} else {
++static const char hex[16] = {
++'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 
'C', 'D', 'E', 'F'};
++*buffer += '%';
++*buffer += hex[c >> 4];
++*buffer += hex[c & 0xF];
++}
++}
++}
++
++}
++
+ string OAuth2Providers::OAuth2Gdrive( HttpSession* session, const string& 
authUrl,
+   const string& username, const string& 
password )
+ {
+@@ -97,7 +120,7 @@
+ return string( );
+ 
+ loginEmailPost += "Email=";
+-loginEmailPost += string( username );
++addXWwwFormUrlencoded(&loginEmailPost, username);
+ 
+ istringstream loginEmailIs( loginEmailPost );
+ string loginEmailRes;
+@@ -119,7 +142,7 @@
+ return string( );
+ 
+ loginPasswdPost += "Passwd=";
+-loginPasswdPost += string( password );
++addXWwwFormUrlencoded(&loginPasswdPost, password);
+ 
+ istringstream loginPasswdIs( loginPasswdPost );
+ string loginPasswdRes;

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
similarity in

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2018-09-16 Thread Andreas Sturmlechner
commit: 70fcc8c0d30ddf01d6113517b443c19455e04b1e
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Sep 16 21:42:01 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Sep 16 22:29:12 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70fcc8c0

dev-cpp/libcmis: EAPI-7 bump

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild | 7 ---
 dev-cpp/libcmis/libcmis-.ebuild  | 7 ---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
index a918f64a596..9d26d35d5df 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 if [[ ${PV} =  ]]; then
EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
@@ -31,7 +31,8 @@ RDEPEND="
dev-libs/libxml2
net-misc/curl
 "
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
virtual/pkgconfig
man? (
app-text/docbook2X
@@ -62,7 +63,7 @@ src_configure() {
append-cxxflags -std=c++14
 
econf \
-   --program-suffix=-${SLOT} \
+   --program-suffix=-$(ver_cut 1-2) \
--disable-werror \
$(use_with man) \
$(use_enable static-libs static) \

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 648347ed63b..8513c4a8cb4 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 if [[ ${PV} =  ]]; then
EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
@@ -31,7 +31,8 @@ RDEPEND="
dev-libs/libxml2
net-misc/curl
 "
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
virtual/pkgconfig
man? (
app-text/docbook2X
@@ -57,7 +58,7 @@ src_configure() {
append-cxxflags -std=c++14
 
econf \
-   --program-suffix=-${SLOT} \
+   --program-suffix=-$(ver_cut 1-2) \
--disable-werror \
$(use_with man) \
$(use_enable static-libs static) \



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2018-09-16 Thread Andreas Sturmlechner
commit: 0ddf6f6f6b74f3aaeafa458b1bcab563166bd722
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Sep 16 21:16:40 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Sep 16 22:29:12 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ddf6f6f

dev-cpp/libcmis: Drop alternatives eclass

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild | 10 +-
 dev-cpp/libcmis/libcmis-.ebuild  | 10 +-
 2 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
index 9c4546b7f5f..a918f64a596 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20180118.ebuild
@@ -12,7 +12,7 @@ elif [[ ${PV} = *_pre* ]]; then
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 fi
-inherit alternatives autotools flag-o-matic
+inherit autotools flag-o-matic
 
 DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
@@ -74,11 +74,3 @@ src_install() {
default
find "${D}" -name '*.la' -delete || die
 }
-
-pkg_postinst() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}
-
-pkg_postrm() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 922b7a7756a..648347ed63b 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -12,7 +12,7 @@ elif [[ ${PV} = *_pre* ]]; then
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 fi
-inherit alternatives autotools flag-o-matic
+inherit autotools flag-o-matic
 
 DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
@@ -69,11 +69,3 @@ src_install() {
default
find "${D}" -name '*.la' -delete || die
 }
-
-pkg_postinst() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}
-
-pkg_postrm() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2018-02-19 Thread David Seifert
commit: 12d356d589aa327bbee1339b23ac144c977f4e6c
Author: David Seifert  gentoo  org>
AuthorDate: Mon Feb 19 18:17:20 2018 +
Commit: David Seifert  gentoo  org>
CommitDate: Mon Feb 19 19:40:11 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d356d5

dev-cpp/libcmis: Always build in C++14 mode

Closes: https://bugs.gentoo.org/618778
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild | 7 +--
 dev-cpp/libcmis/libcmis-.ebuild | 7 +--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild
index ef3f0775329..8377602271d 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,7 +14,7 @@ elif [[ ${PV} = *_pre* ]]; then
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 fi
-inherit alternatives autotools ${SCM_ECLASS}
+inherit alternatives autotools flag-o-matic ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="C++ client library for the CMIS interface"
@@ -59,6 +59,9 @@ src_prepare() {
 }
 
 src_configure() {
+   # bug 618778
+   append-cxxflags -std=c++14
+
econf \
--program-suffix=-${SLOT} \
--disable-werror \

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index 603a0334c7d..78e5b1990a3 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,7 +14,7 @@ elif [[ ${PV} = *_pre* ]]; then
 else
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 fi
-inherit alternatives autotools ${SCM_ECLASS}
+inherit alternatives autotools flag-o-matic ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="C++ client library for the CMIS interface"
@@ -57,6 +57,9 @@ src_prepare() {
 }
 
 src_configure() {
+   # bug 618778
+   append-cxxflags -std=c++14
+
econf \
--program-suffix=-${SLOT} \
--disable-werror \



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2017-06-30 Thread Andreas Sturmlechner
commit: 69767aa0668b59a8afc06cd49feda85e51c7ec2c
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Jun 28 17:31:26 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri Jun 30 17:26:23 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69767aa0

dev-cpp/libcmis: Drop old

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild | 77 
 1 file changed, 77 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
deleted file mode 100644
index 54e36f92036..000
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
-[[ ${PV} ==  ]] && SCM_ECLASS="git-r3"
-inherit alternatives autotools ${SCM_ECLASS}
-unset SCM_ECLASS
-
-DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://github.com/tdf/libcmis";
-if [[ ${PV} = *_pre* ]]; then
-   snapshot=da8c3fdc281a0cb3753a6bb9eaa63ac6385e2963
-   SRC_URI="https://github.com/tdf/${PN}/archive/${snapshot}.tar.gz -> 
${P}.tar.gz"
-   S="${WORKDIR}/${PN}-${snapshot}"
-   unset snapshot
-elif [[ ${PV} !=  ]] ; then
-   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-fi
-
-LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
-
-# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
-[[ ${PV} ==  ]] || \
-KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
-
-IUSE="static-libs man test"
-
-COMMON_DEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-DEPEND="${COMMON_DEPEND}
-   virtual/pkgconfig
-   man? (
-   app-text/docbook2X
-   dev-libs/libxslt
-   )
-   test? (
-   dev-util/cppcheck
-   dev-util/cppunit
-   )
-"
-RDEPEND="${COMMON_DEPEND}
-   !

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/, dev-cpp/libcmis/files/

2017-04-06 Thread Andreas Sturmlechner
commit: f3722acc63671b8733c7a5680d89b913f91b6402
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Apr  6 21:47:49 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Apr  6 22:08:38 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3722acc

dev-cpp/libcmis: Fix gdrive 2FA again, restrict tests, use vcs-snapshot

Gentoo-bug: 577926

See also: https://bugs.documentfoundation.org/show_bug.cgi?id=98416

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../files/libcmis-0.5.2-fix-gdrive-2fa.patch   | 70 ++
 ebuild => libcmis-0.5.2_pre20160820-r1.ebuild} | 29 +
 dev-cpp/libcmis/libcmis-.ebuild| 27 +
 3 files changed, 102 insertions(+), 24 deletions(-)

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-2fa.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-2fa.patch
new file mode 100644
index 000..3c19e99a5ba
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.5.2-fix-gdrive-2fa.patch
@@ -0,0 +1,70 @@
+From 1effce6d286ba3a9f467e15074b532d2ba4b7c98 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Szymon=20K=C5=82os?= 
+Date: Wed, 29 Mar 2017 17:45:10 +0200
+Subject: [PATCH] Fix 2FA for Google Drive
+
+---
+ src/libcmis/oauth2-providers.cxx | 15 +--
+ 1 file changed, 13 insertions(+), 2 deletions(-)
+
+diff --git a/src/libcmis/oauth2-providers.cxx 
b/src/libcmis/oauth2-providers.cxx
+index 74c0fec..dd872dd 100644
+--- a/src/libcmis/oauth2-providers.cxx
 b/src/libcmis/oauth2-providers.cxx
+@@ -37,6 +37,7 @@
+ #define CHALLENGE_PAGE_ACTION_LEN sizeof( CHALLENGE_PAGE_ACTION ) - 1
+ #define PIN_FORM_ACTION "/signin/challenge/ipp"
+ #define PIN_FORM_ACTION_LEN sizeof( PIN_FORM_ACTION ) - 1
++#define PIN_INPUT_NAME "Pin"
+ 
+ using namespace std;
+ 
+@@ -152,7 +153,7 @@ string OAuth2Providers::OAuth2Gdrive( HttpSession* 
session, const string& authUr
+ }
+ 
+ loginChallengeLink = "https://accounts.google.com"; + 
loginChallengeLink;
+-loginChallengePost += "Pin=";
++loginChallengePost += string( PIN_INPUT_NAME ) + "=";
+ loginChallengePost += string( pin );
+ 
+ istringstream loginChallengeIs( loginChallengePost );
+@@ -291,6 +292,8 @@ int OAuth2Providers::parseResponse ( const char* response, 
string& post, string&
+ if ( reader == NULL ) return 0;
+ 
+ bool readInputField = false;
++bool bIsRightForm = false;
++bool bHasPinField = false;
+ 
+ while ( true )
+ {
+@@ -301,6 +304,12 @@ int OAuth2Providers::parseResponse ( const char* 
response, string& post, string&
+ // Find the redirect link
+ if ( xmlStrEqual( nodeName, BAD_CAST( "form" ) ) )
+ {
++// 2FA: Don't add fields form other forms not having pin field
++if ( bIsRightForm && !bHasPinField )
++post = string( "" );
++if ( bIsRightForm && bHasPinField )
++break;
++
+ xmlChar* action = xmlTextReaderGetAttribute( reader, 
+  BAD_CAST( "action" 
));
+ 
+@@ -311,7 +320,7 @@ int OAuth2Providers::parseResponse ( const char* response, 
string& post, string&
+ bool bChallengePage = ( strncmp( (char*)action,
+  CHALLENGE_PAGE_ACTION,
+  CHALLENGE_PAGE_ACTION_LEN ) 
== 0 );
+-bool bIsRightForm = ( strncmp( (char*)action,
++bIsRightForm = ( strncmp( (char*)action,
+  PIN_FORM_ACTION,
+  PIN_FORM_ACTION_LEN ) == 0 );
+ if ( ( xmlStrlen( action ) > 0 )
+@@ -332,6 +341,8 @@ int OAuth2Providers::parseResponse ( const char* response, 
string& post, string&
+BAD_CAST( "name" ));
+ xmlChar* value = xmlTextReaderGetAttribute( reader, 
+ BAD_CAST( "value" ));
++if ( name != NULL && strcmp( (char*)name, PIN_INPUT_NAME ) == 0 )
++bHasPinField = true;
+ if ( ( name != NULL ) && ( value!= NULL ) )
+ {
+ if ( ( xmlStrlen( name ) > 0) && ( xmlStrlen( value ) > 0) )

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild
similarity index 82%
copy from dev-cpp/libcmis/libcmis-.ebuild
copy to dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild
index 4db743bf442..08e6cd3a925 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild
@@ -1,23 +1,24 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
-[[ ${P

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/files/

2017-02-12 Thread Andreas Sturmlechner
commit: 9f713701f8beb859e275ad342281437e2f305ec0
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Feb 12 16:22:43 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Feb 12 16:22:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f713701

dev-cpp/libcmis: Drop unused patches

Reported-by: Anonymous user
Gentoo-bug: 609130

Package-Manager: portage-2.3.3

 .../files/libcmis-0.5.0-boost-linking.patch| 21 ---
 dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch | 44 --
 2 files changed, 65 deletions(-)

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.0-boost-linking.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.0-boost-linking.patch
deleted file mode 100644
index 348a590f4c..00
--- a/dev-cpp/libcmis/files/libcmis-0.5.0-boost-linking.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-From b572b60a5fdc630f7f3b31dfd5dbdd1ed48659ca Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= 
-Date: Thu, 16 Jul 2015 16:22:11 +0200
-Subject: [PATCH] Fix linking error when building with --with-boot
-

- src/libcmis/Makefile.am | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/libcmis/Makefile.am b/src/libcmis/Makefile.am
-index 3915d45..1955ea6 100644
 a/src/libcmis/Makefile.am
-+++ b/src/libcmis/Makefile.am
-@@ -144,6 +144,7 @@ libcmis_@LIBCMIS_API_VERSION@_la_LIBADD = \
-   $(XML2_LIBS) \
-   $(CURL_LIBS) \
-   $(BOOST_SMART_PTR_LIBS) \
-+  $(BOOST_DATE_TIME_LDFLAGS) \
-   $(BOOST_DATE_TIME_LIBS)
- 
- libcmis_@LIBCMIS_API_VERSION@_la_includedir = 
$(includedir)/libcmis-@LIBCMIS_API_VERSION@/libcmis

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch
deleted file mode 100644
index 8c89ab8bfe..00
--- a/dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 0ad3ec084d918be503a8ce971af1b54887d7726f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= 
-Date: Thu, 16 Jul 2015 16:23:06 +0200
-Subject: [PATCH] Getting cppcheck-test to pass again
-

- Makefile.am | 1 +
- cppcheck-suppress   | 3 +++
- cppcheck-test.sh.in | 4 +++-
- 3 files changed, 7 insertions(+), 1 deletion(-)
- create mode 100644 cppcheck-suppress
-
-diff --git a/Makefile.am b/Makefile.am
-index ebf1f3b..9263497 100644
 a/Makefile.am
-+++ b/Makefile.am
-@@ -35,6 +35,7 @@ EXTRA_DIST = \
-   COPYING.LGPL \
-   doc/cmis-client.xml \
-   cppcheck-test.sh \
-+  cppcheck-suppress \
-   qa/libcmis/data
- 
- if ENABLE_CPPCHECK
-diff --git a/cppcheck-suppress b/cppcheck-suppress
-new file mode 100644
-index 000..9ef8482
 /dev/null
-+++ b/cppcheck-suppress
-@@ -0,0 +1,3 @@
-+publicAllocationError:qa/libcmis/test-decoder.cxx
-+noExplicitConstructor
-+noExplicitCopyMoveConstructor
-diff --git a/cppcheck-test.sh.in b/cppcheck-test.sh.in
-index 20a73f8..175e0f5 100755
 a/cppcheck-test.sh.in
-+++ b/cppcheck-test.sh.in
-@@ -1,3 +1,5 @@
- #!/bin/sh
--@CPPCHECK@ -q --enable=style,performance,portability,information 
--error-exitcode=1 @SRCDIR@
-+@CPPCHECK@ -q --enable=style,performance,portability,information \
-+   --suppressions-list=./cppcheck-suppress \
-+   --error-exitcode=1 @SRCDIR@
- exit $?



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2016-12-17 Thread Andreas Hüttel
commit: 352926c11a427a257e3f9f13029d48a3e411e589
Author: Andreas Sturmlechner  gmail  com>
AuthorDate: Sat Nov 26 09:36:27 2016 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Sat Dec 17 15:56:30 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=352926c1

dev-cpp/libcmis: Drop eutils.eclass

Package-Manager: portage-2.3.0

 dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild | 5 ++---
 dev-cpp/libcmis/libcmis-.ebuild  | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
index afb9637..5f470d5 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
@@ -6,7 +6,7 @@ EAPI=6
 
 EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
 [[ ${PV} ==  ]] && SCM_ECLASS="git-r3"
-inherit eutils alternatives autotools ${SCM_ECLASS}
+inherit alternatives autotools ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="C++ client library for the CMIS interface"
@@ -56,7 +56,6 @@ src_prepare() {
 
 src_configure() {
econf \
-   --docdir="${EPREFIX}"/usr/share/doc/${PF} \
--program-suffix=-${SLOT} \
--disable-werror \
$(use_with man) \
@@ -67,7 +66,7 @@ src_configure() {
 
 src_install() {
default
-   prune_libtool_files --all
+   find "${D}" -name '*.la' -delete || die
 }
 
 pkg_postinst() {

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index f6c40f8..0cc6c17 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -6,7 +6,7 @@ EAPI=6
 
 EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
 [[ ${PV} ==  ]] && SCM_ECLASS="git-r3"
-inherit eutils alternatives autotools ${SCM_ECLASS}
+inherit alternatives autotools ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="C++ client library for the CMIS interface"
@@ -56,7 +56,6 @@ src_prepare() {
 
 src_configure() {
econf \
-   --docdir="${EPREFIX}"/usr/share/doc/${PF} \
--program-suffix=-${SLOT} \
--disable-werror \
$(use_with man) \
@@ -67,7 +66,7 @@ src_configure() {
 
 src_install() {
default
-   prune_libtool_files --all
+   find "${D}" -name '*.la' -delete || die
 }
 
 pkg_postinst() {



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2016-11-29 Thread Andreas Hüttel
commit: c27628da7c95b4e2a8ea632ea467e75bcf0c8a05
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Tue Nov 29 20:01:19 2016 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Tue Nov 29 20:27:11 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c27628da

dev-cpp/libcmis: Remove old

Package-Manager: portage-2.3.2

 dev-cpp/libcmis/Manifest|  3 --
 dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild | 77 
 dev-cpp/libcmis/libcmis-0.5.1.ebuild| 78 -
 3 files changed, 158 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index 9bd934e..aa04659 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,4 +1 @@
-DIST libcmis-0.5.0-gcc5.patch.gz 12452 SHA256 
523763acda1de64bb40761fae1ce1b089756fba1bb0390587d6491b75ffafbea SHA512 
75423caf195d9b6f2c0752f08fd9950ff1dac67884f7445da2389fb24ad13c2c29fbf73f29f6f60b1b440ad261c32697edf3a2ee9aba779630d40afdbf5d5495
 WHIRLPOOL 
5cbc92051da8dc99b6d575f13c6d3c853668dd1ce169e0f215f2d20cbaf1d77408d9af0844be5e04c1308e840110a0e5dd49ee86f0207bbead7361962c830cdb
-DIST libcmis-0.5.0.tar.gz 738119 SHA256 
a87e02913dee3ee659db5abf6d7dafcfcd85dd4b24bf4389d8d4afe8c8dcf9b6 SHA512 
abfdf5654ef8763c9744587ba831acea93cc0ba7deaa8d807eed2e9077be848db0334430f7c2d6eecefeb90f520abbe81364a86790c0aa4363724816aec4793b
 WHIRLPOOL 
03041a0eb4af8fb515082731c4737f7c153756073464785994c431f54b27130b8407459efb5bcb4a26689a0baa1f5014e48cfa334948fb7d90fe646d5f8f0a02
-DIST libcmis-0.5.1.tar.gz 281863 SHA256 
b88851b5e7dfa65b840d403231b38868ba77dae1e7abf2628d7a0dc3cd5a1409 SHA512 
fb934c416b8a41714a5424375de507698992a0b014aa52a82a07dde07cba2ffe68a45ed97cfd0aa72b4a28f3697252ea1570a80ef9fa1b2a34af0a9ed865a752
 WHIRLPOOL 
4e154a417e98bd7e36fa5a4ad65b969e7c6661b6fbd33dc642a5430bda02e218e985b0b50d67f8fd811896c1a40fd4d3b78ae793d6620d8d5f4e92dd013d70d2
 DIST libcmis-0.5.2_pre20160820.tar.gz 285100 SHA256 
49c0d46be0019703b8dbbc0a37fcdd97ed2f5a9576315df2a516b997b07e5b03 SHA512 
4b6d0fc4d80444fea2c5eb16621b92a10b41c58128cc8a355caca50f12648ed5113bd977cc5dbe8971e3dbc11f9d7ae8d45c9d2aa19f37c83659141af135bd1a
 WHIRLPOOL 
524391339976b32a698faa75e4597732d487fcee77c5cdf2acb0380dd81686bc357a5ad5df02693f4d0b7a66890c02701dfa04286270c17ab28a86b01d7dfe55

diff --git a/dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild
deleted file mode 100644
index 38a6a64..
--- a/dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-EGIT_REPO_URI="git://git.code.sf.net/p/libcmis/code"
-[[ ${PV} ==  ]] && SCM_ECLASS="git-r3"
-inherit eutils alternatives autotools ${SCM_ECLASS}
-unset SCM_ECLASS
-
-DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://sourceforge.net/projects/libcmis/";
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz 
https://dev.gentoo.org/~dilfridge/distfiles/${P}-gcc5.patch.gz";
-
-LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
-
-# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
-[[ ${PV} ==  ]] || \
-KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
-
-IUSE="static-libs man test"
-
-COMMON_DEPEND="
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-DEPEND="${COMMON_DEPEND}
-   virtual/pkgconfig
-   man? (
-   app-text/docbook2X
-   dev-libs/libxslt
-   )
-   test? (
-   dev-util/cppcheck
-   dev-util/cppunit
-   )
-"
-RDEPEND="${COMMON_DEPEND}
-   !dev-cpp/libcmis:0
-   !dev-cpp/libcmis:0.2
-   !dev-cpp/libcmis:0.3
-   !dev-cpp/libcmis:0.4
-"
-
-src_prepare() {
-   epatch "${WORKDIR}/${P}-gcc5.patch"
-   epatch "${FILESDIR}/${P}-boost-linking.patch" \
-   "${FILESDIR}/${P}-cppcheck.patch"
-   eautoreconf
-}
-
-src_configure() {
-   econf \
-   --docdir="${EPREFIX}"/usr/share/doc/${PF} \
-   --program-suffix=-${SLOT} \
-   --disable-werror \
-   $(use_with man) \
-   $(use_enable static-libs static) \
-   $(use_enable test tests) \
-   --enable-client
-}
-
-src_install() {
-   default
-   prune_libtool_files --all
-}
-
-pkg_postinst() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}
-
-pkg_postrm() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}

diff --git a/dev-cpp/libcmis/libcmis-0.5.1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.1.ebuild
deleted file mode 100644
index 982389e..
--- a/dev-cpp/libcmis/libcmis-0.5.1.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-EGIT_REPO_URI="https://gi

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2016-11-29 Thread Agostino Sarubbo
commit: b974c6bdc63cf98b95a0f14685cfc7279e169caa
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue Nov 29 18:40:58 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue Nov 29 18:40:58 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b974c6bd

dev-cpp/libcmis: x86 stable wrt bug #600038

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
index 302989f..afb9637 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
@@ -25,7 +25,7 @@ SLOT="0.5"
 
 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
 [[ ${PV} ==  ]] || \
-KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
 
 IUSE="static-libs man test"
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2016-11-29 Thread Agostino Sarubbo
commit: 3fbe8c3680a4bf3e6359fe1c1dc9b02c1ef7ac7a
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue Nov 29 18:39:04 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue Nov 29 18:39:04 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fbe8c36

dev-cpp/libcmis: amd64 stable wrt bug #600038

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
index 2a04934..302989f 100644
--- a/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
@@ -25,7 +25,7 @@ SLOT="0.5"
 
 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
 [[ ${PV} ==  ]] || \
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
 
 IUSE="static-libs man test"
 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2016-09-17 Thread Andreas Hüttel
commit: d785e728ba01b0a6858bf3f82ed947ea96ba1fdc
Author: Andreas Sturmlechner  gmail  com>
AuthorDate: Sun Jul 31 11:49:15 2016 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Sat Sep 17 21:32:12 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d785e728

dev-cpp/libcmis: Add 0.5.2_pre20160820 snapshot

Contains the 2FA fixes necessary to make Google Drive remote access
work. No big difference to .1 otherwise.

Package-Manager: portage-2.2.28

 dev-cpp/libcmis/Manifest   |  1 +
 ...is-.ebuild => libcmis-0.5.2_pre20160820.ebuild} | 18 +++---
 dev-cpp/libcmis/libcmis-.ebuild| 18 +++---
 3 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index 5216266..9bd934e 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,3 +1,4 @@
 DIST libcmis-0.5.0-gcc5.patch.gz 12452 SHA256 
523763acda1de64bb40761fae1ce1b089756fba1bb0390587d6491b75ffafbea SHA512 
75423caf195d9b6f2c0752f08fd9950ff1dac67884f7445da2389fb24ad13c2c29fbf73f29f6f60b1b440ad261c32697edf3a2ee9aba779630d40afdbf5d5495
 WHIRLPOOL 
5cbc92051da8dc99b6d575f13c6d3c853668dd1ce169e0f215f2d20cbaf1d77408d9af0844be5e04c1308e840110a0e5dd49ee86f0207bbead7361962c830cdb
 DIST libcmis-0.5.0.tar.gz 738119 SHA256 
a87e02913dee3ee659db5abf6d7dafcfcd85dd4b24bf4389d8d4afe8c8dcf9b6 SHA512 
abfdf5654ef8763c9744587ba831acea93cc0ba7deaa8d807eed2e9077be848db0334430f7c2d6eecefeb90f520abbe81364a86790c0aa4363724816aec4793b
 WHIRLPOOL 
03041a0eb4af8fb515082731c4737f7c153756073464785994c431f54b27130b8407459efb5bcb4a26689a0baa1f5014e48cfa334948fb7d90fe646d5f8f0a02
 DIST libcmis-0.5.1.tar.gz 281863 SHA256 
b88851b5e7dfa65b840d403231b38868ba77dae1e7abf2628d7a0dc3cd5a1409 SHA512 
fb934c416b8a41714a5424375de507698992a0b014aa52a82a07dde07cba2ffe68a45ed97cfd0aa72b4a28f3697252ea1570a80ef9fa1b2a34af0a9ed865a752
 WHIRLPOOL 
4e154a417e98bd7e36fa5a4ad65b969e7c6661b6fbd33dc642a5430bda02e218e985b0b50d67f8fd811896c1a40fd4d3b78ae793d6620d8d5f4e92dd013d70d2
+DIST libcmis-0.5.2_pre20160820.tar.gz 285100 SHA256 
49c0d46be0019703b8dbbc0a37fcdd97ed2f5a9576315df2a516b997b07e5b03 SHA512 
4b6d0fc4d80444fea2c5eb16621b92a10b41c58128cc8a355caca50f12648ed5113bd977cc5dbe8971e3dbc11f9d7ae8d45c9d2aa19f37c83659141af135bd1a
 WHIRLPOOL 
524391339976b32a698faa75e4597732d487fcee77c5cdf2acb0380dd81686bc357a5ad5df02693f4d0b7a66890c02701dfa04286270c17ab28a86b01d7dfe55

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
similarity index 76%
copy from dev-cpp/libcmis/libcmis-.ebuild
copy to dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
index cf54088..2a04934 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.2_pre20160820.ebuild
@@ -11,7 +11,14 @@ unset SCM_ECLASS
 
 DESCRIPTION="C++ client library for the CMIS interface"
 HOMEPAGE="https://github.com/tdf/libcmis";
-[[ ${PV} ==  ]] || 
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${PV} = *_pre* ]]; then
+   snapshot=da8c3fdc281a0cb3753a6bb9eaa63ac6385e2963
+   SRC_URI="https://github.com/tdf/${PN}/archive/${snapshot}.tar.gz -> 
${P}.tar.gz"
+   S="${WORKDIR}/${PN}-${snapshot}"
+   unset snapshot
+elif [[ ${PV} !=  ]] ; then
+   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+fi
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"
@@ -39,15 +46,12 @@ DEPEND="${COMMON_DEPEND}
)
 "
 RDEPEND="${COMMON_DEPEND}
-   !dev-cpp/libcmis:0
-   !dev-cpp/libcmis:0.2
-   !dev-cpp/libcmis:0.3
-   !dev-cpp/libcmis:0.4
+   !https://github.com/tdf/libcmis";
-[[ ${PV} ==  ]] || 
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${PV} = *_pre* ]]; then
+   snapshot=d2054a12e3f52fff8e96341e8c48f0dcd75e2e2a
+   SRC_URI="https://github.com/tdf/${PN}/archive/${snapshot}.tar.gz -> 
${P}.tar.gz"
+   S="${WORKDIR}/${PN}-${snapshot}"
+   unset snapshot
+elif [[ ${PV} !=  ]] ; then
+   SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+fi
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"
@@ -39,15 +46,12 @@ DEPEND="${COMMON_DEPEND}
)
 "
 RDEPEND="${COMMON_DEPEND}
-   !dev-cpp/libcmis:0
-   !dev-cpp/libcmis:0.2
-   !dev-cpp/libcmis:0.3
-   !dev-cpp/libcmis:0.4
+   !

[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2016-03-28 Thread David Seifert
commit: 3fa1f93e09e47576e2cc3425035397622d68fe86
Author: David Seifert  gentoo  org>
AuthorDate: Mon Mar 28 16:24:18 2016 +
Commit: David Seifert  gentoo  org>
CommitDate: Mon Mar 28 16:24:18 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fa1f93e

dev-cpp/libcmis: use more recent sys-devel/boost-m4

Gentoo-Bug: 569614

Package-Manager: portage-2.2.28

 dev-cpp/libcmis/libcmis-0.5.1.ebuild | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-cpp/libcmis/libcmis-0.5.1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.1.ebuild
index 854d1a0..982389e 100644
--- a/dev-cpp/libcmis/libcmis-0.5.1.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.1.ebuild
@@ -29,6 +29,7 @@ COMMON_DEPEND="
 "
 DEPEND="${COMMON_DEPEND}
virtual/pkgconfig
+   >=sys-devel/boost-m4-0.4_p20160328
man? (
app-text/docbook2X
dev-libs/libxslt
@@ -46,13 +47,15 @@ RDEPEND="${COMMON_DEPEND}
 "
 
 src_prepare() {
-   eapply_user
+   default
+   # fixes bug 569614, which is due to an outdated bundled boost.m4
+   rm m4/boost.m4 || die
+
eautoreconf
 }
 
 src_configure() {
econf \
-   --docdir="${EPREFIX}"/usr/share/doc/${PF} \
--program-suffix=-${SLOT} \
--disable-werror \
$(use_with man) \



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/files/, dev-cpp/libcmis/

2016-03-19 Thread Andreas Hüttel
commit: cd2b8fd7e937fe362a8e670ee89763637fc9fbb1
Author: Andreas Sturmlechner  gmail  com>
AuthorDate: Sat Mar  5 21:30:24 2016 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Sat Mar 19 21:39:38 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd2b8fd7

dev-cpp/libcmis: Drop old ebuild and unused patch

Package-Manager: portage-2.2.27

 .../libcmis-0.2.3-do-not-override-phases.patch | 17 -
 dev-cpp/libcmis/libcmis-0.5.0.ebuild   | 72 --
 2 files changed, 89 deletions(-)

diff --git a/dev-cpp/libcmis/files/libcmis-0.2.3-do-not-override-phases.patch 
b/dev-cpp/libcmis/files/libcmis-0.2.3-do-not-override-phases.patch
deleted file mode 100644
index 0a47414..000
--- a/dev-cpp/libcmis/files/libcmis-0.2.3-do-not-override-phases.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff -urN libcmis-0.2.3.old//Makefile.am libcmis-0.2.3/Makefile.am
 libcmis-0.2.3.old//Makefile.am 2012-08-09 10:18:22.559384031 +0200
-+++ libcmis-0.2.3/Makefile.am  2012-08-09 10:18:44.797384029 +0200
-@@ -12,11 +12,11 @@
- cmis-client.1: doc/cmis-client.xml
-   $(DOCBOOK2X) $<
- 
--install-data-am: cmis-client.1
-+install-data-local: cmis-client.1
-   mkdir -p $(DESTDIR)$(mandir)/man1/
-   $(INSTALL_DATA) cmis-client.1 $(DESTDIR)$(mandir)/man1/
- 
--uninstall-am:
-+uninstall-local:
-   -rm -rf $(DESTDIR)$(mandir)/man1/
- endif
- 

diff --git a/dev-cpp/libcmis/libcmis-0.5.0.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.0.ebuild
deleted file mode 100644
index d3f9f03..000
--- a/dev-cpp/libcmis/libcmis-0.5.0.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-EGIT_REPO_URI="git://git.code.sf.net/p/libcmis/code"
-[[ ${PV} ==  ]] && SCM_ECLASS="git-r3"
-inherit eutils alternatives autotools ${SCM_ECLASS}
-unset SCM_ECLASS
-
-DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://sourceforge.net/projects/libcmis/";
-[[ ${PV} ==  ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
-SLOT="0.5"
-
-# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
-[[ ${PV} ==  ]] || \
-KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
-
-IUSE="static-libs man test"
-
-RDEPEND="
-   !dev-cpp/libcmis:0
-   !dev-cpp/libcmis:0.2
-   !dev-cpp/libcmis:0.3
-   !dev-cpp/libcmis:0.4
-   dev-libs/boost:=
-   dev-libs/libxml2
-   net-misc/curl
-"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-   man? (
-   app-text/docbook2X
-   dev-libs/libxslt
-   )
-   test? (
-   dev-util/cppcheck
-   dev-util/cppunit
-   )
-"
-
-src_prepare() {
-   [[ ${PV} ==  ]] && eautoreconf
-}
-
-src_configure() {
-   econf \
-   --docdir="${EPREFIX}"/usr/share/doc/${PF} \
-   --program-suffix=-${SLOT} \
-   --disable-werror \
-   $(use_with man) \
-   $(use_enable static-libs static) \
-   $(use_enable test tests) \
-   --enable-client
-}
-
-src_install() {
-   default
-   prune_libtool_files --all
-}
-
-pkg_postinst() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}
-
-pkg_postrm() {
-   alternatives_auto_makesym /usr/bin/cmis-client 
"/usr/bin/cmis-client-[0-9].[0-9]"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/

2016-03-19 Thread Andreas Hüttel
commit: 1b4056f3265130f2b7130a610307e2f8eb5174c6
Author: Andreas Sturmlechner  gmail  com>
AuthorDate: Sat Mar  5 21:14:51 2016 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Sat Mar 19 21:39:38 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b4056f3

dev-cpp/libcmis: 0.5.1 version bump

Package-Manager: portage-2.2.27

 dev-cpp/libcmis/Manifest  | 1 +
 dev-cpp/libcmis/{libcmis-.ebuild => libcmis-0.5.1.ebuild} | 8 
 dev-cpp/libcmis/libcmis-.ebuild   | 6 +++---
 dev-cpp/libcmis/metadata.xml  | 2 +-
 4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/dev-cpp/libcmis/Manifest b/dev-cpp/libcmis/Manifest
index cb66598..5216266 100644
--- a/dev-cpp/libcmis/Manifest
+++ b/dev-cpp/libcmis/Manifest
@@ -1,2 +1,3 @@
 DIST libcmis-0.5.0-gcc5.patch.gz 12452 SHA256 
523763acda1de64bb40761fae1ce1b089756fba1bb0390587d6491b75ffafbea SHA512 
75423caf195d9b6f2c0752f08fd9950ff1dac67884f7445da2389fb24ad13c2c29fbf73f29f6f60b1b440ad261c32697edf3a2ee9aba779630d40afdbf5d5495
 WHIRLPOOL 
5cbc92051da8dc99b6d575f13c6d3c853668dd1ce169e0f215f2d20cbaf1d77408d9af0844be5e04c1308e840110a0e5dd49ee86f0207bbead7361962c830cdb
 DIST libcmis-0.5.0.tar.gz 738119 SHA256 
a87e02913dee3ee659db5abf6d7dafcfcd85dd4b24bf4389d8d4afe8c8dcf9b6 SHA512 
abfdf5654ef8763c9744587ba831acea93cc0ba7deaa8d807eed2e9077be848db0334430f7c2d6eecefeb90f520abbe81364a86790c0aa4363724816aec4793b
 WHIRLPOOL 
03041a0eb4af8fb515082731c4737f7c153756073464785994c431f54b27130b8407459efb5bcb4a26689a0baa1f5014e48cfa334948fb7d90fe646d5f8f0a02
+DIST libcmis-0.5.1.tar.gz 281863 SHA256 
b88851b5e7dfa65b840d403231b38868ba77dae1e7abf2628d7a0dc3cd5a1409 SHA512 
fb934c416b8a41714a5424375de507698992a0b014aa52a82a07dde07cba2ffe68a45ed97cfd0aa72b4a28f3697252ea1570a80ef9fa1b2a34af0a9ed865a752
 WHIRLPOOL 
4e154a417e98bd7e36fa5a4ad65b969e7c6661b6fbd33dc642a5430bda02e218e985b0b50d67f8fd811896c1a40fd4d3b78ae793d6620d8d5f4e92dd013d70d2

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.1.ebuild
similarity index 86%
copy from dev-cpp/libcmis/libcmis-.ebuild
copy to dev-cpp/libcmis/libcmis-0.5.1.ebuild
index c208611..854d1a0 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.1.ebuild
@@ -4,14 +4,14 @@
 
 EAPI=6
 
-EGIT_REPO_URI="git://git.code.sf.net/p/libcmis/code"
+EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
 [[ ${PV} ==  ]] && SCM_ECLASS="git-r3"
 inherit eutils alternatives autotools ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://sourceforge.net/projects/libcmis/";
-[[ ${PV} ==  ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="https://github.com/tdf/libcmis";
+[[ ${PV} ==  ]] || 
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"
@@ -47,7 +47,7 @@ RDEPEND="${COMMON_DEPEND}
 
 src_prepare() {
eapply_user
-   [[ ${PV} ==  ]] && eautoreconf
+   eautoreconf
 }
 
 src_configure() {

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index c208611..cf54088 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -4,14 +4,14 @@
 
 EAPI=6
 
-EGIT_REPO_URI="git://git.code.sf.net/p/libcmis/code"
+EGIT_REPO_URI="https://github.com/tdf/libcmis.git";
 [[ ${PV} ==  ]] && SCM_ECLASS="git-r3"
 inherit eutils alternatives autotools ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="C++ client library for the CMIS interface"
-HOMEPAGE="https://sourceforge.net/projects/libcmis/";
-[[ ${PV} ==  ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="https://github.com/tdf/libcmis";
+[[ ${PV} ==  ]] || 
SRC_URI="https://github.com/tdf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( GPL-2 LGPL-2 MPL-1.1 )"
 SLOT="0.5"

diff --git a/dev-cpp/libcmis/metadata.xml b/dev-cpp/libcmis/metadata.xml
index d2e051d..afb9c07 100644
--- a/dev-cpp/libcmis/metadata.xml
+++ b/dev-cpp/libcmis/metadata.xml
@@ -9,6 +9,6 @@
Build and install man pages.


-   libcmis
+   tdf/libcmis

 



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/libcmis/, dev-cpp/libcmis/files/

2016-02-22 Thread Andreas Hüttel
commit: 9527828aa0d2513706c55063a2d04eb783d6a808
Author: Andreas Sturmlechner  gmail  com>
AuthorDate: Sat Feb  6 22:22:35 2016 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Mon Feb 22 17:06:07 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9527828a

dev-cpp/libcmis: Add upstream patches to fix bugs 556914, 569614

All tests passed.

Package-Manager: portage-2.2.27

 .../files/libcmis-0.5.0-boost-linking.patch| 21 +++
 dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch | 44 ++
 dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild| 18 +
 dev-cpp/libcmis/libcmis-.ebuild| 19 ++
 4 files changed, 87 insertions(+), 15 deletions(-)

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.0-boost-linking.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.0-boost-linking.patch
new file mode 100644
index 000..348a590
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.5.0-boost-linking.patch
@@ -0,0 +1,21 @@
+From b572b60a5fdc630f7f3b31dfd5dbdd1ed48659ca Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= 
+Date: Thu, 16 Jul 2015 16:22:11 +0200
+Subject: [PATCH] Fix linking error when building with --with-boot
+
+---
+ src/libcmis/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/libcmis/Makefile.am b/src/libcmis/Makefile.am
+index 3915d45..1955ea6 100644
+--- a/src/libcmis/Makefile.am
 b/src/libcmis/Makefile.am
+@@ -144,6 +144,7 @@ libcmis_@LIBCMIS_API_VERSION@_la_LIBADD = \
+   $(XML2_LIBS) \
+   $(CURL_LIBS) \
+   $(BOOST_SMART_PTR_LIBS) \
++  $(BOOST_DATE_TIME_LDFLAGS) \
+   $(BOOST_DATE_TIME_LIBS)
+ 
+ libcmis_@LIBCMIS_API_VERSION@_la_includedir = 
$(includedir)/libcmis-@LIBCMIS_API_VERSION@/libcmis

diff --git a/dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch 
b/dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch
new file mode 100644
index 000..8c89ab8
--- /dev/null
+++ b/dev-cpp/libcmis/files/libcmis-0.5.0-cppcheck.patch
@@ -0,0 +1,44 @@
+From 0ad3ec084d918be503a8ce971af1b54887d7726f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= 
+Date: Thu, 16 Jul 2015 16:23:06 +0200
+Subject: [PATCH] Getting cppcheck-test to pass again
+
+---
+ Makefile.am | 1 +
+ cppcheck-suppress   | 3 +++
+ cppcheck-test.sh.in | 4 +++-
+ 3 files changed, 7 insertions(+), 1 deletion(-)
+ create mode 100644 cppcheck-suppress
+
+diff --git a/Makefile.am b/Makefile.am
+index ebf1f3b..9263497 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -35,6 +35,7 @@ EXTRA_DIST = \
+   COPYING.LGPL \
+   doc/cmis-client.xml \
+   cppcheck-test.sh \
++  cppcheck-suppress \
+   qa/libcmis/data
+ 
+ if ENABLE_CPPCHECK
+diff --git a/cppcheck-suppress b/cppcheck-suppress
+new file mode 100644
+index 000..9ef8482
+--- /dev/null
 b/cppcheck-suppress
+@@ -0,0 +1,3 @@
++publicAllocationError:qa/libcmis/test-decoder.cxx
++noExplicitConstructor
++noExplicitCopyMoveConstructor
+diff --git a/cppcheck-test.sh.in b/cppcheck-test.sh.in
+index 20a73f8..175e0f5 100755
+--- a/cppcheck-test.sh.in
 b/cppcheck-test.sh.in
+@@ -1,3 +1,5 @@
+ #!/bin/sh
+-@CPPCHECK@ -q --enable=style,performance,portability,information 
--error-exitcode=1 @SRCDIR@
++@CPPCHECK@ -q --enable=style,performance,portability,information \
++   --suppressions-list=./cppcheck-suppress \
++   --error-exitcode=1 @SRCDIR@
+ exit $?

diff --git a/dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild 
b/dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild
index 96b3308..38a6a64 100644
--- a/dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild
+++ b/dev-cpp/libcmis/libcmis-0.5.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -22,16 +22,12 @@ KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
 
 IUSE="static-libs man test"
 
-RDEPEND="
-   !dev-cpp/libcmis:0
-   !dev-cpp/libcmis:0.2
-   !dev-cpp/libcmis:0.3
-   !dev-cpp/libcmis:0.4
+COMMON_DEPEND="
dev-libs/boost:=
dev-libs/libxml2
net-misc/curl
 "
-DEPEND="${RDEPEND}
+DEPEND="${COMMON_DEPEND}
virtual/pkgconfig
man? (
app-text/docbook2X
@@ -42,9 +38,17 @@ DEPEND="${RDEPEND}
dev-util/cppunit
)
 "
+RDEPEND="${COMMON_DEPEND}
+   !dev-cpp/libcmis:0
+   !dev-cpp/libcmis:0.2
+   !dev-cpp/libcmis:0.3
+   !dev-cpp/libcmis:0.4
+"
 
 src_prepare() {
epatch "${WORKDIR}/${P}-gcc5.patch"
+   epatch "${FILESDIR}/${P}-boost-linking.patch" \
+   "${FILESDIR}/${P}-cppcheck.patch"
eautoreconf
 }
 

diff --git a/dev-cpp/libcmis/libcmis-.ebuild 
b/dev-cpp/libcmis/libcmis-.ebuild
index dfc6902..c208611 100644
--- a/dev-cpp/libcmis/libcmis-.ebuild
+++ b/dev-cpp/libcmis/libcmis-.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundati