dev-cpp/nameof - 0.10.1 (touchfish-os)

Search

Package Information

Description:
Nameof operator for modern C++
Homepage:
https://github.com/Neargye/nameof
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.10.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Nameof operator for modern C++"
HOMEPAGE="https://github.com/Neargye/nameof"
SRC_URI="
	https://github.com/Neargye/nameof/releases/download/v${PV}/nameof.hpp -> nameof-${PV}.hpp
	doc? ( https://raw.githubusercontent.com/Neargye/nameof/v${PV}/doc/limitations.md -> nameof-${PV}-limitations.md
	https://raw.githubusercontent.com/Neargye/nameof/v${PV}/doc/reference.md -> nameof-${PV}-reference.md )"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
RESTRICT="mirror"

src_unpack() {
	cp "${DISTDIR}/nameof-${PV}.hpp" "${WORKDIR}/nameof.hpp" || die
	if use doc
	then
		cp "${DISTDIR}/nameof-${PV}-limitations.md" "${WORKDIR}/limitations.md" || die
		cp "${DISTDIR}/nameof-${PV}-reference.md" "${WORKDIR}/reference.md" || die
	fi
	S="${WORKDIR}"
}

src_install() {
	doheader nameof.hpp
	if use doc
	then
		dodoc limitations.md reference.md
	fi
}

USE Flags

doc

Manifest for 0.10.1

Type File Size Source URLs
DIST nameof-0.10.1-limitations.md 2816 bytes https://raw.githubusercontent.com/Neargye/nameof/v0.10.1/doc/limitations.md
DIST nameof-0.10.1-reference.md 9351 bytes https://raw.githubusercontent.com/Neargye/nameof/v0.10.1/doc/reference.md
DIST nameof-0.10.1.hpp 40391 bytes https://github.com/Neargye/nameof/releases/download/v0.10.1/nameof.hpp