mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
app-admin/i2pd-tools: add 2025.02.26, drop 2024.05.08
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
75
app-admin/i2pd-tools/i2pd-tools-2025.02.26.ebuild
Normal file
75
app-admin/i2pd-tools/i2pd-tools-2025.02.26.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
COMMIT="33fce4b087d92ee90653460bbe7a07cdc0c7b121"
|
||||
I2PD_COMMIT="dcd15cc2449d6320de6351054e61ef2ee7ebee40" # keep in sync with bundled version
|
||||
DESCRIPTION="Some useful tools for I2P"
|
||||
HOMEPAGE="https://github.com/PurpleI2P/i2pd-tools"
|
||||
SRC_URI="
|
||||
https://github.com/PurpleI2P/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/PurpleI2P/i2pd/archive/${I2PD_COMMIT}.tar.gz -> i2pd-${I2PD_COMMIT:0:7}.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="cpu_flags_x86_aes"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/boost:=
|
||||
dev-libs/openssl:=
|
||||
sys-libs/zlib:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.2023.03.12-nodebug.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
rmdir "${S}/i2pd" || die
|
||||
mv "${WORKDIR}"/i2pd-${I2PD_COMMIT} "${S}"/i2pd || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CXX
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
mymakeflags=(
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
USE_AESNI="$(usex cpu_flags_x86_aes)"
|
||||
)
|
||||
|
||||
emake "${mymakeflags[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local -a binaries
|
||||
|
||||
# extracted from Makefile
|
||||
binaries=(
|
||||
vain keygen keyinfo famtool routerinfo regaddr regaddr_3ld
|
||||
i2pbase64 offlinekeys b33address regaddralias x25519 verifyhost
|
||||
autoconf
|
||||
)
|
||||
|
||||
for bin in "${binaries[@]}"; do
|
||||
newbin "${bin}" "ip2d-${bin}"
|
||||
done
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "All binaries are prefixed with 'i2pd-' to avoid file collisions,"
|
||||
elog "e.g. 'vain' becomes 'i2pd-vain'."
|
||||
}
|
||||
Reference in New Issue
Block a user