diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-05-12 23:18:08 +0300 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-05-12 23:43:42 +0300 |
commit | df27de61c100c34bdbe2c8aa3f89ff5dda075a0a (patch) | |
tree | e5cbc92e68b0907d0124cdfb2474f36d66490306 /sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.3.ebuild | |
parent | www-misc/awstats: drop to ~hppa (diff) | |
download | gentoo-df27de61c100c34bdbe2c8aa3f89ff5dda075a0a.tar.gz gentoo-df27de61c100c34bdbe2c8aa3f89ff5dda075a0a.tar.bz2 gentoo-df27de61c100c34bdbe2c8aa3f89ff5dda075a0a.zip |
sci-libs/linux-gpib-modules: Version bump
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.3.ebuild')
-rw-r--r-- | sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.3.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.3.ebuild b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.3.ebuild new file mode 100644 index 000000000000..5b209c4c2813 --- /dev/null +++ b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.3.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info linux-mod 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="debug" + +COMMONDEPEND="" +RDEPEND="${COMMONDEPEND} + acct-group/gpib + !<sci-libs/linux-gpib-4.2.0_rc1 +" +DEPEND="${COMMONDEPEND} + virtual/pkgconfig" + +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 +} + +src_unpack() { + default + unpack "${WORKDIR}/linux-gpib-${PV}/linux-gpib-kernel-${PV}.tar.gz" +} + +src_configure() { + set_arch_to_kernel + + my_gpib_makeopts='' + use debug && my_gpib_makeopts+='GPIB-DEBUG=1 ' + + my_gpib_makeopts+="LINUX_SRCDIR=${KERNEL_DIR} " +} + +src_compile() { + set_arch_to_kernel + emake \ + DESTDIR="${D}" \ + INSTALL_MOD_PATH="${D}" \ + docdir=/usr/share/doc/${PF}/html \ + ${my_gpib_makeopts} +} + +src_install() { + set_arch_to_kernel + emake \ + DESTDIR="${D}" \ + INSTALL_MOD_PATH="${D}" \ + DEPMOD="/bin/true" \ + docdir=/usr/share/doc/${PF}/html \ + ${my_gpib_makeopts} \ + install + + dodoc ChangeLog AUTHORS README* NEWS +} |