mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-ml/pci: update HOMEPAGE
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
84
dev-ml/pci/files/pci-1.0.1-ounit2.patch
Normal file
84
dev-ml/pci/files/pci-1.0.1-ounit2.patch
Normal file
@@ -0,0 +1,84 @@
|
||||
From 9015f66fae0eddaac7080fd0ef164015c7d73865 Mon Sep 17 00:00:00 2001
|
||||
From: Alessandro-Barbieri <lssndrbarbieri@gmail.com>
|
||||
Date: Sat, 16 Apr 2022 20:10:49 +0200
|
||||
Subject: [PATCH] use ounit2
|
||||
|
||||
Signed-off-by: Alessandro-Barbieri <lssndrbarbieri@gmail.com>
|
||||
---
|
||||
.merlin | 2 +-
|
||||
_oasis | 2 +-
|
||||
_tags | 4 ++--
|
||||
opam | 2 +-
|
||||
setup.ml | 2 +-
|
||||
5 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/.merlin b/.merlin
|
||||
index f18d84c..e5b208a 100644
|
||||
--- a/.merlin
|
||||
+++ b/.merlin
|
||||
@@ -1,7 +1,7 @@
|
||||
PRJ pci
|
||||
PKG ctypes
|
||||
PKG ctypes.stubs
|
||||
-PKG oUnit
|
||||
+PKG ounit2
|
||||
|
||||
S lib
|
||||
S lib_test
|
||||
diff --git a/_oasis b/_oasis
|
||||
index 53db238..0443598 100644
|
||||
--- a/_oasis
|
||||
+++ b/_oasis
|
||||
@@ -58,7 +58,7 @@ Executable test_pci
|
||||
CompiledObject: best
|
||||
ByteOpt: -warn-error +1..45
|
||||
NativeOpt: -warn-error +1..45
|
||||
- BuildDepends: pci, oUnit
|
||||
+ BuildDepends: pci, ounit2
|
||||
|
||||
Test test_pci
|
||||
Command: $test_pci -runner sequential
|
||||
diff --git a/_tags b/_tags
|
||||
index 81eaa26..b8e20fc 100644
|
||||
--- a/_tags
|
||||
+++ b/_tags
|
||||
@@ -63,11 +63,11 @@ true: annot, bin_annot
|
||||
<lib_test/test_pci.{native,byte}>: oasis_executable_test_pci_native
|
||||
<lib_test/*.ml{,i,y}>: oasis_executable_test_pci_native
|
||||
<lib_test/test_pci.{native,byte}>: pkg_ctypes.stubs
|
||||
-<lib_test/test_pci.{native,byte}>: pkg_oUnit
|
||||
+<lib_test/test_pci.{native,byte}>: pkg_ounit2
|
||||
<lib_test/test_pci.{native,byte}>: use_pci
|
||||
<lib_test/test_pci.{native,byte}>: use_pci_bindings
|
||||
<lib_test/*.ml{,i,y}>: pkg_ctypes.stubs
|
||||
-<lib_test/*.ml{,i,y}>: pkg_oUnit
|
||||
+<lib_test/*.ml{,i,y}>: pkg_ounit2
|
||||
<lib_test/*.ml{,i,y}>: use_pci
|
||||
<lib_test/*.ml{,i,y}>: use_pci_bindings
|
||||
# Executable lspci
|
||||
diff --git a/opam b/opam
|
||||
index bc03b69..6e5e197 100644
|
||||
--- a/opam
|
||||
+++ b/opam
|
||||
@@ -21,7 +21,7 @@ remove: [
|
||||
depends: [
|
||||
"ctypes" {>= "0.4"}
|
||||
"ocamlfind" {build}
|
||||
- "ounit" {test}
|
||||
+ "ounit2" {test}
|
||||
]
|
||||
available: [ocaml-version >= "4.01.0" & os = "linux"]
|
||||
depexts: [
|
||||
diff --git a/setup.ml b/setup.ml
|
||||
index c3907bf..b1f3074 100644
|
||||
--- a/setup.ml
|
||||
+++ b/setup.ml
|
||||
@@ -7681,7 +7681,7 @@ let setup_t =
|
||||
bs_build_depends =
|
||||
[
|
||||
InternalLibrary "pci";
|
||||
- FindlibPackage ("oUnit", None)
|
||||
+ FindlibPackage ("ounit2", None)
|
||||
];
|
||||
bs_build_tools = [ExternalTool "ocamlbuild"];
|
||||
bs_interface_patterns =
|
||||
@@ -8,7 +8,10 @@ inherit findlib opam
|
||||
MY_P="ocaml-${P}"
|
||||
|
||||
DESCRIPTION="OCaml bindings to libpci using Ctypes"
|
||||
HOMEPAGE="https://github.com/simonjbeaumont/ocaml-pci"
|
||||
HOMEPAGE="
|
||||
https://github.com/simonjbeaumont/ocaml-pci
|
||||
https://opam.ocaml.org/packages/pci/
|
||||
"
|
||||
SRC_URI="https://github.com/simonjbeaumont/ocaml-pci/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
@@ -19,19 +22,20 @@ IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/pciutils
|
||||
dev-ml/ocaml-ctypes
|
||||
dev-ml/ocaml-ctypes:=
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-ml/ounit
|
||||
test? ( dev-ml/ounit2 )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
PATCHES="${FILESDIR}/${P}-ounit2.patch"
|
||||
OPAM_FILE=opam
|
||||
|
||||
src_configure() {
|
||||
myconf=(
|
||||
$(usex test '--enable-test' '')
|
||||
$(usex test '--enable-tests' '')
|
||||
--prefix "/usr"
|
||||
--destdir "${D}"
|
||||
--libdir "/usr/$(get_libdir)"
|
||||
|
||||
Reference in New Issue
Block a user