diff options
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r-- | sys-devel/gdb/ChangeLog | 7 | ||||
-rw-r--r-- | sys-devel/gdb/files/digest-gdb-6.7.1-r1 | 6 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-6.7.1-r1.ebuild | 82 |
3 files changed, 94 insertions, 1 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog index f4200eb052ff..bedfa8347f91 100644 --- a/sys-devel/gdb/ChangeLog +++ b/sys-devel/gdb/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-devel/gdb # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.128 2007/12/16 17:12:53 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.129 2007/12/29 21:09:18 vapier Exp $ + +*gdb-6.7.1-r1 (29 Dec 2007) + + 29 Dec 2007; Mike Frysinger <vapier@gentoo.org> +gdb-6.7.1-r1.ebuild: + Add DUEL support #199987 by Sergei Golubchik. 16 Dec 2007; Markus Rothe <corsair@gentoo.org> gdb-6.7.1.ebuild: Stable on ppc64; bug #202246 diff --git a/sys-devel/gdb/files/digest-gdb-6.7.1-r1 b/sys-devel/gdb/files/digest-gdb-6.7.1-r1 new file mode 100644 index 000000000000..aa351ff2cffd --- /dev/null +++ b/sys-devel/gdb/files/digest-gdb-6.7.1-r1 @@ -0,0 +1,6 @@ +MD5 f0e3f0014cf1f619fd6d9eeca340deed gdb-6.7.1-patches-1.1.tar.bz2 90386 +RMD160 bd1fb8eab3c21accd625f7cf2fd84c2cacaa6c30 gdb-6.7.1-patches-1.1.tar.bz2 90386 +SHA256 b67ae47949e15ec70850709af670c5db5033ab32e8e6583a61418cc6cc2520c4 gdb-6.7.1-patches-1.1.tar.bz2 90386 +MD5 30a6bf36eded4ae5a152d7d71b86dc14 gdb-6.7.1.tar.bz2 15080950 +RMD160 c5ae709aefe75094c8d08341bfb882b490ddb2a2 gdb-6.7.1.tar.bz2 15080950 +SHA256 f98cec38420f4f1ce3da2f16e6045f086d24dfcf05996b2d74f8620691442f62 gdb-6.7.1.tar.bz2 15080950 diff --git a/sys-devel/gdb/gdb-6.7.1-r1.ebuild b/sys-devel/gdb/gdb-6.7.1-r1.ebuild new file mode 100644 index 000000000000..ecc11003ead7 --- /dev/null +++ b/sys-devel/gdb/gdb-6.7.1-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.7.1-r1.ebuild,v 1.1 2007/12/29 21:09:18 vapier Exp $ + +inherit flag-o-matic eutils + +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + export CTARGET=${CATEGORY/cross-} + fi +fi + +PATCH_VER="1.1" +DESCRIPTION="GNU debugger" +HOMEPAGE="http://sources.redhat.com/gdb/" +SRC_URI="http://ftp.gnu.org/gnu/gdb/${P}.tar.bz2 + ftp://sources.redhat.com/pub/gdb/releases/${P}.tar.bz2 + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2" + +LICENSE="GPL-2 LGPL-2" +[[ ${CTARGET} != ${CHOST} ]] \ + && SLOT="${CTARGET}" \ + || SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" +IUSE="nls test vanilla" + +RDEPEND=">=sys-libs/ncurses-5.2-r2" +DEPEND="${RDEPEND} + test? ( dev-util/dejagnu ) + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch + strip-linguas -u bfd/po opcodes/po +} + +src_compile() { + replace-flags -O? -O2 + econf \ + --disable-werror \ + $(use_enable nls) \ + || die + emake || die +} + +src_test() { + make check || ewarn "tests failed" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \ + install || die + rm -r "${D}"/nukeme || die + + # Don't install docs when building a cross-gdb + if [[ ${CTARGET} != ${CHOST} ]] ; then + rm -r "${D}"/usr/share + return 0 + fi + + dodoc README + docinto gdb + dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ + gdb/NEWS gdb/ChangeLog gdb/PROBLEMS + docinto sim + dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING + + dodoc "${WORKDIR}"/extra/gdbinit.sample + + # Remove shared info pages + rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info* +} + +pkg_postinst() { + # portage sucks and doesnt unmerge files in /etc + rm -vf "${ROOT}"/etc/skel/.gdbinit +} |