net-misc/qnearbyshare - 1.0 (blshkv)

Search

Install

Install this version:

emerge -a =net-misc/qnearbyshare-1.0

Package Information

Description:
Nearby Share implementation for Linux
Homepage:
https://github.com/vicr123/QNearbyShare
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.0 8 amd64 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Nearby Share implementation for Linux"
HOMEPAGE="https://github.com/vicr123/QNearbyShare"

QTZEROCONF_COMMIT="473d8520f954d22f8ad45e0d9a945c97b7282264"

SRC_URI="
	https://github.com/vicr123/QNearbyShare/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/jbagg/QtZeroConf/archive/${QTZEROCONF_COMMIT}.tar.gz -> QtZeroConf-473d8520.tar.gz
"

S="${WORKDIR}/QNearbyShare-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"
IUSE="+openssl"

RDEPEND="
	dev-qt/qtbase:6[dbus,network]
	dev-libs/protobuf:=
	dev-cpp/abseil-cpp:=
	net-dns/avahi
	openssl? ( dev-libs/openssl:= )
	!openssl? ( dev-libs/crypto++:= )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

src_prepare() {
	# The GitHub source tarball contains an empty QtZeroConf submodule placeholder;
	# remove it so the mv below replaces it rather than nesting inside it.
	rmdir "${S}/libqnearbyshare-server/QtZeroConf" || die
	mv "${WORKDIR}/QtZeroConf-${QTZEROCONF_COMMIT}" \
		"${S}/libqnearbyshare-server/QtZeroConf" || die

	# https://github.com/vicr123/QNearbyShare/pull/19
	eapply "${FILESDIR}/${P}-openssl-fixes.patch"
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DBUILD_TESTING=OFF
		-DUSE_OPENSSL=$(usex openssl ON OFF)
	)
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-misc/qnearbyshare | euse -E <flag> -p net-misc/qnearbyshare | euse -D <flag> -p net-misc/qnearbyshare

Global/Standard Flags

openssl
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	dev-qt/qtbase:6[dbus,network]
	dev-libs/protobuf:=
	dev-cpp/abseil-cpp:=
	net-dns/avahi
	openssl? ( dev-libs/openssl:= )
	!openssl? ( dev-libs/crypto++:= )

RDEPEND

	dev-qt/qtbase:6[dbus,network]
	dev-libs/protobuf:=
	dev-cpp/abseil-cpp:=
	net-dns/avahi
	openssl? ( dev-libs/openssl:= )
	!openssl? ( dev-libs/crypto++:= )

BDEPEND

virtual/pkgconfig

Manifest for 1.0

Type File Size Source URLs
DIST QtZeroConf-473d8520.tar.gz 219801 bytes https://github.com/jbagg/QtZeroConf/archive/473d8520f954d22f8ad45e0d9a945c97b7282264.tar.gz
DIST qnearbyshare-1.0.tar.gz 50776 bytes https://github.com/vicr123/QNearbyShare/archive/refs/tags/v1.0.tar.gz