diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-11 03:53:16 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-10-11 03:53:16 +0000 |
commit | c04156fa38968e1bd7a33390122503a69c240fee (patch) | |
tree | 2efec000a203de04d602407812068533874aff8a /dev-util | |
parent | Retroactively add credits for bug I've missed. (diff) | |
download | gentoo-2-c04156fa38968e1bd7a33390122503a69c240fee.tar.gz gentoo-2-c04156fa38968e1bd7a33390122503a69c240fee.tar.bz2 gentoo-2-c04156fa38968e1bd7a33390122503a69c240fee.zip |
Version bump.
(Portage version: 2.2.0_alpha65/cvs/Linux x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/debugedit/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/debugedit/debugedit-5.3.5.ebuild | 35 | ||||
-rw-r--r-- | dev-util/debugedit/files/Makefile | 11 | ||||
-rwxr-xr-x | dev-util/debugedit/files/update.sh | 71 |
4 files changed, 125 insertions, 2 deletions
diff --git a/dev-util/debugedit/ChangeLog b/dev-util/debugedit/ChangeLog index 3dd038043824..3576450f0a67 100644 --- a/dev-util/debugedit/ChangeLog +++ b/dev-util/debugedit/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/debugedit -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/debugedit/ChangeLog,v 1.22 2009/11/14 09:14:33 swegener Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/debugedit/ChangeLog,v 1.23 2011/10/11 03:53:15 vapier Exp $ + +*debugedit-5.3.5 (11 Oct 2011) + + 11 Oct 2011; Mike Frysinger <vapier@gentoo.org> +debugedit-5.3.5.ebuild, + +files/Makefile, +files/update.sh: + Version bump. *debugedit-5.1.9 (14 Nov 2009) diff --git a/dev-util/debugedit/debugedit-5.3.5.ebuild b/dev-util/debugedit/debugedit-5.3.5.ebuild new file mode 100644 index 000000000000..1fa1cdae4ee0 --- /dev/null +++ b/dev-util/debugedit/debugedit-5.3.5.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/debugedit/debugedit-5.3.5.ebuild,v 1.1 2011/10/11 03:53:15 vapier Exp $ + +# To recreate this tarball, just grab latest rpm5 release: +# http://rpm5.org/files/rpm/ +# The files are in tools/ +# Or see $FILESDIR/update.sh + +EAPI="2" + +inherit toolchain-funcs + +DESCRIPTION="standalone debugedit taken from rpm" +HOMEPAGE="http://www.rpm5.org/" +SRC_URI="http://dev.gentoo.org/~swegener/distfiles/${P}.tar.bz2 + http://dev.gentoo.org/~vapier/distfiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +DEPEND="dev-libs/popt + dev-libs/elfutils + dev-libs/beecrypt" +RDEPEND="${DEPEND}" + +src_compile() { + emake CC="$(tc-getCC)" || die +} + +src_install() { + dobin debugedit || die +} diff --git a/dev-util/debugedit/files/Makefile b/dev-util/debugedit/files/Makefile new file mode 100644 index 000000000000..946a12865f64 --- /dev/null +++ b/dev-util/debugedit/files/Makefile @@ -0,0 +1,11 @@ +CPPFLAGS += -I. +LDLIBS = -lelf -lpopt -lbeecrypt + +all: debugedit + +debugedit: debugedit.o hashtab.o + +clean: + rm -f *.o debugedit + +.PHONY: clean diff --git a/dev-util/debugedit/files/update.sh b/dev-util/debugedit/files/update.sh new file mode 100755 index 000000000000..db5495d41eb2 --- /dev/null +++ b/dev-util/debugedit/files/update.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +DISTDIR=/usr/portage/distfiles +PN=debugedit + +. /etc/init.d/functions.sh + +set -e + +einfo "Getting updated index" +rm -f index.html +wget -q http://rpm5.org/ + +PV=$(sed -n '/Production:/{n;s:.*RPM ::;s:<.*::;p;q}' index.html) +einfo "Latest upstream version: ${PV}" +rm -f index.html + +P="${PN}-${PV}" +A=${P}.tar.bz2 + +e=${P}.ebuild +if [[ -e ../${e} ]] ; then + einfo "All up to date" + exit 0 +fi + +#tf=${DISTDIR}/${A} +#if [[ ! -e ${tf} ]] ; then +# einfo "Cannot find ${tf}" +# exit 0 +#fi + +einfo "Fetching latest rpm tarball" +r=rpm-${PV} +wget -nv http://rpm5.org/files/rpm/rpm-${PV%.*}/${r}.tar.gz -P ${DISTDIR} -c + +einfo "Unpacking ${r}" +rm -rf ${r} +tar xf ${DISTDIR}/${r}.tar.gz + +einfo "Creating ${P}" +rm -rf ${P} +mkdir ${P} +cp Makefile ${r}/tools/{hashtab.?,debugedit.c} ${P}/ +pushd ${P} >/dev/null +more=true +while ${more} ; do + more=false + for h in $(grep '#include' *.[ch] | awk '{print $NF}' | sed 's:[<>"]::g') ; do + [[ ${h} == */* ]] && continue + rh=$(find ../${r} -name ${h##*/}) + if [[ -n ${rh} ]] && [[ ! -e ${rh##*/} ]] ; then + # don't copy glibc includes + if ! grep -qs 'This file is part of the GNU C Library' ${rh} ; then + cp ${rh} ./ + more=true + fi + fi + done +done +popd >/dev/null +tar jcf ${A} ${P} + +einfo "Testing build" +pushd ${P} >/dev/null +make -s +popd >/dev/null + +einfo "Cleaning up" +rm -rf ${P} ${r} +du -b ${A} |