summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-p2p/kovri/kovri-0.1.0_alpha.ebuild67
-rw-r--r--net-p2p/kovri/metadata.xml8
2 files changed, 75 insertions, 0 deletions
diff --git a/net-p2p/kovri/kovri-0.1.0_alpha.ebuild b/net-p2p/kovri/kovri-0.1.0_alpha.ebuild
new file mode 100644
index 00000000..7a7f9556
--- /dev/null
+++ b/net-p2p/kovri/kovri-0.1.0_alpha.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{3_5,3_6,3_7} )
+inherit git-r3 toolchain-funcs python-r1 bash-completion-r1
+
+DESCRIPTION="Free, decentralized, anonymity technology based on I2P's open specifications"
+HOMEPAGE="https://getkovri.org"
+EGIT_REPO_URI="https://gitlab.com/kovri-project/${PN}"
+EGIT_COMMIT="v${PV/_/-}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc python"
+
+RDEPEND="dev-libs/openssl:0
+ dev-libs/boost:=
+ dev-libs/crypto++:=
+ python? ( dev-libs/boost:=[python,${PYTHON_USEDEP}] )
+ net-libs/miniupnpc"
+DEPEND=">=sys-devel/clang-3.5
+ >=dev-util/cmake-3.5.1
+ doc? (
+ media-gfx/graphviz
+ app-doc/doxygen:0
+ )
+ ${RDEPEND}"
+
+src_prepare () {
+ export AR=$(tc-getAR)
+ export RANLIB=$(tc-getRANLIB)
+ export CC=$(tc-getCC)
+ export CXX=$(tc-getCXX)
+
+ sed -i \
+ -e "s;bin_path=.*;bin_path=${ED}/usr/bin;" \
+ -e "s;kovri_data_dir=.*;kovri_data_dir=${ED}/etc/${PN};" \
+ -e "s;mkdir ;mkdir -p ;" \
+ pkg/installers/kovri-install.sh \
+ || die
+
+ default
+}
+
+src_compile () {
+ emake release COTIRE=0
+
+ if use doc ; then
+ emake doxygen
+ fi
+
+ # Boost.Python package not yet supported for your system
+ #if use python ; then
+ # emake python
+ #fi
+}
+
+src_install () {
+ default
+
+ rm -f "${ED}/usr/bin/kovri-bash.sh"
+ newbashcomp "${S}/contrib/utils/kovri-bash.sh" "${PN}"
+
+ dodoc -r docs/i18n/*
+}
diff --git a/net-p2p/kovri/metadata.xml b/net-p2p/kovri/metadata.xml
new file mode 100644
index 00000000..de37e444
--- /dev/null
+++ b/net-p2p/kovri/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bertrand@jacquin.bzh</email>
+ <name>Bertrand Jacquin</name>
+ </maintainer>
+</pkgmetadata>