1 |
commit: 119cff71d32d4bd8cd3073bf8fc9c9ccf862b413 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 20:57:38 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 20:57:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119cff71 |
7 |
|
8 |
sci-libs/linux-gpib: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sci-libs/linux-gpib/Manifest | 1 - |
13 |
sci-libs/linux-gpib/linux-gpib-4.3.3.ebuild | 178 ---------------------------- |
14 |
2 files changed, 179 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/linux-gpib/Manifest b/sci-libs/linux-gpib/Manifest |
17 |
index 468f7c4dbdf..0188573cf64 100644 |
18 |
--- a/sci-libs/linux-gpib/Manifest |
19 |
+++ b/sci-libs/linux-gpib/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
DIST gpib_firmware-2006-11-12.tar.gz 169357 BLAKE2B 05f1be78545e025d76e2b9819a5dcac5a6715dfbb6df5c6fbe8b78900adf8ca7b1c28db350674ff1dd9c77e24507e98b536ca1af8b558c9a46ef8c25034c9769 SHA512 164d6fcfb3af43933f0a16645276f7d527a7aa24ef311f6ae3dcd7f45c41f92c855cf221bc946772f43fc2f9524057abc34bbd7d805c89b33ed7e111bc6870af |
22 |
-DIST linux-gpib-4.3.3.tar.gz 1381420 BLAKE2B 0ee8c4d740272a55be03f07bd49c9a93d0ec4808465c9b0abc4ede2ee9ef4bcb8a48fb8c98617d007c8b7af970eae185de65094a8814b05cb81bfc983bf9df3e SHA512 91b2c345dc82778b757122dc41ae74138831223a73057ddf9f04d10b8f6a059760e17134378df46a1ecb13c42bec1383aced0f2446f803af425391193a77066e |
23 |
DIST linux-gpib-4.3.4.tar.gz 1395770 BLAKE2B 3c7182ac127851ebf0f5416ea639d7f858c160ba00f01aa7f7e423f6fb7b3be5b089424d3a473497562d040c194483ebc93d8a2a0f64582fb8907b42e2c4b832 SHA512 397ad86883bf562b004673ae47218108d392f2a15121c95926ea38764e7a76b382cb199fd48c35c9777f34c8eb99965e3d4ea2028e86ce02bcda4bd23127cbd5 |
24 |
|
25 |
diff --git a/sci-libs/linux-gpib/linux-gpib-4.3.3.ebuild b/sci-libs/linux-gpib/linux-gpib-4.3.3.ebuild |
26 |
deleted file mode 100644 |
27 |
index eeecbc6b231..00000000000 |
28 |
--- a/sci-libs/linux-gpib/linux-gpib-4.3.3.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,178 +0,0 @@ |
31 |
-# Copyright 1999-2021 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=6 |
35 |
- |
36 |
-PYTHON_COMPAT=( python3_7 ) |
37 |
- |
38 |
-inherit readme.gentoo-r1 autotools perl-functions python-single-r1 toolchain-funcs udev |
39 |
- |
40 |
-DESCRIPTION="Driver library for GPIB (IEEE 488.2) hardware" |
41 |
-HOMEPAGE="https://linux-gpib.sourceforge.io/" |
42 |
-SRC_URI="mirror://sourceforge/linux-gpib/${P}.tar.gz |
43 |
- firmware? ( https://linux-gpib.sourceforge.io/firmware/gpib_firmware-2006-11-12.tar.gz ) |
44 |
-" |
45 |
- |
46 |
-LICENSE="GPL-2" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="amd64 ~arm ~x86" |
49 |
-IUSE="pcmcia static guile perl php python tcl doc firmware" |
50 |
- |
51 |
-S="${WORKDIR}/${PN}-user-${PV}" |
52 |
- |
53 |
-COMMONDEPEND=" |
54 |
- sys-libs/readline:= |
55 |
- tcl? ( dev-lang/tcl:0= ) |
56 |
- guile? ( dev-scheme/guile:12 ) |
57 |
- perl? ( dev-lang/perl:= ) |
58 |
- php? ( dev-lang/php:= ) |
59 |
- python? ( ${PYTHON_DEPS} ) |
60 |
- firmware? ( sys-apps/fxload )" |
61 |
-RDEPEND="${COMMONDEPEND} |
62 |
- acct-group/gpib |
63 |
- ~sci-libs/linux-gpib-modules-${PV} |
64 |
-" |
65 |
-DEPEND="${COMMONDEPEND} |
66 |
- virtual/pkgconfig |
67 |
- doc? ( app-text/docbook-sgml-utils ) |
68 |
- perl? ( virtual/perl-ExtUtils-MakeMaker )" |
69 |
- |
70 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
71 |
- |
72 |
-PATCHES=( |
73 |
- "${FILESDIR}"/${PN}-4.3.0-perl.patch |
74 |
-) |
75 |
- |
76 |
-pkg_setup() { |
77 |
- use perl && perl_set_version |
78 |
- use python && python_setup |
79 |
-} |
80 |
- |
81 |
-src_unpack() { |
82 |
- default |
83 |
- unpack "${WORKDIR}/${P}/${PN}-user-${PV}.tar.gz" |
84 |
-} |
85 |
- |
86 |
-src_prepare() { |
87 |
- default |
88 |
- eautoreconf |
89 |
-} |
90 |
- |
91 |
-src_configure() { |
92 |
- econf \ |
93 |
- $(use_enable static) \ |
94 |
- $(use_enable guile guile-binding) \ |
95 |
- $(use_enable perl perl-binding) \ |
96 |
- $(use_enable php php-binding) \ |
97 |
- $(use_enable python python-binding) \ |
98 |
- $(use_enable tcl tcl-binding) \ |
99 |
- $(use_enable doc documentation) |
100 |
-} |
101 |
- |
102 |
-src_compile() { |
103 |
- FIRM_DIR=/usr/share/usb |
104 |
- emake \ |
105 |
- DESTDIR="${D}" \ |
106 |
- INSTALL_MOD_PATH="${D}" \ |
107 |
- HOTPLUG_USB_CONF_DIR=/etc/hotplug/usb \ |
108 |
- UDEV_RULES_DIR="$(get_udevdir)"/rules.d \ |
109 |
- USB_FIRMWARE_DIR=${FIRM_DIR} \ |
110 |
- docdir=/usr/share/doc/${PF}/html |
111 |
-} |
112 |
- |
113 |
-src_install() { |
114 |
- FIRM_DIR=/usr/share/usb |
115 |
- emake \ |
116 |
- DESTDIR="${D}" \ |
117 |
- INSTALL_MOD_PATH="${D}" \ |
118 |
- HOTPLUG_USB_CONF_DIR=/etc/hotplug/usb \ |
119 |
- UDEV_RULES_DIR="$(get_udevdir)"/rules.d \ |
120 |
- USB_FIRMWARE_DIR=${FIRM_DIR} \ |
121 |
- docdir=/usr/share/doc/${PF}/html install |
122 |
- |
123 |
- if use perl; then |
124 |
- einfo "Installing perl module" |
125 |
- cd "${S}"/language/perl || die |
126 |
- DESTDIR=${D} emake install |
127 |
- perl_fix_packlist |
128 |
- perl_delete_emptybsdir |
129 |
- cd "${S}" || die |
130 |
- fi |
131 |
- |
132 |
- echo "KERNEL==\"gpib[0-9]*\", MODE=\"0660\", GROUP=\"gpib\"" >> 99-gpib.rules |
133 |
- udev_dorules 99-gpib.rules |
134 |
- |
135 |
- dodoc doc/linux-gpib.pdf ChangeLog AUTHORS README* NEWS |
136 |
- |
137 |
- insinto /etc |
138 |
- newins util/templates/gpib.conf gpib.conf |
139 |
- newins util/templates/gpib.conf gpib.conf.example |
140 |
- |
141 |
- if use pcmcia; then |
142 |
- insinto /etc/pcmcia |
143 |
- doins "${S}"/etc/pcmcia/* |
144 |
- fi |
145 |
- |
146 |
- # fix rules files |
147 |
- local f |
148 |
- find "${D}$(get_udevdir)"/rules.d -type f -print0 | while read -rd '' f ; do |
149 |
- grep -q "${D}" "${f}" && einfo "File ${f} contains a temporary path, fixing." |
150 |
- sed -i -e "s:${D}:/:g" "${f}" |
151 |
- done |
152 |
- |
153 |
- DOC_CONTENTS=" |
154 |
-As the udev rules were changed and refactored in this release it is |
155 |
-necessary to remove any manually installed pre-4.3.0 gpib udev rules files |
156 |
-in /etc/udev/rules.d/. The files to remove are: |
157 |
-\n |
158 |
- 99-agilent_82357a.rules\n |
159 |
- 99-gpib-generic.rules\n |
160 |
- 99-ni_usb_gpib.rules\n |
161 |
-\n |
162 |
-You need to run the 'gpib_config' utility to setup the driver before |
163 |
-you can use it. In order to do it automatically you can add to your |
164 |
-start script something like this (supposing the appropriate driver |
165 |
-is loaded on the startup): |
166 |
-\n |
167 |
- gpib_config --minor 0 |
168 |
-\n |
169 |
-To give a user access to the computer's gpib board you will have to add |
170 |
-them to the group 'gpib' or, you could change the permissions on the device |
171 |
-files /dev/gpib[0-15] to something you like better, using 'chmod' |
172 |
-\n |
173 |
-Edit /etc/gpib.conf to match your interface board, and any devices you wish |
174 |
-to open via ibfind(). See the documentation in /usr/share/linux-gpib/html for |
175 |
-more information. |
176 |
-\n |
177 |
-" |
178 |
- |
179 |
- if use pcmcia; then |
180 |
- DOC_CONTENTS+=' |
181 |
-For PCMCIA cards:\n |
182 |
-All files needed for a PCMCIA board were copied to /etc/pcmcia. |
183 |
-You may wish to edit the options passed to the gpib_config call in the |
184 |
-/etc/pcmcia/linux-gpib-pcmcia script. |
185 |
-You may need to send a SIGHUP signal to the cardmgr daemon to force it |
186 |
-to reload the files in /etc/pcmcia \(alternatively you could use your |
187 |
-pcmcia init.d script to restart the cardmgr, or you could just reboot\). |
188 |
-The driver module will be loaded as needed by the cardmgr. |
189 |
- |
190 |
-' |
191 |
- fi |
192 |
- |
193 |
- if use firmware; then |
194 |
- DOC_CONTENTS+=' |
195 |
-For Agilent \(HP\) 82341C and 82341D cards: |
196 |
-The firmware for these boards is uploaded by passing the appropriate |
197 |
-firmware file from /usr/share/linux-gpib/hp_82341 directory to |
198 |
-gpib_config using the -I or --init-data command line option. Example:\n |
199 |
-gpib_config --minor 0 --init-data /usr/share/linux-gpib/hp_82341/hp_82341c_fw.bin |
200 |
-' |
201 |
- fi |
202 |
- |
203 |
- readme.gentoo_create_doc |
204 |
-} |
205 |
- |
206 |
-pkg_postinst() { |
207 |
- readme.gentoo_print_elog |
208 |
-} |