summaryrefslogtreecommitdiff
path: root/net-misc
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2016-02-10 19:23:42 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2016-02-10 19:23:42 +0300
commit88d4c4bf10c766aa0288a12bc8dc53d98c991152 (patch)
treec25304eca5ac9eb1f35e6d7fe2152d2943b0e228 /net-misc
parent21645add1b2b6b5729061388989cd3583520ac7c (diff)
i2pd: use make instead of cmake for cimpilation (TODO: useflags)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/i2pd/i2pd-scm.ebuild58
1 files changed, 14 insertions, 44 deletions
diff --git a/net-misc/i2pd/i2pd-scm.ebuild b/net-misc/i2pd/i2pd-scm.ebuild
index 704489b..1a7faa2 100644
--- a/net-misc/i2pd/i2pd-scm.ebuild
+++ b/net-misc/i2pd/i2pd-scm.ebuild
@@ -3,7 +3,7 @@
# $Id$
EAPI=5
-inherit eutils systemd user git-2 cmake-multilib
+inherit eutils systemd user git-2
DESCRIPTION="A C++ daemon for accessing the I2P anonymous network"
HOMEPAGE="https://github.com/PrivacySolutions/i2pd"
@@ -12,17 +12,12 @@ EGIT_REPO_URI="git://github.com/PrivacySolutions/i2pd"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="cpu_flags_x86_aes i2p-hardening static"
+IUSE=""
-RDEPEND="!static? ( >=dev-libs/boost-1.46[threads] )
- !static? ( dev-libs/crypto++ )
- >=dev-libs/boost-1.46[threads,${MULTILIB_USEDEP}]
- dev-libs/crypto++[${MULTILIB_USEDEP}]"
+RDEPEND="
+ >=dev-libs/boost-1.46[threads]
+ dev-libs/crypto++"
DEPEND="${RDEPEND}
- static? ( >=dev-libs/boost-1.46[static-libs,threads] )
- static? ( dev-libs/crypto++[static-libs] )
- >=dev-util/cmake-2.8.5
- i2p-hardening? ( >=sys-devel/gcc-4.6 )
|| ( >=sys-devel/gcc-4.6 >=sys-devel/clang-3.3 )"
I2PD_USER="${I2PD_USER:-i2pd}"
@@ -30,45 +25,20 @@ I2PD_GROUP="${I2PD_GROUP:-i2pd}"
#CMAKE_USE_DIR="${S}/build"
-multilib_src_configure() {
- mycmakeargs=(
- $(cmake-utils_use_with cpu_flags_x86_aes AESNI)
- $(cmake-utils_use_with i2p-hardening HARDENING)
- -DWITH_LIBRARY=ON
- $(cmake-utils_use_with static STATIC)
- $(multilib_is_native_abi && echo -DWITH_BINARY=ON \
- || echo -DWITH_BINARY=OFF)
- )
- (multilib_is_native_abi) && cmake-utils_src_configure
-}
-multilib_src_compile() {
- (multilib_is_native_abi) && cmake-utils_src_compile
+src_compile() {
+ emake
}
-multilib_src_install() {
- (multilib_is_native_abi) && cmake-utils_src_install
+src_install() {
+ mkdir -p "${D}/usr/bin"
+ cp "${S}/i2pd" "${D}/usr/bin"
+ mkdir -p "${D}/var/lib/certificates/"
+ cp -r "${S}/contrib/certificates/" "${D}/var/lib/certificates"
+ dodoc ${S}/docs/*.md
+ doman ${S}/debian/i2pd.1
}
-multilib_src_install_all() {
- dodoc README.md
- doman "${FILESDIR}/${PN}.1"
- keepdir /var/lib/i2pd/
- fowners "${I2PD_USER}:${I2PD_GROUP}" /var/lib/i2pd/
- fperms 700 /var/lib/i2pd/
- insinto /etc/
- doins "${FILESDIR}/${PN}.conf"
- fowners "${I2PD_USER}:${I2PD_GROUP}" "/etc/${PN}.conf"
- fperms 600 "/etc/${PN}.conf"
- dodir /usr/share/i2pd
- cp -R "${S}/contrib/certificates" "${D}/var/lib/i2pd" || die "Install failed!"
- newconfd "${FILESDIR}/${PN}.confd" "${PN}"
- newinitd "${FILESDIR}/${PN}.initd" "${PN}"
- systemd_dounit "${FILESDIR}/${PN}.service"
- doenvd "${FILESDIR}/99${PN}"
- insinto /etc/logrotate.d
- newins "${FILESDIR}/${PN}.logrotate" "${PN}"
-}
pkg_setup() {
enewgroup "${I2PD_GROUP}"