From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2F9A215808B for ; Sun, 6 Mar 2022 20:22:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 609CCE09F5; Sun, 6 Mar 2022 20:22:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23775E09F5 for ; Sun, 6 Mar 2022 20:22:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D5323343275 for ; Sun, 6 Mar 2022 20:22:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E0D68209 for ; Sun, 6 Mar 2022 20:22:18 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1646598105.cc6586cc835132e1b9c013468952e1735f43522e.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/spectrum2/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/spectrum2/Manifest net-im/spectrum2/spectrum2-2.1.3.ebuild X-VCS-Directories: net-im/spectrum2/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: cc6586cc835132e1b9c013468952e1735f43522e X-VCS-Branch: master Date: Sun, 6 Mar 2022 20:22:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: de5bab99-e930-41d4-8a3a-0ac71227b748 X-Archives-Hash: d4f673bd0978e472feeaba13355e9b7b commit: cc6586cc835132e1b9c013468952e1735f43522e Author: Conrad Kostecki gentoo org> AuthorDate: Sun Mar 6 20:21:45 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Mar 6 20:21:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc6586cc net-im/spectrum2: add 2.1.3 Signed-off-by: Conrad Kostecki gentoo.org> net-im/spectrum2/Manifest | 1 + net-im/spectrum2/spectrum2-2.1.3.ebuild | 109 ++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/net-im/spectrum2/Manifest b/net-im/spectrum2/Manifest index f5e3e5762a16..f833a2f919d3 100644 --- a/net-im/spectrum2/Manifest +++ b/net-im/spectrum2/Manifest @@ -1,2 +1,3 @@ DIST spectrum2-2.1.0.tar.gz 837296 BLAKE2B 3cff3cf700b08b3c061114e736b31f9ec1c44c6626173daacde3992d72c12e45c9ac60f57dc1fc426108aeb8b7d72a9d83a2aac3af64835f5f5155ecd0405f45 SHA512 53499b327edf280a87bdb334e3de2b54f8fc8ebc6a9a425e75676438561e47d144ae562d3c0c41d76330f0480a29cf08a0927de04158791f6d14671edc411321 DIST spectrum2-2.1.2.tar.gz 665486 BLAKE2B edd98a296269141bdd104fca9f8e56d63b2f6a8ea9cda855bc17a65f8183be0b295a47453876df981ad5a3acf1df9483ab44c5a6d731ecc51e9ab6d61f005bb0 SHA512 e39caa9bb149c47b4a621f76613bf1f58cad84800851935dcf2722d91e84a5c21ccd50029ebc25c0d34d988dc390ece526ecfb1d3db6054ac8c07f4426be3a83 +DIST spectrum2-2.1.3.tar.gz 666005 BLAKE2B 8356b71506b5489780052eaf404a79f0f760fa3a8d35e80e30730c86b5e4acf21a1ac59fed46e472a1085dc29c6751f2c4e788ad60569bf15b48d198762f2a77 SHA512 b6bf39738998b56c8a90984446740c38547ffdaadaf280d3f4f29cb8a2e168898a7b010eff115394f473fd02c66f30ef383c4a542812d5abd03a87b064b446a8 diff --git a/net-im/spectrum2/spectrum2-2.1.3.ebuild b/net-im/spectrum2/spectrum2-2.1.3.ebuild new file mode 100644 index 000000000000..546c78a06593 --- /dev/null +++ b/net-im/spectrum2/spectrum2-2.1.3.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd tmpfiles + +DESCRIPTION="An open source instant messaging transport" +HOMEPAGE="https://www.spectrum.im" +SRC_URI="https://github.com/SpectrumIM/spectrum2/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc frotz irc mysql postgres purple sms +sqlite test twitter whatsapp xmpp" +REQUIRED_USE=" + || ( mysql postgres sqlite ) + test? ( irc ) +" +RESTRICT="!test? ( test )" + +RDEPEND=" + acct-group/spectrum + acct-user/spectrum + dev-libs/boost:=[nls] + dev-libs/expat + dev-libs/libev:= + dev-libs/log4cxx + dev-libs/jsoncpp:= + dev-libs/openssl:0= + dev-libs/popt + dev-libs/protobuf:= + net-dns/libidn:0= + >=net-im/swift-4.0.2-r2:= + net-misc/curl + sys-libs/zlib:= + frotz? ( !games-engines/frotz ) + irc? ( net-im/libcommuni ) + mysql? ( + || ( + dev-db/mariadb-connector-c + dev-db/mysql-connector-c + ) + ) + postgres? ( dev-libs/libpqxx:= ) + purple? ( + dev-libs/glib + net-im/pidgin:= + ) + sms? ( app-mobilephone/smstools ) + sqlite? ( dev-db/sqlite:3 ) + twitter? ( net-misc/curl ) + whatsapp? ( net-im/transwhat )" + +DEPEND=" + ${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( dev-util/cppunit ) +" + +src_prepare() { + # Respect users LDFLAGS + sed -i -e "s/-Wl,-export-dynamic/& ${LDFLAGS}/" spectrum/src/CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_DOCS="$(usex doc)" + -DENABLE_FROTZ="$(usex frotz)" + -DENABLE_IRC="$(usex irc)" + -DENABLE_MYSQL="$(usex mysql)" + -DENABLE_PQXX="$(usex postgres)" + -DENABLE_PURPLE="$(usex purple)" + $(usex irc '-DENABLE_QT4=OFF' '') + -DENABLE_SMSTOOLS3="$(usex sms)" + -DENABLE_SQLITE3="$(usex sqlite)" + -DENABLE_TESTS="$(usex test)" + -DENABLE_TWITTER="$(usex twitter)" + -DENABLE_XMPP="$(usex xmpp)" + -DLIB_INSTALL_DIR="$(get_libdir)" + ) + + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}/tests/libtransport" || die + ./libtransport_test || die +} + +src_install() { + cmake_src_install + + diropts -o spectrum -g spectrum + keepdir /var/log/spectrum2 /var/lib/spectrum2 + diropts + + newinitd "${FILESDIR}"/spectrum2.initd spectrum2 + systemd_newunit "${FILESDIR}"/spectrum2.service spectrum2.service + newtmpfiles "${FILESDIR}"/spectrum2.tmpfiles-r1 spectrum2.conf + + einstalldocs +} + +pkg_postinst() { + tmpfiles_process spectrum2.conf +}