dev-cpp/mastodon-cpp: Added test

Package-Manager: Portage-2.3.62, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
tastytea 2019-04-21 11:58:55 +02:00
parent 3a0cbccf58
commit 862236f2f1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 25 additions and 12 deletions

View File

@ -5,12 +5,12 @@ DIST mastodon-cpp-0.105.0.tar.gz 60300 BLAKE2B aa5a3c04d16672098da45dbbacf15c7c5
DIST mastodon-cpp-0.30.2.tar.gz 57807 BLAKE2B 1ed18131d24fcd7b21e31834db4bdc3f99dbbd2396ab9f25d1a2dd46d5013ab8e5cee97f63dff2476c6888637483bb4315b46278715ad12046f8eb1cb940332b SHA512 4399e6eac4018e0d52e86d5bad5049b3a95f6974597c070f55dc70e62b443175038192f0165c49d4fcec5d0312080f525ab608fc267092b8b0f008c8c1b46ec2
EBUILD mastodon-cpp-0.105.0.ebuild 1342 BLAKE2B 13d0867fcd56738e489e20d683573d259600abc7b70ae53e44ff1c96c966b75cc652fdfea001782eda11cfdee591dd4f934e18e35d6520bc533b6a2b8b0bb75f SHA512 7df266469a8e5378e4a440d59794ab73c0a076a1b3f535a8c13b914653bdfcc90907a39d2176cc906985e9cc0ae00dc99c171fcf3862cf8d9138a1c88956534d
EBUILD mastodon-cpp-0.30.2-r1.ebuild 1178 BLAKE2B 2585cdffcc3a214660ce1574616632f6efee7c3bfc1048923bb2c9394058a42f1fa19d00468497fcbeb634f099cd0f513560aed7987116d8a736d6dc5b7017db SHA512 35cba0bd663b998aebd47ee60689d8f9f66ffffced025bd9ed7990cfa0182379bf1da80c5522e512daf2fac6b29a184a7c48577e02578f9ebd45149881eb0b10
EBUILD mastodon-cpp-9999.ebuild 1341 BLAKE2B b631ca3db2d28dda91d60c62c253dcc8b1d22d4fa52d08aad219f452de230d679074001d2ae7c2540226b7c9b2f04594e8a5c913c0daaaafaf13e0aa1eb011b7 SHA512 c2b687ec4ae8a37bea26f5f72388bed65dd49f38e5ab25a7c9017e01e3d2f81043f621ad42b045c095783c69e2756addc81b9f96af50870ca4e7c9c475f4aba3
EBUILD mastodon-cpp-9999.ebuild 1669 BLAKE2B de28f8f00806335d615a69e644ce34d2ef1831da1164708b221037d13ad250f9db044494e5d9f807f253513328c55c2e7616fc0d78806c3346bc7fe6cc3bbde5 SHA512 521983612f1a62199eae6cb72ad1fdb0cd0c8917061c225caf3a17fdcf874cd80e3fc0b5f275b8b1231102d0a10310427e43c05b17dc2283eb01aee8fe27be86
MISC metadata.xml 529 BLAKE2B 0e315bbc4644309a5a843fca3e7c4dadda28982930c592e73201b174fc5626b45d0bcb96dfca7c1085fc059ef454957b728d139ad8a99cbddca5cda6dd431448 SHA512 85bd72c7fb3e173354877cd183a4869e733a90d200f95cf8ecf85a658f9229010298ae8e265cf3d309f022f0b242898da04249933aaca5c12c26eeec8beb71f6
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXLva8QAKCRDPw5SX8bJu
B+5sAP4mbt3Yk7PtrAgWRbMc/KSCdOI5mgigsXIdIiwd6Kg5aAD+OdJs727Xkrhq
Y6G32OnqF9tEdB6CmWWNVYicw4E9glE=
=hRuV
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXLw+3wAKCRDPw5SX8bJu
B45rAP9ah0i91RRAcDAU4GMR+QM9GMV2rXlYPcgcy2v+De2tYwD+OLXCPXrl+QDT
yu/s+fCGPHfEDREvWCIN6RjzZeaf5XQ=
=f1jD
-----END PGP SIGNATURE-----

View File

@ -2,15 +2,28 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 cmake-utils
inherit cmake-utils
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
fi
DESCRIPTION="mastodon-cpp is a C++ wrapper for the Mastodon API."
HOMEPAGE="https://schlomp.space/tastytea/mastodon-cpp"
EGIT_REPO_URI="https://schlomp.space/tastytea/mastodon-cpp.git"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://schlomp.space/tastytea/mastodon-cpp.git"
else
SRC_URI="https://schlomp.space/tastytea/mastodon-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
if [[ "${PV}" == "9999" ]]; then
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
fi
IUSE="doc examples minimal test"
RDEPEND="
dev-cpp/curlpp
!minimal? ( dev-libs/jsoncpp )
@ -22,10 +35,6 @@ DEPEND="
${RDEPEND}
"
src_unpack() {
git-r3_src_unpack
}
src_configure() {
local mycmakeargs=(
-DWITH_DOC=NO
@ -33,6 +42,10 @@ src_configure() {
-DWITH_EASY="$(usex minimal NO YES)"
-DWITH_TESTS="$(usex test)"
)
if use test; then
# Don't run tests that need a network connection.
mycmakeargs+=(-DEXTRA_TEST_ARGS="~[api]")
fi
cmake-utils_src_configure
}