dev-libs/oxenc - 1.0.6 (oxen-overlay)

Search

Package Information

Description:
Base 16/32/64 and Bittorrent Encoding/Decoding Header Only Library
Homepage:
https://oxen.io
License:
GPL-3+

Ebuild Details

Version EAPI Keywords Slot
1.0.6 8 amd64 ~x86 ~arm64 ~arm ~mips ~mips64 ~ppc64 0
View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Base 16/32/64 and Bittorrent Encoding/Decoding Header Only Library "
HOMEPAGE="https://oxen.io"

PKG_TB="v${PV}.tar.gz"
SRC_URI="https://github.com/oxen-io/oxen-encoding/archive/refs/tags/${PKG_TB}"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 ~x86 ~arm64 ~arm ~mips ~mips64 ~ppc64"
IUSE="test"

DEPEND="test? ( >=dev-cpp/catch-2 )"

RDEPEND="${DEPEND}"

src_unpack() {
    unpack ${PKG_TB}
    # Respect Gentoo conventions
    mv "oxen-encoding-${PV}" "${PN}-${PV}"||die
}

src_prepare() {
	cmake_src_prepare
}

src_configure() {

	local mycmakeargs=(
		-DOXENC_BUILD_TESTS=$(usex test ON OFF)
	)

	cmake_src_configure
}

USE Flags

Dependencies

DEPEND

test? ( >=dev-cpp/catch-2 )

RDEPEND

test? ( >=dev-cpp/catch-2 )

Manifest for 1.0.6

Type File Size Source URLs
DIST v1.0.6.tar.gz 45132 bytes https://github.com/oxen-io/oxen-encoding/archive/refs/tags/v1.0.6.tar.gz