app-admin/lastpass-cli: bump to 1.3.1
authorGöktürk Yüksek <gokturk@gentoo.org>
Fri, 18 May 2018 20:30:33 +0000 (16:30 -0400)
committerGöktürk Yüksek <gokturk@gentoo.org>
Fri, 18 May 2018 23:19:21 +0000 (19:19 -0400)
Package-Manager: Portage-2.3.27, Repoman-2.3.9

app-admin/lastpass-cli/Manifest
app-admin/lastpass-cli/lastpass-cli-1.3.1.ebuild [new file with mode: 0644]

index 74cd7ebbe7380e8e3562465d69b1596d739ba768..6d302d8607337b0a8ce69db08b944fe517797ec4 100644 (file)
@@ -3,3 +3,4 @@ DIST lastpass-cli-1.1.2.tar.gz 102796 BLAKE2B 7c6a19698616e9a3ab6286b2eaaaed1b4a
 DIST lastpass-cli-1.2.1.tar.gz 108780 BLAKE2B 82ebae9a6a707bb75025cf98b53bccd2403eb0a3855d7f6ca7c5fdbf55465f929df529100da7933ce73ab7ece35275e0ffd96e6463eb1ecbd81dcccca3b80047 SHA512 c7c9f20dbc083873b815834320828a30a1c488571efbfc5aea47c3bd2073819d713810c785855d4c0c208e1b95aa0e5fc550a0b6b5c0f787eca1f54589e18e62
 DIST lastpass-cli-1.2.2.tar.gz 110045 BLAKE2B 96fcfd8f6e974edb5bd8701e18e73b46c0bcbcc14c38debd50be922a25ece9397bb6b641d4f2ce3057e57af0114a263eaab03e86b74e61d89a745411051bb172 SHA512 7d211c7669fe2de3e3f34cf00025376fd39a7f96c8573a0eaff64f322daab03de21e25d5875d3286a794580ac75d330c7bfe1005b377afc2b13e4ded9d78012c
 DIST lastpass-cli-1.3.0.tar.gz 113969 BLAKE2B 5570567b17f043200f6b4eca72735d26d153a91cb4f0551a856532101ac610d2505bc90677735a8bbafe68f1a1b7ac0a026ac642a9f3786cceb7638ea29394fb SHA512 7a147e08ac4b8e4e895744f80c484db9da895f4439bccbc141fe17e480285c76479753c2b879c60258d740af39775a3fae225ad193b5e6379a1cae8862c2a3ae
+DIST lastpass-cli-1.3.1.tar.gz 114843 BLAKE2B 7983d4090092ef3443d8c502d157934fa2384426f0be22c796795cdf664be3ba396f64daa81cdf896cb6901d4063f93e54b62cda4349b14fa4d312a21c5bb76d SHA512 092d28dc459719e662fbb2c5e92e8cc75be108aa9d7b62569ee44cb34dd9588e78151fdc5ad114c30e8de21c0b8803edc41db9295548c7cbfe6e537c9a52aad2
diff --git a/app-admin/lastpass-cli/lastpass-cli-1.3.1.ebuild b/app-admin/lastpass-cli/lastpass-cli-1.3.1.ebuild
new file mode 100644 (file)
index 0000000..2c34bde
--- /dev/null
@@ -0,0 +1,57 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils bash-completion-r1
+
+DESCRIPTION="Interfaces with LastPass.com from the command line."
+HOMEPAGE="https://github.com/lastpass/lastpass-cli"
+SRC_URI="https://github.com/lastpass/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2+ GPL-2+-with-openssl-exception"
+KEYWORDS="~amd64 ~x86"
+IUSE="libressl X +pinentry test"
+
+RDEPEND="
+       X? ( || ( x11-misc/xclip x11-misc/xsel ) )
+       !libressl? ( dev-libs/openssl:0= )
+       libressl? ( dev-libs/libressl:0= )
+       net-misc/curl
+       dev-libs/libxml2
+       pinentry? ( app-crypt/pinentry )
+"
+DEPEND="${RDEPEND}
+       app-text/asciidoc
+       virtual/pkgconfig
+"
+
+src_configure() {
+       local mycmakeargs=(
+               -DBASH_COMPLETION_COMPLETIONSDIR="$(get_bashcompdir)"
+       )
+
+       cmake-utils_src_configure
+}
+
+src_compile() {
+       cmake-utils_src_compile all doc-man $(usex test lpass-test '')
+}
+
+src_install() {
+       cmake-utils_src_install install install-doc
+}
+
+src_test() {
+       local myctestargs=(
+               -j1 # Parallel tests fail
+       )
+
+       # The path to lpass-test is hardcoded to "${S}"/build/lpass-test
+       # which is incorrect for our out-of-source build
+       sed -e "s|TEST_LPASS=.*|TEST_LPASS=\"${BUILD_DIR}/lpass-test\"|" \
+               -i "${S}"/test/include.sh || die
+
+       cmake-utils_src_test
+}