/[gentoo-x86]/sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild
Gentoo

Contents of /sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun May 4 11:10:26 2008 UTC (5 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -2 lines
Remove wrong stuff from RDEPEND #220213 by Samuli Suominen.
(Portage version: 2.2_pre5)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild,v 1.5 2006/07/16 21:55:35 vapier Exp $
4
5 inherit eutils
6
7 MY_P=${P/4.1.1/4.1}
8 DESCRIPTION="Linux Kernel Crash Dumps (LKCD) Utilities"
9 HOMEPAGE="http://lkcd.sourceforge.net/ http://oss.software.ibm.com/developerworks/opensource/linux390/june2003_recommended.shtml"
10 SRC_URI="http://lkcd.sourceforge.net/download/OLD/4.1.1/lkcdutils/lkcdutils-4.1-1.src.rpm
11 mirror://gentoo/lkcdutils-4.1-savedump.tar.gz
12 mirror://gentoo/lkcdutils-4.1-dhv8.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="s390"
17 IUSE=""
18
19 DEPEND="app-arch/rpm2targz
20 dev-util/byacc"
21 RDEPEND=""
22
23 S=${WORKDIR}/${MY_P}
24
25 src_unpack() {
26 ebegin "Unpacking lkcd distribution..."
27 # This is the same as using rpm2targz then extracting 'cept that
28 # it's faster, less work, and less hard disk space. rpmoffset is
29 # provided by the rpm2targz package.
30 i="${DISTDIR}/${PN}-4.1-1.src.rpm"
31 dd ibs=`rpmoffset < ${i}` skip=1 if=$i 2>/dev/null \
32 | gzip -dc | cpio -idmu 2>/dev/null && tar xzf ${PN}-4.1-1.tar.gz
33 eend ${?}
34 assert "Failed to extract lkcd distribution..."
35
36 unpack lkcdutils-4.1-savedump.tar.gz
37 unpack lkcdutils-4.1-dhv8.tar.gz
38 cd "${S}"
39 epatch ../lkcdutils-4.1-savedump.diff
40 epatch ../lkcdutils-4.1-dhv8.diff
41 }
42
43 src_compile() {
44 ./configure \
45 --prefix=/usr \
46 --mandir=/usr/share/man \
47 --infodir=/usr/share/info \
48 --datadir=/usr/share \
49 --sysconfdir=/etc \
50 --bfd_version=2.14.90 || die "configure failed"
51
52 make || die "make failed"
53 }
54
55 src_install() {
56 make install ROOT="${D}" || die "install failed"
57 # not needed on s390
58 rm -rf "${D}"/usr/share/sial \
59 "${D}"/usr/lib/libsial.a \
60 "${D}"/usr/include/sial_api.h \
61 "${D}"/usr/include/lkcd/asm/lc_dis.h \
62 "${D}"/etc \
63 "${D}"/sbin/lkcd* \
64 "${D}"/usr/man/man/lkcd*
65 # broken configure script...
66 mv -f "${D}"/usr/man "${D}"/usr/share/man
67 }

  ViewVC Help
Powered by ViewVC 1.1.20