dev-perl/perl-headers - 0.0.2 (gentoo)

Search

Package Information

Description:
Generated .ph equivalents of system headers
Homepage:
https://github.com/gentoo-perl/perl-headers
License:
|| ( Artistic GPL-1+ )

Ebuild Details

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

EAPI=8

inherit perl-functions flag-o-matic readme.gentoo-r1

MY_GITV="${PV}"

DESCRIPTION="Generated .ph equivalents of system headers"
HOMEPAGE="https://github.com/gentoo-perl/perl-headers"
SRC_URI="https://github.com/gentoo-perl/${PN}/archive/${MY_GITV}.tar.gz -> ${PN}-${MY_GITV}.tar.gz"

LICENSE="|| ( Artistic GPL-1+ )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+debug +sizeof-warning"

RDEPEND="dev-lang/perl:="
BDEPEND="${RDEPEND}
	sys-kernel/linux-headers
"

S="${WORKDIR}/${PN}-${MY_GITV}"

src_compile() {
	use sizeof-warning && append-cppflags "-DSIZEOF_WARNING=1"
	emake H2PHARGS="$(usex debug " -h" "")"
}

src_install() {
	readme.gentoo_create_doc
	perl_set_version
	insinto "${ARCH_LIB}"
	doins -r "${S}/headers/"*
	doins -r "${S}/appended/"*

}

pkg_postinst() {
	readme.gentoo_print_elog
}

USE Flags

debug
Default: Enabled (+)
sizeof-warning
Default: Enabled (+)

Dependencies

RDEPEND

dev-lang/perl:=

BDEPEND

dev-lang/perl:=
	sys-kernel/linux-headers

Manifest for 0.0.2

Type File Size Source URLs
DIST perl-headers-0.0.2.tar.gz 2153 bytes https://github.com/gentoo-perl/perl-headers/archive/0.0.2.tar.gz