Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/open-mx: open-mx-1.5.2.ebuild ChangeLog open-mx-1.5.0.ebuild
Date: Sun, 29 Apr 2012 12:40:10
Message-Id: 20120429123955.23C562004B@flycatcher.gentoo.org
1 alexxy 12/04/29 12:39:55
2
3 Modified: ChangeLog
4 Added: open-mx-1.5.2.ebuild
5 Removed: open-mx-1.5.0.ebuild
6 Log:
7 [sys-cluster/open-mx] Version bump, also fix bug #387809
8
9 (Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.4 sys-cluster/open-mx/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/ChangeLog?rev=1.4&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/ChangeLog?rev=1.4&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/ChangeLog?r1=1.3&r2=1.4
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/ChangeLog,v
21 retrieving revision 1.3
22 retrieving revision 1.4
23 diff -u -r1.3 -r1.4
24 --- ChangeLog 25 Feb 2012 06:29:00 -0000 1.3
25 +++ ChangeLog 29 Apr 2012 12:39:54 -0000 1.4
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-cluster/open-mx
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/ChangeLog,v 1.3 2012/02/25 06:29:00 robbat2 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/ChangeLog,v 1.4 2012/04/29 12:39:54 alexxy Exp $
31 +
32 +*open-mx-1.5.2 (29 Apr 2012)
33 +
34 + 29 Apr 2012; Alexey Shvetsov <alexxy@g.o> +open-mx-1.5.2.ebuild,
35 + -open-mx-1.5.0.ebuild:
36 + [sys-cluster/open-mx] Version bump, also fix bug #387809
37
38 25 Feb 2012; Robin H. Johnson <robbat2@g.o> open-mx-1.5.0.ebuild:
39 Bug #405687: Depend on virtual/modutils instead of sys-apps/module-init-tools.
40
41
42
43 1.1 sys-cluster/open-mx/open-mx-1.5.2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/open-mx-1.5.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/open-mx-1.5.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: open-mx-1.5.2.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/open-mx-1.5.2.ebuild,v 1.1 2012/04/29 12:39:54 alexxy Exp $
53
54 EAPI=4
55
56 inherit autotools linux-mod multilib
57
58 DESCRIPTION="Open-MX - Myrinet Express over Generic Ethernet Hardware"
59 HOMEPAGE="http://open-mx.gforge.inria.fr/"
60 SRC_URI="http://gforge.inria.fr/frs/download.php/30245/${P}.tar.gz"
61
62 LICENSE="GPL-2 LGPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="debug modules static-libs"
66
67 DEPEND="
68 sys-apps/hwloc
69 virtual/linux-sources"
70 RDEPEND="
71 sys-apps/hwloc
72 virtual/modutils"
73
74 MODULE_NAMES="open-mx(misc:${S}/driver/linux)"
75 BUILD_TARGETS="all"
76 BUILD_PARAMS="KDIR=${KERNEL_DIR}"
77
78 pkg_setup() {
79 einfo "You can set desired mtu by setting OPEN_MX_MTU in make.conf"
80 linux-mod_pkg_setup
81 }
82
83 src_prepare() {
84 # We still want to configure driver but dont want to build it at all
85 epatch "${FILESDIR}/open-mx-1.4.0-driver.patch"
86 # We dont want tests
87 sed -e 's:tests/mx::g' \
88 -e 's:tests::g' \
89 -i Makefile.am || die "sed failed"
90 eautoreconf
91 }
92
93 src_configure() {
94 econf \
95 --with-mtu=${OPEN_MX_MTU:-9000} \
96 --with-linux="${KERNEL_DIR}" \
97 --with-linux-release=${KV_FULL} \
98 $(use_enable static-libs static) \
99 $(use_enable debug)
100 }
101
102 src_compile() {
103 default
104 if use modules; then
105 cd "${S}/driver/linux"
106 linux-mod_src_compile || die "failed to build driver"
107 fi
108 }
109
110 src_install() {
111 default
112 use static-libs || find "${ED}" -name '*.*a' -exec rm {} +
113 # Drop init scripts
114 rm -rf "${ED}/usr/sbin" || die
115 rm "${ED}/usr/bin/omx_check"
116 # install udev rules
117 insinto /etc/udev/rules.d
118 doins "${ED}/etc/open-mx/10-open-mx.rules"
119 dodoc "${ED}/usr/share/open-mx/FAQ.html"
120 # Drop misc stuff
121 rm "${ED}/etc/open-mx/10-open-mx.rules" || die
122 rm -rf "${ED}/usr/share/open-mx" || die
123 newinitd "${FILESDIR}/omxoed.initd" omxoed
124 if use modules; then
125 cd "${S}/driver/linux"
126 linux-mod_src_install || die "failed to install driver"
127 fi
128 }