diff options
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/kvirc/Manifest | 1 | ||||
-rw-r--r-- | net-irc/kvirc/kvirc-5.2.4.ebuild | 159 |
2 files changed, 160 insertions, 0 deletions
diff --git a/net-irc/kvirc/Manifest b/net-irc/kvirc/Manifest index 4bcf368c9fb8..f63504991f48 100644 --- a/net-irc/kvirc/Manifest +++ b/net-irc/kvirc/Manifest @@ -1,2 +1,3 @@ DIST kvirc-5.2.0.tar.gz 6365703 BLAKE2B fda63b6579b9d8d75eae5c2b039f474f4a810c79c74d98da0adebc4bec51c19286a9fb4a219dafefdf4132709394e946dd5aa30d1335ce1af4cbffd60764578d SHA512 01a183ae283b774dc096ec4bf81509ad79acf10fb3c82e06f66b7360736d32c1514856849ef562e2fc2b4ef3019e0842d17de8a762c7858dbac34f85de125079 DIST kvirc-5.2.2.tar.gz 6362952 BLAKE2B ba90de3730dee0466c21cd658eda622bfb8f601e1af79d53952b2b016c0bacf0dc1d83c78f307288cc2e3bfda409773adfffc1b53fba6a0d8c682a5ab8739259 SHA512 dcb140051cebe4eaa82d8b8e221e4df3f40695b3b3a9aa9842ef5325e3129c73d08e5849589385793efc1eb70fd115ee634422af8be3f943eea79719a4159ea5 +DIST kvirc-5.2.4.tar.gz 6333384 BLAKE2B e9e85c90cd66bda6b53aac14f807e487c1b65b3a4e463462ea768227a28f774db40e0dce63387aa934b3366db376be945e76682c5a14aae638e4f6470741f5e4 SHA512 7658bdf5258d822164d8b38b6f4baa1814ad49a9ecc7dc0013fc0e9dbd952aca0ba9ab8e90dbcfa0c9db43c756e862989b04cedcfba00f2751371955ffea6503 diff --git a/net-irc/kvirc/kvirc-5.2.4.ebuild b/net-irc/kvirc/kvirc-5.2.4.ebuild new file mode 100644 index 000000000000..32a984d0afbb --- /dev/null +++ b/net-irc/kvirc/kvirc-5.2.4.ebuild @@ -0,0 +1,159 @@ +# Copyright 2009-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +DESCRIPTION="Advanced IRC Client" +HOMEPAGE="https://www.kvirc.net/ https://github.com/kvirc/KVIrc" +CMAKE_MAKEFILE_GENERATOR="emake" +PYTHON_COMPAT=( python3_{10..12} ) + +inherit cmake flag-o-matic python-single-r1 xdg + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/kvirc/KVIrc" +else + SRC_URI="https://github.com/kvirc/KVIrc/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" + S="${WORKDIR}/KVIrc-${PV}" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="audiofile +dbus dcc-video debug doc gsm kde +nls oss +perl +phonon profile +python spell +ssl theora webengine" +REQUIRED_USE="audiofile? ( oss ) python? ( ${PYTHON_REQUIRED_USE} )" + +BDEPEND="dev-lang/perl:0 + virtual/pkgconfig + doc? ( app-text/doxygen ) + kde? ( kde-frameworks/extra-cmake-modules:0 ) + nls? ( sys-devel/gettext )" +DEPEND="dev-qt/qtcore:5 + dev-qt/qtconcurrent:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + dev-qt/qtxml:5 + sys-libs/zlib:0= + x11-libs/libX11 + x11-libs/libXScrnSaver + audiofile? ( media-libs/audiofile ) + dbus? ( dev-qt/qtdbus:5 ) + dcc-video? ( dev-qt/qtmultimedia:5[widgets] ) + kde? ( + kde-frameworks/kcoreaddons:5 + kde-frameworks/ki18n:5 + kde-frameworks/knotifications:5 + kde-frameworks/kservice:5 + kde-frameworks/kwindowsystem:5 + kde-frameworks/kxmlgui:5 + ) + perl? ( dev-lang/perl:0= ) + phonon? ( media-libs/phonon[qt5(+)] ) + python? ( ${PYTHON_DEPS} ) + spell? ( app-text/enchant:2 ) + ssl? ( dev-libs/openssl:0= ) + theora? ( + media-libs/libogg + media-libs/libtheora + media-libs/libvorbis + ) + webengine? ( dev-qt/qtwebengine:5[widgets] )" +RDEPEND="${DEPEND} + gsm? ( media-sound/gsm )" + +DOCS=() + +pkg_setup() { + if use python; then + python-single-r1_pkg_setup + fi +} + +src_prepare() { + cmake_src_prepare + + if [[ "${PV}" == "9999" ]]; then + KVIRC_GIT_REVISION="$(git show -s --format=%H)" + KVIRC_GIT_SOURCES_DATE="$(git show -s --format=%cd --date=short)" + einfo "Setting of revision number to ${KVIRC_GIT_REVISION} ${KVIRC_GIT_SOURCES_DATE}" + sed -e "/#define KVI_DEFAULT_FRAME_CAPTION/s/KVI_VERSION/& \" (${KVIRC_GIT_REVISION} ${KVIRC_GIT_SOURCES_DATE})\"/" \ + -i src/kvirc/ui/KviMainWindow.cpp || die "Setting of revision number failed" + fi +} + +src_configure() { + append-flags -fno-strict-aliasing + + local libdir="$(get_libdir)" + local mycmakeargs=( + -DLIB_SUFFIX=${libdir#lib} + -DWANT_ENV_FLAGS=ON + -DWANT_VERBOSE=ON + + -DWANT_CRYPT=ON + -DWANT_DCC_VOICE=ON + -DWANT_IPC=ON + -DWANT_IPV6=ON + -DWANT_TRANSPARENCY=ON + + -DWANT_AUDIOFILE=$(usex audiofile) + -DWANT_DCC_VIDEO=$(usex dcc-video) + -DWANT_DEBUG=$(usex debug) + -DWANT_DOXYGEN=$(usex doc) + -DWANT_GETTEXT=$(usex nls) + -DWANT_GSM=$(usex gsm) + -DWANT_KDE=$(usex kde) + -DWANT_MEMORY_PROFILE=$(usex profile) + -DWANT_OGG_THEORA=$(usex theora) + -DWANT_OPENSSL=$(usex ssl) + -DWANT_OSS=$(usex oss) + -DWANT_PERL=$(usex perl) + -DWANT_PHONON=$(usex phonon) + -DWANT_PYTHON=$(usex python) + -DWANT_QTDBUS=$(usex dbus) + -DWANT_QTWEBENGINE=$(usex webengine) + -DWANT_SPELLCHECKER=$(usex spell) + -DQT_VERSION_MAJOR=5 + + # COMPILE_SVG_SUPPORT not used in source code. + -DWANT_QTSVG=OFF + ) + if use python; then + mycmakeargs+=( + -DPython3_INCLUDE_DIR="$(python_get_includedir)" + -DPython3_LIBRARY="$(python_get_library_path)" + ) + fi + if [[ "${PV}" == "9999" ]]; then + mycmakeargs+=( + -DMANUAL_REVISION=${KVIRC_GIT_REVISION} + -DMANUAL_SOURCES_DATE=${KVIRC_GIT_SOURCES_DATE//-/} + ) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + cmake_src_compile devdocs + fi +} + +src_install() { + cmake_src_install + + if use doc; then + ( + docinto html + dodoc -r "${BUILD_DIR}/doc/api/html/"* + ) + fi +} |