/[gentoo-x86]/sys-cluster/open-mx/open-mx-1.5.2-r1.ebuild
Gentoo

Contents of /sys-cluster/open-mx/open-mx-1.5.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 11 15:49:10 2012 UTC (16 months, 1 week ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -6 lines
Use udev.eclass for installing udev rules into correct path.

(Portage version: 2.2.0_alpha147/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/open-mx-1.5.2-r1.ebuild,v 1.1 2012/08/12 15:02:52 ssuominen Exp $
4
5 EAPI=4
6
7 inherit autotools eutils linux-mod multilib toolchain-funcs udev
8
9 DESCRIPTION="Open-MX - Myrinet Express over Generic Ethernet Hardware"
10 HOMEPAGE="http://open-mx.gforge.inria.fr/"
11 SRC_URI="http://gforge.inria.fr/frs/download.php/30245/${P}.tar.gz"
12
13 LICENSE="GPL-2 LGPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="debug modules static-libs"
17
18 DEPEND="
19 sys-apps/hwloc
20 virtual/linux-sources
21 virtual/pkgconfig"
22 RDEPEND="
23 sys-apps/hwloc
24 virtual/modutils"
25
26 MODULE_NAMES="open-mx(misc:${S}/driver/linux)"
27 BUILD_TARGETS="all"
28 BUILD_PARAMS="KDIR=${KERNEL_DIR}"
29
30 pkg_setup() {
31 einfo "You can set desired mtu by setting OPEN_MX_MTU in make.conf"
32 linux-mod_pkg_setup
33 }
34
35 src_prepare() {
36 # We still want to configure driver but dont want to build it at all
37 epatch "${FILESDIR}/open-mx-1.4.0-driver.patch"
38 # We dont want tests
39 sed -e 's:tests/mx::g' \
40 -e 's:tests::g' \
41 -i Makefile.am || die "sed failed"
42 eautoreconf
43 }
44
45 src_configure() {
46 econf \
47 --with-mtu=${OPEN_MX_MTU:-9000} \
48 --with-linux="${KERNEL_DIR}" \
49 --with-linux-release=${KV_FULL} \
50 $(use_enable static-libs static) \
51 $(use_enable debug)
52 }
53
54 src_compile() {
55 default
56 if use modules; then
57 cd "${S}/driver/linux"
58 linux-mod_src_compile || die "failed to build driver"
59 fi
60 }
61
62 src_install() {
63 default
64 use static-libs || find "${ED}" -name '*.*a' -exec rm {} +
65 # Drop init scripts
66 rm -rf "${ED}/usr/sbin" || die
67 rm "${ED}/usr/bin/omx_check"
68 # install udev rules
69 udev_dorules "${ED}/etc/open-mx/10-open-mx.rules"
70 dodoc "${ED}/usr/share/open-mx/FAQ.html"
71 # Drop misc stuff
72 rm "${ED}/etc/open-mx/10-open-mx.rules" || die
73 rm -rf "${ED}/usr/share/open-mx" || die
74 newinitd "${FILESDIR}/omxoed.initd" omxoed
75 if use modules; then
76 cd "${S}/driver/linux"
77 linux-mod_src_install || die "failed to install driver"
78 fi
79 }

  ViewVC Help
Powered by ViewVC 1.1.20