diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-01-22 22:49:38 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-01-22 22:49:38 +0000 |
commit | f508fb5a8c609de3fad3e82b7c0eca378ea4c1bd (patch) | |
tree | 282883c1b64bd080898b8062cd6247456d6c2ba2 /sys-devel | |
parent | Version bump. (diff) | |
download | gentoo-2-f508fb5a8c609de3fad3e82b7c0eca378ea4c1bd.tar.gz gentoo-2-f508fb5a8c609de3fad3e82b7c0eca378ea4c1bd.tar.bz2 gentoo-2-f508fb5a8c609de3fad3e82b7c0eca378ea4c1bd.zip |
Use system libreadline rather than building an internal copy. Closes bug #206947.
(Portage version: 2.1.4)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gdb/ChangeLog | 10 | ||||
-rw-r--r-- | sys-devel/gdb/files/digest-gdb-6.7.1-r2 | 6 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-6.7.1-r2.ebuild | 84 |
3 files changed, 98 insertions, 2 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog index c7c004fdac4d..6c1714806607 100644 --- a/sys-devel/gdb/ChangeLog +++ b/sys-devel/gdb/ChangeLog @@ -1,6 +1,12 @@ # 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.130 2007/12/30 20:14:22 vapier Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.131 2008/01/22 22:49:38 flameeyes Exp $ + +*gdb-6.7.1-r2 (22 Jan 2008) + + 22 Jan 2008; Diego Pettenò <flameeyes@gentoo.org> +gdb-6.7.1-r2.ebuild: + Use system libreadline rather than building an internal copy. Closes bug + #206947. 30 Dec 2007; Mike Frysinger <vapier@gentoo.org> gdb-6.7.1-r1.ebuild: Fixup duel build code a bit as well as the patch itself. diff --git a/sys-devel/gdb/files/digest-gdb-6.7.1-r2 b/sys-devel/gdb/files/digest-gdb-6.7.1-r2 new file mode 100644 index 000000000000..860c26225279 --- /dev/null +++ b/sys-devel/gdb/files/digest-gdb-6.7.1-r2 @@ -0,0 +1,6 @@ +MD5 3eb97807c0837367ec70defb8bbddc46 gdb-6.7.1-patches-1.2.tar.bz2 108825 +RMD160 fbc3f10cae8decabc863c82d13d714e84bfa8960 gdb-6.7.1-patches-1.2.tar.bz2 108825 +SHA256 3be9b6f2a6e1ec849051863fe0403c37039bed24956bfc7b6a021aada4798dcf gdb-6.7.1-patches-1.2.tar.bz2 108825 +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-r2.ebuild b/sys-devel/gdb/gdb-6.7.1-r2.ebuild new file mode 100644 index 000000000000..d2b34aa3a7bd --- /dev/null +++ b/sys-devel/gdb/gdb-6.7.1-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2008 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-r2.ebuild,v 1.1 2008/01/22 22:49:38 flameeyes 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.2" +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 + sys-libs/readline" +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 \ + --with-system-readline \ + $(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 +} |