# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.4.ebuild,v 1.15 2003/06/13 07:27:55 msterret Exp $ # NOTE: For some reason, upstream has changed the naming scheme # for the tarballs to something quite lame: # strace_version-revision.tar.gz # This makes it difficult for us to deal with, because portage # is supposed to glean the package version information from the # filename of the ebuild. Grr # Thus, *MAINTAINER*: change the *revision* in the SRC_URI below # by hand. Sorry, couldn't think of a better way. # - Jon Nelson, 27 Apr 2002 S=${WORKDIR}/${P} DESCRIPTION="A usefull diagnostic, instructional, and debugging tool" SRC_URI="mirror://sourceforge/strace/strace_4.4-1.tar.gz" HOMEPAGE="http://www.wi.leidenuniv.nl/~wichert/strace/" IUSE="" SLOT="0" LICENSE="as-is" KEYWORDS="x86 ppc sparc alpha" DEPEND="virtual/glibc sys-devel/autoconf" src_compile() { # Compile fails with -O3 on but works on x86, sparc untested if [ "${ARCH}" == "sparc" -o "${ARCH}" == "" ]; then if [ -n "${CFLAGS}" ]; then CFLAGS=`echo ${CFLAGS} | sed -e 's:-O3:-O2:'` fi fi # configure is broken by default for sparc and possibly others, regen # from configure.in autoconf ./configure --prefix=/usr || die emake || die } src_install () { # Can't use make install because it is stupid and # doesn't make leading directories before trying to # install. Thus, one would have to make /usr/bin # and /usr/man/man1 (at least). # So, we do it by hand. doman strace.1 dobin strace dobin strace-graph dodoc ChangeLog COPYRIGHT CREDITS NEWS PORTING README* TODO }