diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
commit | de49812990871e1705b64051c35161d5e6400269 (patch) | |
tree | 5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /sci-libs/linux-gpib-modules | |
parent | 536c3711867ec947c1738f2c4b96f22e4863322d (diff) |
gentoo resync : 24.12.2018
Diffstat (limited to 'sci-libs/linux-gpib-modules')
-rw-r--r-- | sci-libs/linux-gpib-modules/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/linux-gpib-modules/linux-gpib-modules-4.2.0.ebuild | 88 |
2 files changed, 90 insertions, 0 deletions
diff --git a/sci-libs/linux-gpib-modules/Manifest b/sci-libs/linux-gpib-modules/Manifest index 3877c6abcc6f..0720b75a2d23 100644 --- a/sci-libs/linux-gpib-modules/Manifest +++ b/sci-libs/linux-gpib-modules/Manifest @@ -1,5 +1,7 @@ AUX linux-gpib-modules-4.0.4_rc2-kernel-4.11.0.patch 387 BLAKE2B 38516ea8a9ca5dd3dc32cfd605bd68100726bbcc8d96fa457caabfb91cbc17ce37e61194ac32e573acc797d71c448454d03e6202ec331cb25c056f8ee7b78829 SHA512 6f6b25695ae81671a93e8b86978ea1ef9e71ba5a38d14ad95b9a6aa59704bb2d6a8064c1ac006b1e7c4740d059184d4d4cefef88a2fd0c2a09406f64f6597187 AUX linux-gpib-modules-4.2.0_rc1-reallydie.patch 737 BLAKE2B 198c078a168071e04efcfdad11bf93c2682ab2f2160d7f93fc9c49fdcd2cbbe9174be53502fa5a2c0eedf448e0f438130646cfe902673383925156244a80bf5d SHA512 96b7e459da514f4a4f84e746a3121baa0076c479ad435fd182a90714aeec21d32dcdbb6871deacab532c722e89970aa7cbccbcbea494195dfa86c7ebb95142d9 +DIST linux-gpib-4.2.0.tar.gz 1431440 BLAKE2B 7b6adf562963e0785f960c072f3f3d67cb91df9090205d8fecb0dc3170d3a1ac3719732919bae112e06b47387499ffe49a0144e72caa27ba39c85c8b98e56786 SHA512 1505c2c04f16bf7e92b9dd474f09edd242520a96f9e4d8eea88ebd44d0a82d653055155c1bfcde69da5355d609d400e3cb682da8aae83f59f1e565307a3fc4a7 DIST linux-gpib-kernel-4.2.0_rc1.tar.gz 332525 BLAKE2B e84f9da9902d139474cf68e49922f7b402c6d11113eab8c009683c1b4304a505eb6aba86a60b019e4d3ad0ef1d003c743f14f60b61b3d7f31e8aeca99a4a16c1 SHA512 8bf1a2b04d6128c513c5d13549fb95e563e719e43ffb3b303fc5aa2376f57a69774c1afdb901281933f6b253068461ce59bd9564146a0c5a6483e1ccc47d259f +EBUILD linux-gpib-modules-4.2.0.ebuild 1666 BLAKE2B f3f5dedb737605af9b60879ce55ff4945727ffa2d4dc684b60dcb8dde4ce2cb5aa6a7d9a179ebe5469d0a8fa9844142d9eff36afc5405028538f48136d98304f SHA512 7a82cd2f829e162ff34e861cf4505bd996e78a37a7a5c33f969d7d437a67c551af7d725275b8a6d4433d4becd58586fcac2cb104dbfcebdaf757169fc6dff752 EBUILD linux-gpib-modules-4.2.0_rc1.ebuild 1587 BLAKE2B 8e27c06ac44e9bbecf2925a9f93380fce2afcd110c37640ffb2ac8abf3c1471217ff601a0e0b831efce053de12ea10e03ef59dab561b0c2da56995f6b97d041f SHA512 d8d26687c404bada61b92a4935f3c7e0680488dc0f8cb8e3fdf1e71feebc95ec7279459009bc217080063e163b875d1e1a99570c6a9fd8db8fd2be6aba78eec6 MISC metadata.xml 638 BLAKE2B 6367f8fe90e75e2a3593d5d79ae09e6c75fa990ae037b58cba80ecdc4f7023a5b116ee2d6eadcdd6960133cd08a5103ebd1870906e2136af064a048603bb2562 SHA512 0bce2e72363ccdec78efa46158bade5135cae3d2d7b97de6836c4708f5823f2c1539f7441f0382061c4e0c4c7b5b1498bc5a4be6949b7dea015c873381010744 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 new file mode 100644 index 000000000000..4ac4407a9a83 --- /dev/null +++ b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.2.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info linux-mod autotools toolchain-funcs + +DESCRIPTION="Kernel modules for GPIB (IEEE 488.2) hardware" +HOMEPAGE="https://linux-gpib.sourceforge.io/" +SRC_URI="mirror://sourceforge/linux-gpib/linux-gpib-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="isa pcmcia debug" + +COMMONDEPEND="" +RDEPEND="${COMMONDEPEND} + !<sci-libs/linux-gpib-4.2.0_rc1 +" +DEPEND="${COMMONDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-4.2.0_rc1-reallydie.patch +) + +S=${WORKDIR}/linux-gpib-kernel-${PV} + +pkg_setup () { + linux-mod_pkg_setup + + if kernel_is -lt 2 6 8; then + die "Kernel versions older than 2.6.8 are not supported." + fi + + # https://sourceforge.net/p/linux-gpib/bugs/43/ + if use pcmcia && kernel_is -ge 2 6 38; then + die "pcmcia support is broken on kernels newer 2.6.38" + fi +} + +src_unpack() { + default + unpack "${WORKDIR}/linux-gpib-${PV}/linux-gpib-kernel-${PV}.tar.gz" +} + +src_prepare () { + default + eautoreconf +} + +src_configure() { + set_arch_to_kernel + econf \ + $(use_enable isa) \ + $(use_enable pcmcia) \ + $(use_enable debug driver-debug) \ + --with-linux-srcdir=${KV_DIR} +} + +src_compile() { + set_arch_to_kernel + emake \ + DESTDIR="${D}" \ + INSTALL_MOD_PATH="${D}" \ + docdir=/usr/share/doc/${PF}/html +} + +src_install() { + set_arch_to_kernel + emake \ + DESTDIR="${D}" \ + INSTALL_MOD_PATH="${D}" \ + DEPMOD="/bin/true" \ + docdir=/usr/share/doc/${PF}/html install + + dodoc ChangeLog AUTHORS README* NEWS +} + +pkg_preinst () { + linux-mod_pkg_preinst + enewgroup gpib +} + +pkg_postinst () { + linux-mod_pkg_postinst +} |