mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-ml/pci: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-ml/pci/Manifest
Normal file
1
dev-ml/pci/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pci-1.0.1.tar.gz 71886 BLAKE2B f01544daab4156ca3c03e97aa9a16bcd054813f299e6b32c2de314a1b90f5a54bae814fb9f685049240a1231899c58b9b961a56ba1fd2897a8a9882bf10e90f3 SHA512 814d189d3cdea73363982b6c4e9dd1aa8678f40883e74da7bd65c9ac0a6c2ac069d28f56b056e7f7e10ad5d800a0323888afcb161448f6a1b1408a826440471b
|
||||
11
dev-ml/pci/metadata.xml
Normal file
11
dev-ml/pci/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">simonjbeaumont/ocaml-pci</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
58
dev-ml/pci/pci-1.0.1.ebuild
Normal file
58
dev-ml/pci/pci-1.0.1.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit findlib opam
|
||||
|
||||
MY_P="ocaml-${P}"
|
||||
|
||||
DESCRIPTION="OCaml bindings to libpci using Ctypes"
|
||||
HOMEPAGE="https://github.com/simonjbeaumont/ocaml-pci"
|
||||
SRC_URI="https://github.com/simonjbeaumont/ocaml-pci/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="LGPL-2.1-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/pciutils
|
||||
dev-ml/ocaml-ctypes
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-ml/ounit
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
OPAM_FILE=opam
|
||||
|
||||
src_configure() {
|
||||
myconf=(
|
||||
$(usex test '--enable-test' '')
|
||||
--prefix "/usr"
|
||||
--destdir "${D}"
|
||||
--libdir "/usr/$(get_libdir)"
|
||||
--docdir "/usr/share/doc/${PF}"
|
||||
--htmldir "/usr/share/doc/${PF}/html"
|
||||
--override debug false
|
||||
--override is_native $(usex ocamlopt true false)
|
||||
)
|
||||
./configure "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
use test && emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
opam_src_test
|
||||
}
|
||||
Reference in New Issue
Block a user