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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat May 7 09:55:48 2011 UTC (3 years, 7 months ago) by ssuominen
Branch: MAIN
Changes since 1.3: +2 -4 lines
Drop redudant configure option disable dependency tracking with EAPI=4

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

1 ssuominen 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.4 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.5.2.ebuild,v 1.3 2011/05/03 13:20:04 scarabeus Exp $
4 ssuominen 1.1
5 scarabeus 1.3 EAPI=4
6 ssuominen 1.1
7     inherit eutils libtool multilib
8    
9     DESCRIPTION="Portable Network Graphics library"
10     HOMEPAGE="http://www.libpng.org/"
11 vapier 1.2 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
12     apng? ( mirror://sourceforge/${PN}-apng/${PN}-devel/${PV}/${P}-apng.patch.gz )"
13 ssuominen 1.1
14     LICENSE="as-is"
15     SLOT="0"
16     #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"
17 vapier 1.2 IUSE="apng static-libs"
18 ssuominen 1.1
19     RDEPEND="sys-libs/zlib"
20     DEPEND="${RDEPEND}
21     app-arch/xz-utils"
22    
23 scarabeus 1.3 DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
24    
25 ssuominen 1.1 src_prepare() {
26 vapier 1.2 use apng && epatch "${WORKDIR}"/${P}-apng.patch
27 ssuominen 1.1 elibtoolize
28     }
29    
30     src_configure() {
31 ssuominen 1.4 econf $(use_enable static-libs static)
32 ssuominen 1.1 }
33    
34     src_install() {
35 scarabeus 1.3 default
36 ssuominen 1.1 find "${ED}" -name '*.la' -exec rm -f {} +
37     }
38    
39     pkg_preinst() {
40     # has_version ${CATEGORY}/${PN}:1.4 && return 0
41     preserve_old_lib /usr/$(get_libdir)/libpng14$(get_libname 0)
42     }
43    
44     pkg_postinst() {
45     # has_version ${CATEGORY}/${PN}:1.4 && return 0
46     preserve_old_lib_notify /usr/$(get_libdir)/libpng14$(get_libname 0)
47     }

  ViewVC Help
Powered by ViewVC 1.1.20