Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.7.3.ebuild,v 1.2 2012/09/18 04:45:38 nativemad Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.7.3.ebuild,v 1.2 2012/09/18 04:45:38 nativemad Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=4 |
|
|
6 |
|
6 |
inherit eutils toolchain-funcs |
7 |
inherit eutils toolchain-funcs |
7 |
|
8 |
|
8 |
DESCRIPTION="Compress PNG files without affecting image quality" |
9 |
DESCRIPTION="Compress PNG files without affecting image quality" |
Lines 28-33
Link Here
|
28 |
sed -i \ |
29 |
sed -i \ |
29 |
-e 's/^#ifdef AT_FDCWD/#if defined(AT_FDCWD) \&\& !(defined (__SVR4) \&\& defined (__sun))/' \ |
30 |
-e 's/^#ifdef AT_FDCWD/#if defined(AT_FDCWD) \&\& !(defined (__SVR4) \&\& defined (__sun))/' \ |
30 |
src/optipng/osys.c || die |
31 |
src/optipng/osys.c || die |
|
|
32 |
|
33 |
tc-export CC AR RANLIB |
31 |
} |
34 |
} |
32 |
|
35 |
|
33 |
src_configure() { |
36 |
src_configure() { |
Lines 40-55
Link Here
|
40 |
src_compile() { |
43 |
src_compile() { |
41 |
emake \ |
44 |
emake \ |
42 |
-C src/optipng \ |
45 |
-C src/optipng \ |
43 |
CC="$(tc-getCC)" \ |
|
|
44 |
GENTOO_CFLAGS="${CFLAGS}" \ |
46 |
GENTOO_CFLAGS="${CFLAGS}" \ |
45 |
GENTOO_LDFLAGS="${LDFLAGS}" \ |
47 |
GENTOO_LDFLAGS="${LDFLAGS}" |
46 |
|| die "emake failed" |
|
|
47 |
} |
48 |
} |
48 |
|
49 |
|
49 |
src_install() { |
50 |
src_install() { |
50 |
dodoc README.txt doc/*.txt || die |
51 |
dodoc README.txt doc/*.txt |
51 |
dohtml doc/*.html || die |
52 |
dohtml doc/*.html |
52 |
doman src/optipng/man/optipng.1 || die |
53 |
doman src/${PN}/man/${PN}.1 |
53 |
|
54 |
|
54 |
dobin src/optipng/optipng || die "dobin failed" |
55 |
dobin src/${PN}/${PN} |
55 |
} |
56 |
} |