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

Contents of /media-libs/libpng/libpng-1.4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Jan 29 19:14:51 2011 UTC (3 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
old, and punt the gawdawful update script

(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.4.3.ebuild,v 1.11 2010/10/26 10:11:36 ssuominen Exp $
4
5 EAPI=3
6 inherit eutils libtool multilib prefix
7
8 DESCRIPTION="Portable Network Graphics library"
9 HOMEPAGE="http://www.libpng.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
11
12 LICENSE="as-is"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
15 IUSE=""
16
17 RDEPEND="sys-libs/zlib"
18 DEPEND="${RDEPEND}
19 app-arch/xz-utils"
20
21 src_prepare() {
22 cp "${FILESDIR}"/libpng-1.4.x-update.sh "${T}"
23 eprefixify "${T}"/libpng-1.4.x-update.sh
24 elibtoolize
25 }
26
27 src_install() {
28 emake DESTDIR="${D}" install || die
29 dodoc ANNOUNCE CHANGES README TODO
30 dosbin "${T}"/libpng-1.4.x-update.sh
31 }
32
33 pkg_preinst() {
34 has_version ${CATEGORY}/${PN}:1.2 && return 0
35 preserve_old_lib /usr/$(get_libdir)/libpng12.so.0
36 }
37
38 pkg_postinst() {
39 elog
40 elog "Run ${EPREFIX}/usr/sbin/libpng-1.4.x-update.sh to fix libtool archives (.la)"
41 elog
42
43 has_version ${CATEGORY}/${PN}:1.2 && return 0
44 preserve_old_lib_notify /usr/$(get_libdir)/libpng12.so.0
45 }

  ViewVC Help
Powered by ViewVC 1.1.20