diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-03-12 04:31:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-03-12 04:31:01 +0000 |
commit | d6cf7fe973d18e1fd69862e56984bb5adfbe3410 (patch) | |
tree | 29dfafca20d0d73d67029733eb50634d4ad5f0c0 /sys-devel | |
parent | add a func to automatically process patches in rpm specs (diff) | |
download | historical-d6cf7fe973d18e1fd69862e56984bb5adfbe3410.tar.gz historical-d6cf7fe973d18e1fd69862e56984bb5adfbe3410.tar.bz2 historical-d6cf7fe973d18e1fd69862e56984bb5adfbe3410.zip |
Add an ebuild for Fedora rpms (since they apply a ton of custom patches).
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gdb/ChangeLog | 8 | ||||
-rw-r--r-- | sys-devel/gdb/Manifest | 10 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-6.8.50.20090302.8.11.ebuild | 111 |
3 files changed, 124 insertions, 5 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog index 01717c197223..5dbda288c6a1 100644 --- a/sys-devel/gdb/ChangeLog +++ b/sys-devel/gdb/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-devel/gdb # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.152 2009/03/12 03:16:50 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.153 2009/03/12 04:31:01 vapier Exp $ + +*gdb-6.8.50.20090302.8.11 (12 Mar 2009) + + 12 Mar 2009; Mike Frysinger <vapier@gentoo.org> + +gdb-6.8.50.20090302.8.11.ebuild: + Add an ebuild for Fedora rpms (since they apply a ton of custom patches). *gdb-6.8-r2 (12 Mar 2009) diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest index 666833e6dfb8..05d52cc64d47 100644 --- a/sys-devel/gdb/Manifest +++ b/sys-devel/gdb/Manifest @@ -7,17 +7,19 @@ DIST gdb-6.7.1-patches-1.3.tar.bz2 109192 RMD160 412c8ef3a4dd2073bd56b01d762af8c DIST gdb-6.7.1.tar.bz2 15080950 RMD160 c5ae709aefe75094c8d08341bfb882b490ddb2a2 SHA1 4ecfb5896d511111d9a5d91e937501caa9d33ced SHA256 f98cec38420f4f1ce3da2f16e6045f086d24dfcf05996b2d74f8620691442f62 DIST gdb-6.8-patches-1.4.tar.lzma 122922 RMD160 fbe74b5dc6400389a4a7d70597b0028cbe480c93 SHA1 1c37bb223ff4b7eb7cbba249af1a216a3bf289e6 SHA256 83121b238df52e4556ea197112f6103b34965b8e1773ab1af2949baf53f8dde4 DIST gdb-6.8-patches-1.5.tar.lzma 125348 RMD160 f0f2668b709aa4f06a77b8c9a9d147273a08d73c SHA1 ff0bb2d76ca8681554eca94272ff0cde4b7d75dd SHA256 e503204a517992595b37f49e6cb115bcb1c210845197d54d974ffd53bc55647b +DIST gdb-6.8.50.20090302-8.fc11.src.rpm 17899846 RMD160 a111815281da807ac7fc823eb17188fffbc7e9c5 SHA1 38678568f4b5f1e433ee8a145ad3c4430260f185 SHA256 20cf30096ece5f8ff90c5ec4ad0ca72cb5c5f8da6ba7d3dc40e923bad68083ef DIST gdb-6.8.tar.bz2 15581509 RMD160 23fc9442290b6383ce8f943ef1eb117fa06e79fb SHA1 ba1394d59dd84a1dd3a83322bd82c799596f0bcf SHA256 eedffd586bf41cf2ae2f77e6819545d6eb1e5062052320a27332fdfaaebdf818 EBUILD gdb-6.6-r2.ebuild 1965 RMD160 dd9796c54dd064da5320890ae75b5daeb990966e SHA1 3fa16ab607a198a45df1c97a89ce014428e67cc0 SHA256 8616917d220910323743342822761795e29ee199e77fc7602ca9483e7e7d1e37 EBUILD gdb-6.7.1-r3.ebuild 2057 RMD160 c0b55697d29010498fba876759fd5761ac30da33 SHA1 97aa63d6901f8ee641f0295d4e7ec3b0f718cf50 SHA256 e19744a4814fd530cde4420f1d24a81ae61c141b7f5f8866a8ae964e0a898b12 EBUILD gdb-6.8-r1.ebuild 2189 RMD160 77072e164800b37bb1967f1248b5d068b090b8bb SHA1 3441778e4a41c54f1ee17c64eaed81052e8db90a SHA256 53f153ece09bdba48c8639e5f26b9491074f8d8360ec7d7bd458f1668e58e358 EBUILD gdb-6.8-r2.ebuild 2199 RMD160 a7ec70f024b1e251ade421693daf2c930e089868 SHA1 fe6b0845a0cbf57e9e1847d1e8f8f391b06c6f76 SHA256 34fc998e82240cc703ef55959b76124c52e54bdf47f054554af2501f498e80a0 -MISC ChangeLog 20677 RMD160 b87bfb0f931aed8df0fd8996eb41d56c17c5c58d SHA1 a9f470fe80d085c9ea8f2bcc181b0d304980e844 SHA256 0b5f852445208abf54c1252fe0db2d23317b4637a305bc8fc42e11b18b33c696 +EBUILD gdb-6.8.50.20090302.8.11.ebuild 2715 RMD160 e8e05441154b664bd436c20e8638edf6aced6bd3 SHA1 3243e52e4ab3088f81779b73037af6819330118b SHA256 ddff6236cd90ddb3acb045ebfb641bdf239b788187708a7b0f750d6f7dc4eb71 +MISC ChangeLog 20881 RMD160 bcf9e12d2d11400d43a6313780c41b016e00bdde SHA1 cd89437c6a749b0e1745e660afe9eff5db3aed10 SHA256 917c8c5420292c448ceec863443e2bed062f742916b3b9da9c2d1a57ca57143f MISC metadata.xml 251 RMD160 cb176faa89c777027383a74e60c27715c40bf23e SHA1 03fd413e01587f416f4c34afe2cf23946584100a SHA256 49bbfdebf288c2c31f6f6733c58c4092104a208f9e34533b824ec20b15915be2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (GNU/Linux) -iEYEARECAAYFAkm4fqkACgkQn/5bYzqsSmFNVACgn5UyNH14H4gvRQ4EqHijQalV -1PgAoIe96iUbqPitFA6hboWMxb3PeIsO -=T+cy +iEYEARECAAYFAkm4kAsACgkQn/5bYzqsSmFpEQCgoNSjvhOPpIHUshkLFvstZucF +PBUAoIycM0XNTB8+CamAnCdDmTzTFuNF +=NOI+ -----END PGP SIGNATURE----- diff --git a/sys-devel/gdb/gdb-6.8.50.20090302.8.11.ebuild b/sys-devel/gdb/gdb-6.8.50.20090302.8.11.ebuild new file mode 100644 index 000000000000..b104e6e1c1ad --- /dev/null +++ b/sys-devel/gdb/gdb-6.8.50.20090302.8.11.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.8.50.20090302.8.11.ebuild,v 1.1 2009/03/12 04:31:01 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 + +if [[ ${PV} == *.*.*.*.*.* ]] ; then + inherit versionator rpm + # fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm + gvcr() { get_version_component_range "$@"; } + MY_PV=$(gvcr 1-4) + RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm" +else + MY_PV=${PV} + RPM= +fi + +PATCH_VER="" +DESCRIPTION="GNU debugger" +HOMEPAGE="http://sources.redhat.com/gdb/" +if [[ -n ${RPM} ]] ; then + SRC_URI="http://mirrors.kernel.org/fedora/development/source/SRPMS/${RPM}" +else + SRC_URI="http://ftp.gnu.org/gnu/gdb/${P}.tar.bz2 + ftp://sources.redhat.com/pub/gdb/releases/${P}.tar.bz2" +fi +SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma}" + +LICENSE="GPL-2 LGPL-2" +[[ ${CTARGET} != ${CHOST} ]] \ + && SLOT="${CTARGET}" \ + || SLOT="0" +KEYWORDS="" +IUSE="multitarget nls test vanilla" + +RDEPEND=">=sys-libs/ncurses-5.2-r2 + sys-libs/readline" +DEPEND="${RDEPEND} + app-arch/lzma-utils + test? ( dev-util/dejagnu ) + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${PN}-${MY_PV} + +src_unpack() { + if [[ -n ${RPM} ]] ; then + rpm_src_unpack + cd "${S}" + rpm_spec_epatch "${WORKDIR}"/gdb.spec + else + unpack ${A} + fi + cd "${S}" + if [[ -n ${PATCH_VER} ]] ; then + use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch + fi + strip-linguas -u bfd/po opcodes/po +} + +src_compile() { + strip-unsupported-flags + econf \ + --disable-werror \ + $(has_version '=sys-libs/readline-5*' && echo --with-system-readline) \ + $(use_enable nls) \ + $(use multitarget && echo --enable-targets=all) \ + || die + emake || die +} + +src_test() { + emake 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 +} |