diff options
author | George Shapovalov <george@gentoo.org> | 2008-12-27 12:26:15 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2008-12-27 12:26:15 +0000 |
commit | 72623c729ca25993438548a9d6b26a2df65e47df (patch) | |
tree | 06009e720c0f013b7ca6fff61d5cf0c1eb60c8ee /dev-lang/gpc | |
parent | Version bump for prefix (diff) | |
download | gentoo-2-72623c729ca25993438548a9d6b26a2df65e47df.tar.gz gentoo-2-72623c729ca25993438548a9d6b26a2df65e47df.tar.bz2 gentoo-2-72623c729ca25993438548a9d6b26a2df65e47df.zip |
forcing env-update and added elog to ask user to source /etc/profile (#244314)
(Portage version: 2.2_rc18/cvs/Linux 2.6.27-gentoo-r6 x86_64)
Diffstat (limited to 'dev-lang/gpc')
-rw-r--r-- | dev-lang/gpc/ChangeLog | 6 | ||||
-rw-r--r-- | dev-lang/gpc/gpc-20051104.ebuild | 30 |
2 files changed, 25 insertions, 11 deletions
diff --git a/dev-lang/gpc/ChangeLog b/dev-lang/gpc/ChangeLog index 282d3787b91a..9047e5d57f25 100644 --- a/dev-lang/gpc/ChangeLog +++ b/dev-lang/gpc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-lang/gpc # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gpc/ChangeLog,v 1.21 2008/12/21 02:18:51 darkside Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gpc/ChangeLog,v 1.22 2008/12/27 12:26:15 george Exp $ + + 27 Dec 2008; George Shapovalov <george@gentoo.org> gpc-20051104.ebuild: + forcing env-update and added elog to ask user to source /etc/profile + (#244314) 21 Dec 2008; Jeremy Olexa <darkside@gentoo.org> gpc-20051104.ebuild: (non maintainer commit) add amd64 specific configure flag to allow diff --git a/dev-lang/gpc/gpc-20051104.ebuild b/dev-lang/gpc/gpc-20051104.ebuild index 1c2419da99d0..5bd12882cf8d 100644 --- a/dev-lang/gpc/gpc-20051104.ebuild +++ b/dev-lang/gpc/gpc-20051104.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gpc/gpc-20051104.ebuild,v 1.5 2008/12/21 02:18:51 darkside Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gpc/gpc-20051104.ebuild,v 1.6 2008/12/27 12:26:15 george Exp $ inherit eutils flag-o-matic versionator @@ -81,7 +81,7 @@ src_compile() { einfo "Configuring GCC for GPC build..." # addwrite "/dev/zero" - ${S}/configure \ + "${S}"/configure \ --prefix=${PREFIX} \ --libdir="${LIBPATH}" \ --libexecdir="${LIBEXECPATH}" \ @@ -102,11 +102,11 @@ src_compile() { --with-local-prefix=${PREFIX}/local \ ${myconf} || die "configure failed" - touch ${S}/gcc/c-gperf.h + touch "${S}"/gcc/c-gperf.h einfo "Building GPC..." # Fix for our libtool-portage.patc - emake -j1 LIBPATH="${LIBPATH}" bootstrap || die "make failed" + MAKEOPTS="${MAKEOPTS} -j1" emake LIBPATH="${LIBPATH}" bootstrap || die "make failed" } src_install () { @@ -120,7 +120,7 @@ src_install () { einfo "Installing GPC..." cd ${BUILDDIR}/gcc - make DESTDIR=${D} \ + make DESTDIR="${D}" \ pascal.install-with-gcc || die # gcc insists on installing libs in its own place @@ -138,15 +138,25 @@ src_install () { # Install documentation. dodir /usr/share/doc/${PF} - mv ${D}${PREFIX}/doc/gpc/* ${D}/usr/share/doc/${PF} + mv "${D}${PREFIX}"/doc/gpc/* "${D}"/usr/share/doc/${PF} prepalldocs # final cleanups - rmdir ${D}${PREFIX}/include ${D}/${PREFIX}/share/man/man7 - rm -rf ${D}${PREFIX}/doc + rmdir "${D}${PREFIX}"/include "${D}/${PREFIX}"/share/man/man7 + rm -rf "${D}${PREFIX}"/doc # create an env.d entry dodir /etc/env.d - echo "PATH=${LIBEXECPATH}" > ${D}etc/env.d/56gpc - echo "ROOTPATH=${LIBEXECPATH}" >> ${D}etc/env.d/56gpc + echo "PATH=${LIBEXECPATH}" > "${D}"etc/env.d/56gpc + echo "ROOTPATH=${LIBEXECPATH}" >> "${D}"etc/env.d/56gpc +} + +pkg_postinst () +{ + # need to update environment, as we have installed new env.d file + env-update + einfo + elog "the environment has been set to use gpc," + elog "please don't forget to source /etc/profile" + einfo } |