Ver código fonte

correct modules

LDA010 7 anos atrás
pai
commit
4a0bab3908

+ 7 - 8
science/sys-cluster/modules/modules-3.2.10-r2.ebuild

@@ -27,7 +27,7 @@ S="${WORKDIR}/${P%[a-z]}"
 DOCS=(ChangeLog README NEWS TODO)
 
 PATCHES=(
-	"${FILESDIR}/${P}-errorline.patch"
+
 	"${FILESDIR}/${P}-bindir.patch"
 	"${FILESDIR}/${P}-versioning.patch"
 	"${FILESDIR}/${P}-clear.patch"
@@ -35,16 +35,17 @@ PATCHES=(
 )
 
 src_prepare() {
-	default
 
-	#has_version ">=dev-lang/tcl-8.6.0" && epatch "${FILESDIR}"/${P}-errorline.patch
+if has_version ">=dev-lang/tcl-8.6.0"; then
+	PATCHES="${FILESDIR}/${P}-errorline.patch"
+fi
 
+	# Do patching  
+	default
 	sed -e "s:@EPREFIX@:${EPREFIX}:g" \
 		"${FILESDIR}"/modules.sh.in > modules.sh || die
 
-	AT_M4DIR="."
 	eautoreconf
-
 }
 
 src_configure() {
@@ -57,13 +58,11 @@ src_configure() {
 		--with-tcl="${EPREFIX}/usr/$(get_libdir)"
 		$(use_with X x)
 	)
-	econf ${myeconfargs}
-
+	econf "${myeconfargs[@]}"
 }
 
 src_install() {
 
-	echo "I am in install"
 	default
 
 	insinto /etc/profile.d