Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/modules/
Date: Thu, 05 Jul 2012 18:04:20
Message-Id: 1341511394.5d2972bef61cfccc536c701fd034338e280939e7.nicolasbock@gentoo
1 commit: 5d2972bef61cfccc536c701fd034338e280939e7
2 Author: Nicolas Bock <nicolasbock <AT> gmail <DOT> com>
3 AuthorDate: Thu Jul 5 18:03:14 2012 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gmail <DOT> com>
5 CommitDate: Thu Jul 5 18:03:14 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=5d2972be
7
8 Added modules-3.2.9c-r1.ebuild.
9
10 (Portage version: 2.1.10.65/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 sys-cluster/modules/ChangeLog | 5 +++
14 sys-cluster/modules/modules-3.2.9c-r1.ebuild | 51 ++++++++++++++++++++++++++
15 2 files changed, 56 insertions(+), 0 deletions(-)
16
17 diff --git a/sys-cluster/modules/ChangeLog b/sys-cluster/modules/ChangeLog
18 index 2dfd5c2..d63b6f7 100644
19 --- a/sys-cluster/modules/ChangeLog
20 +++ b/sys-cluster/modules/ChangeLog
21 @@ -2,6 +2,11 @@
22 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 +*modules-3.2.9c-r1 (05 Jul 2012)
26 +
27 + 05 Jul 2012; Nicolas Bock <nicolasbock@×××××.com> +modules-3.2.9c-r1.ebuild:
28 + Added modules-3.2.9c-r1.ebuild.
29 +
30 05 Jul 2012; Nicolas Bock <nicolasbock@×××××.com> metadata.xml:
31 update metadata
32
33
34 diff --git a/sys-cluster/modules/modules-3.2.9c-r1.ebuild b/sys-cluster/modules/modules-3.2.9c-r1.ebuild
35 new file mode 100644
36 index 0000000..16c87a0
37 --- /dev/null
38 +++ b/sys-cluster/modules/modules-3.2.9c-r1.ebuild
39 @@ -0,0 +1,51 @@
40 +# Copyright 1999-2012 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=4
45 +
46 +inherit autotools-utils
47 +
48 +DESCRIPTION="Dynamic modification of a user's environment via modulefiles."
49 +HOMEPAGE="http://modules.sourceforge.net/"
50 +SRC_URI="http://sourceforge.net/projects/modules/files/Modules/${P%[a-z]}/${P}.tar.bz2/download -> ${P}.tar.bz2"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~x86 ~amd64"
55 +IUSE="X"
56 +
57 +DEPEND="
58 + dev-lang/tcl
59 + dev-tcltk/tclx
60 + X? ( x11-libs/libX11 )
61 + "
62 +RDEPEND="${DEPEND}"
63 +
64 +S="${WORKDIR}/${P%[a-z]}"
65 +
66 +DOCS=(ChangeLog README NEWS TODO)
67 +
68 +pkg_setup() {
69 + export MODULES_PATH=/etc/Modules
70 + export MODULES_VERSION="3.2.9"
71 +}
72 +
73 +src_configure() {
74 + local myeconfargs=(
75 + $(use_with X x)
76 + --with-module-path=${MODULES_PATH}/${MODULES_VERSION}/modulefiles
77 + --with-version-path=${MODULES_PATH}/${MODULES_VERSION}/versions
78 + )
79 + autotools-utils_src_configure
80 +}
81 +
82 +src_install() {
83 + autotools-utils_src_install
84 + dosym ${MODULES_PATH}/${MODULES_VERSION} ${MODULES_PATH}/default
85 +}
86 +
87 +pkg_postinst() {
88 + elog "Add this line at the end of your bashrc:"
89 + elog "[ -e \"${MODULES_PATH}/default/init/bash\" ] && . \"${MODULES_PATH}/default/init/bash\""
90 +}