aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Yang <yangmame@icloud.com>2024-04-24 09:54:36 +0800
committerDavid Roman <davidroman96@gmail.com>2024-04-25 23:55:18 +0200
commit3975dba3bd0371176bc87acae1dd0ea8c8352e27 (patch)
tree7adb772957564ddff18c7c14e5cb021c9b26cc15 /net-vpn
parentnet-vpn/candy: add 5.6, drop 5.5 (diff)
downloadguru-3975dba3bd0371176bc87acae1dd0ea8c8352e27.tar.gz
guru-3975dba3bd0371176bc87acae1dd0ea8c8352e27.tar.bz2
guru-3975dba3bd0371176bc87acae1dd0ea8c8352e27.zip
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>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/candy/candy-5.6.ebuild10
-rw-r--r--net-vpn/candy/metadata.xml3
2 files changed, 12 insertions, 1 deletions
diff --git a/net-vpn/candy/candy-5.6.ebuild b/net-vpn/candy/candy-5.6.ebuild
index 8dc55f6ff..250e9d667 100644
--- a/net-vpn/candy/candy-5.6.ebuild
+++ b/net-vpn/candy/candy-5.6.ebuild
@@ -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
diff --git a/net-vpn/candy/metadata.xml b/net-vpn/candy/metadata.xml
index 67deff1af..75b80f1ec 100644
--- a/net-vpn/candy/metadata.xml
+++ b/net-vpn/candy/metadata.xml
@@ -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>