/[gentoo-x86]/media-libs/libpng/libpng-1.2.18-r1.ebuild
Gentoo

Diff of /media-libs/libpng/libpng-1.2.18-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
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-libs/libpng/Attic/libpng-1.2.18-r1.ebuild,v 1.10 2007/09/20 01:20:14 ranger Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/Attic/libpng-1.2.18-r1.ebuild,v 1.11 2007/10/12 14:50:11 vapier Exp $
4 4
5inherit libtool multilib eutils 5inherit libtool multilib eutils
6 6
7DESCRIPTION="Portable Network Graphics library" 7DESCRIPTION="Portable Network Graphics library"
8HOMEPAGE="http://www.libpng.org/" 8HOMEPAGE="http://www.libpng.org/"
9SRC_URI="mirror://sourceforge/libpng/${P}.tar.bz2 9SRC_URI="mirror://sourceforge/libpng/${P}.tar.bz2"
10 doc? ( http://www.libpng.org/pub/png/libpng-manual.txt )"
11 10
12LICENSE="as-is" 11LICENSE="as-is"
13SLOT="1.2" 12SLOT="1.2"
14KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" 13KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
15IUSE="doc" 14IUSE=""
16 15
17DEPEND="sys-libs/zlib" 16DEPEND="sys-libs/zlib"
18 17
19src_unpack() { 18src_unpack() {
20 unpack ${A} 19 unpack ${A}
21 cd "${S}" 20 cd "${S}"
22 use doc && cp "${WORKDIR}"/${PN}-manual.txt .
23 epatch "${FILESDIR}"/1.2.7-gentoo.diff 21 epatch "${FILESDIR}"/1.2.7-gentoo.diff
24 epatch "${FILESDIR}"/${P}-gray.patch #181318 22 epatch "${FILESDIR}"/${P}-gray.patch #181318
25 23
26 # So we get sane .so versioning on FreeBSD 24 # So we get sane .so versioning on FreeBSD
27 elibtoolize 25 elibtoolize
28} 26}
29 27
30src_install() { 28src_install() {
31 emake DESTDIR="${D}" install || die 29 emake DESTDIR="${D}" install || die
32 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO 30 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
33 use doc && dodoc libpng-manual.txt
34} 31}
35 32
36pkg_postinst() { 33pkg_postinst() {
37 # the libpng authors really screwed around between 1.2.1 and 1.2.3 34 # the libpng authors really screwed around between 1.2.1 and 1.2.3
38 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then 35 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20