|
@@ -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
|