diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-08-14 11:22:30 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-08-14 11:22:30 +0000 |
commit | bd9fea844d1b0dac730da04003e7510e98ea4f7d (patch) | |
tree | bb2e4c0c700f4246b1c43c8a77274ae3c73a900e /sci-libs/linux-gpib | |
parent | Drop default CFLAGS, bug 379063 thank Agostino Sarubbo for report. (diff) | |
download | gentoo-2-bd9fea844d1b0dac730da04003e7510e98ea4f7d.tar.gz gentoo-2-bd9fea844d1b0dac730da04003e7510e98ea4f7d.tar.bz2 gentoo-2-bd9fea844d1b0dac730da04003e7510e98ea4f7d.zip |
Make the perl bindings actually install; things should be compiled during the compile phase; remove old
(Portage version: 2.1.10.10/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/linux-gpib')
-rw-r--r-- | sci-libs/linux-gpib/ChangeLog | 10 | ||||
-rw-r--r-- | sci-libs/linux-gpib/files/linux-gpib-3.2.16-perl.patch | 9 | ||||
-rw-r--r-- | sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild (renamed from sci-libs/linux-gpib/linux-gpib-3.2.15.ebuild) | 61 |
3 files changed, 53 insertions, 27 deletions
diff --git a/sci-libs/linux-gpib/ChangeLog b/sci-libs/linux-gpib/ChangeLog index 798487cf62b4..7491da1dab6e 100644 --- a/sci-libs/linux-gpib/ChangeLog +++ b/sci-libs/linux-gpib/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sci-libs/linux-gpib # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/linux-gpib/ChangeLog,v 1.2 2011/05/14 17:05:08 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/linux-gpib/ChangeLog,v 1.3 2011/08/14 11:22:30 dilfridge Exp $ + +*linux-gpib-3.2.16-r1 (14 Aug 2011) + + 14 Aug 2011; Andreas K. Huettel <dilfridge@gentoo.org> + -linux-gpib-3.2.15.ebuild, +linux-gpib-3.2.16-r1.ebuild, + +files/linux-gpib-3.2.16-perl.patch: + Make the perl bindings actually install; things should be compiled during the + compile phase; remove old *linux-gpib-3.2.16 (14 May 2011) diff --git a/sci-libs/linux-gpib/files/linux-gpib-3.2.16-perl.patch b/sci-libs/linux-gpib/files/linux-gpib-3.2.16-perl.patch new file mode 100644 index 000000000000..16f2f15b0ad7 --- /dev/null +++ b/sci-libs/linux-gpib/files/linux-gpib-3.2.16-perl.patch @@ -0,0 +1,9 @@ +diff -ruN linux-gpib-3.2.16.orig/language/Makefile.am linux-gpib-3.2.16/language/Makefile.am +--- linux-gpib-3.2.16.orig/language/Makefile.am 2009-09-16 19:26:53.000000000 +0200 ++++ linux-gpib-3.2.16/language/Makefile.am 2011-08-14 03:32:53.000000000 +0200 +@@ -67,4 +67,4 @@ + $(RM) perl/Makefile + + perl/Makefile: +- -(cd perl && $(PERL) Makefile.PL) ++ -(cd perl && $(PERL) Makefile.PL PREFIX=$(EPREFIX)/usr INSTALLDIRS=vendor INSTALLMAN3DIR='none' DESTDIR="$(DESTDIR)" ) diff --git a/sci-libs/linux-gpib/linux-gpib-3.2.15.ebuild b/sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild index e301d23e5e43..cccdd3748da2 100644 --- a/sci-libs/linux-gpib/linux-gpib-3.2.15.ebuild +++ b/sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/linux-gpib/linux-gpib-3.2.15.ebuild,v 1.1 2011/01/31 22:29:39 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild,v 1.1 2011/08/14 11:22:30 dilfridge Exp $ -EAPI=3 +EAPI=4 +PERL_EXPORT_PHASE_FUNCTIONS=no -inherit base linux-mod autotools +inherit base linux-mod autotools perl-module DESCRIPTION="Kernel module and driver library for GPIB (IEEE 488.2) hardware" HOMEPAGE="http://linux-gpib.sourceforge.net/" @@ -16,7 +17,7 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="pcmcia static debug guile perl php python tcl doc firmware" -RDEPEND=" +COMMONDEPEND=" tcl? ( dev-lang/tcl ) guile? ( dev-scheme/guile ) perl? ( dev-lang/perl ) @@ -24,21 +25,26 @@ RDEPEND=" python? ( dev-lang/python ) firmware? ( sys-apps/fxload ) " - -DEPEND="${RDEPEND} +RDEPEND="${COMMONDEPEND}" +DEPEND="${COMMONDEPEND} sys-kernel/module-rebuild doc? ( app-text/docbook-sgml-utils ) + perl? ( virtual/perl-ExtUtils-MakeMaker ) " -PATCHES=( "${FILESDIR}/${P}-build.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-3.2.15-build.patch" + "${FILESDIR}/${PN}-3.2.16-perl.patch" +) pkg_setup () { + perl-module_pkg_setup linux-mod_pkg_setup case ${KV_MINOR} in 4) die "This version of Linux-GPIB requires a version 2.6.x of the Linux kernel. 2.4.x kernels are supported by Linux-GPIB versions 3.1.x." ;; 6) ;; - *) die "Unsupported kernel version '${KV}'." ;; + *) die "Unsupported kernel version '${KV_FULL}'." ;; esac if [ ${KV_PATCH} -lt 8 ] ; then @@ -63,30 +69,36 @@ src_configure() { $(use_enable python python-binding) \ $(use_enable tcl tcl-binding) \ $(use_enable doc documentation) \ - --with-linux-srcdir=${KV_DIR} \ - || die + --with-linux-srcdir=${KV_DIR} } src_compile() { - emake || die + set_arch_to_kernel + FIRM_DIR=/usr/share/usb + emake \ + DESTDIR=${D} \ + INSTALL_MOD_PATH=${D} \ + HOTPLUG_USB_CONF_DIR=${D}/etc/hotplug/usb \ + USB_FIRMWARE_DIR=${D}${FIRM_DIR} \ + docdir=/usr/share/doc/${PF}/html } src_install () { - + set_arch_to_kernel FIRM_DIR=/usr/share/usb - - # Here I changed the sbindir in order to install the gpib_config to /sbin, - # not /usr/sbin. This is done to enable running gpib_config from - # the modprobe.conf file: if /usr is not in the root file system, - # but a mounted partition then gpib_congig cannot be found in the moment when - # modprobe is run. - make \ + emake \ DESTDIR=${D} \ INSTALL_MOD_PATH=${D} \ HOTPLUG_USB_CONF_DIR=${D}/etc/hotplug/usb \ USB_FIRMWARE_DIR=${D}${FIRM_DIR} \ - docdir=/usr/share/doc/${PF}/html \ - install || die "install problem" + docdir=/usr/share/doc/${PF}/html install + + if use perl; then + einfo "Installing perl module" + cd "${S}/language/perl" || die + DESTDIR=${D} perl-module_src_install + cd "${S}" || die + fi echo "KERNEL==\"gpib[0-9]*\", MODE=\"0660\", GROUP=\"gpib\"" >> 99-gpib.rules insinto /etc/udev/rules.d/ @@ -105,29 +117,26 @@ src_install () { fi if use firmware ; then - - dodir "${FIRM_DIR}/agilent_8237a" insinto "${FIRM_DIR}/agilent_8237a" doins "${WORKDIR}"/gpib_firmware-2006-11-12/agilent_8237a/* - dodir "${FIRM_DIR}/ni_gpib_usb_b" insinto "${FIRM_DIR}/ni_gpib_usb_b" doins "${WORKDIR}"/gpib_firmware-2006-11-12/ni_gpib_usb_b/* - dodir "/usr/share/linux-gpib/hp_82341" insinto "/usr/share/linux-gpib/hp_82341" doins "${WORKDIR}"/gpib_firmware-2006-11-12/hp_82341/* - fi } pkg_preinst () { linux-mod_pkg_preinst + perl-module_pkg_preinst enewgroup gpib } pkg_postinst () { linux-mod_pkg_postinst + perl-module_pkg_postinst einfo "You need to run the 'gpib_config' utility to setup the driver before" einfo "you can use it. In order to do it automatically you can add to your" |