summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik (Xarthisius) <xarthisius@gentoo.org>2012-05-28 19:33:47 +0200
committerKacper Kowalik (Xarthisius) <xarthisius@gentoo.org>2012-05-28 19:33:47 +0200
commitf47c0e01a3dc22d6fbcf5c7a3df5ce4ca1be1cc8 (patch)
tree0561686dec81a845ec6a830cfb8e6c111b7d2b96 /app-admin/modules/modules-3.2.9c.ebuild
parent[dev-python/pygpgme] initial import, work in progress (diff)
downloadxarthisius-f47c0e01a3dc22d6fbcf5c7a3df5ce4ca1be1cc8.tar.gz
xarthisius-f47c0e01a3dc22d6fbcf5c7a3df5ce4ca1be1cc8.tar.bz2
xarthisius-f47c0e01a3dc22d6fbcf5c7a3df5ce4ca1be1cc8.zip
[app-admin/python-updater] add git live version
Diffstat (limited to 'app-admin/modules/modules-3.2.9c.ebuild')
-rw-r--r--app-admin/modules/modules-3.2.9c.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/app-admin/modules/modules-3.2.9c.ebuild b/app-admin/modules/modules-3.2.9c.ebuild
new file mode 100644
index 0000000..2a60dd7
--- /dev/null
+++ b/app-admin/modules/modules-3.2.9c.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit versionator
+
+MY_PV=$(get_version_component_range 1-3)
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Allows for dynamic modification of a user's environment via modulefiles"
+HOMEPAGE="http://modules.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/tcl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ export _modules_path=/var/lib/Modules/${MY_PV}
+}
+
+src_configure() {
+ # unfortunately {module,version}-path don't work properly
+ ./configure \
+ --prefix=/var/lib \
+ --mandir=/usr/share \
+ --with-module-path=${_modules_path}/modulefiles \
+ --with-version-path=${_modules_path}/versions \
+ --disable-use-default \
+ ${EXTRA_ECONF} || die
+}
+
+src_install() {
+ default
+ dosym ${_modules_path} /var/lib/Modules/default
+}
+
+pkg_postinst() {
+ echo
+ einfo "Add this line at the end of /etc/bash/bashrc:"
+ einfo " [ -e \"${_modules_path}/init/bash\" ] && source \"${_modules_path}/init/bash\""
+ echo
+}