net-vpn/candy: update DESCRIPTION and new libandy USE flag

Signed-off-by: Xin Yang <yangmame@icloud.com>
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
Xin Yang
2024-04-24 09:54:36 +08:00
committed by David Roman
parent 264a2c934b
commit 3975dba3bd
2 changed files with 12 additions and 1 deletions

View File

@@ -5,13 +5,14 @@ EAPI=8
inherit cmake systemd
DESCRIPTION="Another virtual private network that supports peer-to-peer connections"
DESCRIPTION="A reliable, low-latency, and anti-censorship virtual private network"
HOMEPAGE="https://github.com/lanthora/candy"
SRC_URI="https://github.com/lanthora/candy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+libcandy"
DEPEND="
dev-libs/uriparser
@@ -22,6 +23,13 @@ DEPEND="
"
RDEPEND="${DEPEND}"
src_configure(){
local mycmakeargs=(
-DCANDY_DEVEL=$(usex libcandy true false)
)
cmake_src_configure
}
src_install(){
cmake_src_install
default

View File

@@ -5,6 +5,9 @@
<email>yangmame@icloud.com</email>
<name>Xin Yang</name>
</maintainer>
<use>
<flag name="libcandy">Install development libraries and header files for candy</flag>
</use>
<upstream>
<remote-id type="github">lanthora/candy</remote-id>
<maintainer>