1 |
commit: 42138d0217be8b23cd9f8964de852215ce3bc5f3 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 21 14:58:15 2018 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 21 14:59:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42138d02 |
7 |
|
8 |
sci-libs/linux-gpib-modules: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
12 |
|
13 |
sci-libs/linux-gpib-modules/Manifest | 1 + |
14 |
.../linux-gpib-modules-4.2.0.ebuild | 88 ++++++++++++++++++++++ |
15 |
2 files changed, 89 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/linux-gpib-modules/Manifest b/sci-libs/linux-gpib-modules/Manifest |
18 |
index de0878b97c2..83109bf752c 100644 |
19 |
--- a/sci-libs/linux-gpib-modules/Manifest |
20 |
+++ b/sci-libs/linux-gpib-modules/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST linux-gpib-4.2.0.tar.gz 1431440 BLAKE2B 7b6adf562963e0785f960c072f3f3d67cb91df9090205d8fecb0dc3170d3a1ac3719732919bae112e06b47387499ffe49a0144e72caa27ba39c85c8b98e56786 SHA512 1505c2c04f16bf7e92b9dd474f09edd242520a96f9e4d8eea88ebd44d0a82d653055155c1bfcde69da5355d609d400e3cb682da8aae83f59f1e565307a3fc4a7 |
23 |
DIST linux-gpib-kernel-4.2.0_rc1.tar.gz 332525 BLAKE2B e84f9da9902d139474cf68e49922f7b402c6d11113eab8c009683c1b4304a505eb6aba86a60b019e4d3ad0ef1d003c743f14f60b61b3d7f31e8aeca99a4a16c1 SHA512 8bf1a2b04d6128c513c5d13549fb95e563e719e43ffb3b303fc5aa2376f57a69774c1afdb901281933f6b253068461ce59bd9564146a0c5a6483e1ccc47d259f |
24 |
|
25 |
diff --git a/sci-libs/linux-gpib-modules/linux-gpib-modules-4.2.0.ebuild b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.2.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..4ac4407a9a8 |
28 |
--- /dev/null |
29 |
+++ b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.2.0.ebuild |
30 |
@@ -0,0 +1,88 @@ |
31 |
+# Copyright 1999-2018 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit linux-info linux-mod autotools toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Kernel modules for GPIB (IEEE 488.2) hardware" |
39 |
+HOMEPAGE="https://linux-gpib.sourceforge.io/" |
40 |
+SRC_URI="mirror://sourceforge/linux-gpib/linux-gpib-${PV}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~x86" |
45 |
+IUSE="isa pcmcia debug" |
46 |
+ |
47 |
+COMMONDEPEND="" |
48 |
+RDEPEND="${COMMONDEPEND} |
49 |
+ !<sci-libs/linux-gpib-4.2.0_rc1 |
50 |
+" |
51 |
+DEPEND="${COMMONDEPEND} |
52 |
+ virtual/pkgconfig" |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-4.2.0_rc1-reallydie.patch |
56 |
+) |
57 |
+ |
58 |
+S=${WORKDIR}/linux-gpib-kernel-${PV} |
59 |
+ |
60 |
+pkg_setup () { |
61 |
+ linux-mod_pkg_setup |
62 |
+ |
63 |
+ if kernel_is -lt 2 6 8; then |
64 |
+ die "Kernel versions older than 2.6.8 are not supported." |
65 |
+ fi |
66 |
+ |
67 |
+ # https://sourceforge.net/p/linux-gpib/bugs/43/ |
68 |
+ if use pcmcia && kernel_is -ge 2 6 38; then |
69 |
+ die "pcmcia support is broken on kernels newer 2.6.38" |
70 |
+ fi |
71 |
+} |
72 |
+ |
73 |
+src_unpack() { |
74 |
+ default |
75 |
+ unpack "${WORKDIR}/linux-gpib-${PV}/linux-gpib-kernel-${PV}.tar.gz" |
76 |
+} |
77 |
+ |
78 |
+src_prepare () { |
79 |
+ default |
80 |
+ eautoreconf |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ set_arch_to_kernel |
85 |
+ econf \ |
86 |
+ $(use_enable isa) \ |
87 |
+ $(use_enable pcmcia) \ |
88 |
+ $(use_enable debug driver-debug) \ |
89 |
+ --with-linux-srcdir=${KV_DIR} |
90 |
+} |
91 |
+ |
92 |
+src_compile() { |
93 |
+ set_arch_to_kernel |
94 |
+ emake \ |
95 |
+ DESTDIR="${D}" \ |
96 |
+ INSTALL_MOD_PATH="${D}" \ |
97 |
+ docdir=/usr/share/doc/${PF}/html |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ set_arch_to_kernel |
102 |
+ emake \ |
103 |
+ DESTDIR="${D}" \ |
104 |
+ INSTALL_MOD_PATH="${D}" \ |
105 |
+ DEPMOD="/bin/true" \ |
106 |
+ docdir=/usr/share/doc/${PF}/html install |
107 |
+ |
108 |
+ dodoc ChangeLog AUTHORS README* NEWS |
109 |
+} |
110 |
+ |
111 |
+pkg_preinst () { |
112 |
+ linux-mod_pkg_preinst |
113 |
+ enewgroup gpib |
114 |
+} |
115 |
+ |
116 |
+pkg_postinst () { |
117 |
+ linux-mod_pkg_postinst |
118 |
+} |