From: "Justin Lecher (jlec)" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/tcl: ChangeLog tcl-8.5.10.ebuild
Date: Fri, 2 Mar 2012 17:16:21 +0000 (UTC) [thread overview]
Message-ID: <20120302171621.3CBF42004B@flycatcher.gentoo.org> (raw)
jlec 12/03/02 17:16:21
Modified: ChangeLog tcl-8.5.10.ebuild
Log:
Add missing dies, remove unnessecary dies, handle static-libs
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
Revision Changes Path
1.144 dev-lang/tcl/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.144&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.144&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?r1=1.143&r2=1.144
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -r1.143 -r1.144
--- ChangeLog 2 Mar 2012 15:30:44 -0000 1.143
+++ ChangeLog 2 Mar 2012 17:16:21 -0000 1.144
@@ -1,6 +1,9 @@
# ChangeLog for dev-lang/tcl
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.143 2012/03/02 15:30:44 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.144 2012/03/02 17:16:21 jlec Exp $
+
+ 02 Mar 2012; Justin Lecher <jlec@gentoo.org> tcl-8.5.10.ebuild:
+ Add missing dies, remove unnessecary dies, handle static-libs
02 Mar 2012; Justin Lecher <jlec@gentoo.org> +tcl-8.5.11.ebuild:
Version Bump
1.4 dev-lang/tcl/tcl-8.5.10.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/tcl-8.5.10.ebuild?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/tcl-8.5.10.ebuild?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/tcl-8.5.10.ebuild?r1=1.3&r2=1.4
Index: tcl-8.5.10.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.10.ebuild,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tcl-8.5.10.ebuild 4 Jan 2012 20:44:37 -0000 1.3
+++ tcl-8.5.10.ebuild 2 Mar 2012 17:16:21 -0000 1.4
@@ -1,8 +1,8 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.10.ebuild,v 1.3 2012/01/04 20:44:37 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.10.ebuild,v 1.4 2012/03/02 17:16:21 jlec Exp $
-EAPI="3"
+EAPI=4
inherit autotools eutils flag-o-matic multilib toolchain-funcs
@@ -15,19 +15,19 @@
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris"
-IUSE="debug threads"
+IUSE="debug static-libs threads"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if use threads ; then
- ewarn ""
+ echo
ewarn "PLEASE NOTE: You are compiling ${P} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
- ewarn ""
+ echo
fi
}
@@ -59,8 +59,7 @@
}
src_compile() {
- cd "${S}"/unix
- emake || die
+ cd "${S}"/unix && emake
}
src_install() {
@@ -69,7 +68,7 @@
v1=${PV%.*}
cd "${S}"/unix
- S= emake DESTDIR="${D}" install || die
+ S= emake DESTDIR="${D}" install
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
@@ -83,34 +82,38 @@
[[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] && sed -i \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
- "${ED}"/usr/${mylibdir}/tclConfig.sh
+ "${ED}"/usr/${mylibdir}/tclConfig.sh || die
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
- doins "${S}"/unix/*.h || die
+ doins "${S}"/unix/*.h
insinto /usr/${mylibdir}/tcl${v1}/include/generic
- doins "${S}"/generic/*.h || die
- rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
- rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
- rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
+ doins "${S}"/generic/*.h
+ rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h || die
+ rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h || die
+ rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h || die
# install symlink for libraries
- dosym libtcl${v1}$(get_libname) /usr/${mylibdir}/libtcl$(get_libname) || die
- dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a || die
+ dosym libtcl${v1}$(get_libname) /usr/${mylibdir}/libtcl$(get_libname)
+ if use static-libs; then
+ dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
+ else
+ rm -f "${ED}"/usr/${mylibdir}/*.a || die
+ fi
- dosym tclsh${v1} /usr/bin/tclsh || die
+ dosym tclsh${v1} /usr/bin/tclsh
cd "${S}"
- dodoc ChangeLog* README changes || die
+ dodoc ChangeLog* README changes
}
pkg_postinst() {
- ewarn
+ echo
ewarn "If you're upgrading from <dev-lang/tcl-8.5, you must recompile the other"
ewarn "packages on your system that link with tcl after the upgrade"
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
- ewarn
+ echo
}
next reply other threads:[~2012-03-02 17:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-02 17:16 Justin Lecher (jlec) [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-03-05 10:35 [gentoo-commits] gentoo-x86 commit in dev-lang/tcl: ChangeLog tcl-8.5.10.ebuild Agostino Sarubbo (ago)
2012-03-02 19:39 Brent Baude (ranger)
2012-01-04 20:44 Brent Baude (ranger)
2011-10-04 16:59 Justin Lecher (jlec)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120302171621.3CBF42004B@flycatcher.gentoo.org \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox