blob: 93c42166864c47659e40f3fb6d081d2caab0721e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/ppmd/ppmd-9.1_p8.ebuild,v 1.7 2005/01/01 11:54:40 eradicator Exp $
inherit eutils flag-o-matic
PATCHV="${P##*_p}"
MY_P="${P%%_*}"
MY_P="${MY_P/-/_}"
MY_S=${PN}-i1
S=${WORKDIR}/${MY_S}
DESCRIPTION="PPM based compressor -- better behaved than bzip2"
HOMEPAGE="http://http.us.debian.org/debian/pool/main/p/ppmd/"
SRC_URI="http://http.us.debian.org/debian/pool/main/p/ppmd/${MY_P}.orig.tar.gz
http://http.us.debian.org/debian/pool/main/p/ppmd/${MY_P}-${PATCHV}.diff.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc sparc x86"
IUSE=""
DEPEND=">=sys-apps/sed-4
app-arch/gzip
sys-devel/patch
sys-devel/autoconf
sys-devel/automake"
RDEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
epatch ${WORKDIR}/${MY_P}-${PATCHV}.diff
chmod +x ${S}/configure
sed -i 3q Makefile.am
autoconf --force || die
}
src_compile() {
# replace-flags "-O3" "-O2"
# see bug #44529 if this starts producing goofy executables
# if it pops up again, re-enable replace-flags.
append-flags "-fno-inline-functions -fno-exceptions -fno-rtti"
econf || die
emake || die
}
src_install() {
einstall || die
doman ${S}/PPMd.1
dodoc ${S}/read_me.txt
}
|