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