diff options
author | 2010-05-14 10:36:52 -0400 | |
---|---|---|
committer | 2010-05-14 10:36:52 -0400 | |
commit | f5064068a3507a363661ecd89a99a9444b9d48b7 (patch) | |
tree | 426693cd7aead821822a01bc7c0273ba5f318531 /media-libs | |
parent | 20100507 - Cambio automático (diff) | |
download | rubenqba-f5064068a3507a363661ecd89a99a9444b9d48b7.tar.gz rubenqba-f5064068a3507a363661ecd89a99a9444b9d48b7.tar.bz2 rubenqba-f5064068a3507a363661ecd89a99a9444b9d48b7.zip |
Adicionada media-libs/libpng-1.4.2 para resolver problema con las librerias libpng12
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libpng/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libpng/files/libpng-1.4.x-update.sh | 14 | ||||
-rw-r--r-- | media-libs/libpng/libpng-1.4.2.ebuild | 43 |
3 files changed, 61 insertions, 0 deletions
diff --git a/media-libs/libpng/Manifest b/media-libs/libpng/Manifest new file mode 100644 index 0000000..b08e6a0 --- /dev/null +++ b/media-libs/libpng/Manifest @@ -0,0 +1,4 @@ +AUX libpng-1.4.x-update.sh 475 RMD160 09f3d29a73db2f1d8bdce59b620a8792ed35c7f3 SHA1 e7e5a82eb6b1204cc7d63bc4b4d146c632c953a0 SHA256 9edb28eb7309ded60ade7e14a01c104fc80627181638696762ebc9e9b3efe253 +DIST libpng-1.4.2.tar.xz 527736 RMD160 3b813503b155cd9b00ba0a77f346bab8b0e82366 SHA1 d6a3ef20f5bb2c13f3d799bd23ffb9ee3dbc844f SHA256 a644469ab0620dcf19351b0739ea1ee6696feb4560b42575af7885a16dfef88e +EBUILD libpng-1.4.2.ebuild 1165 RMD160 9205dc4ae86eb1f4e3f156a3b274001479fcd214 SHA1 53223da8a27d64d7a705ea904659e69080bd7350 SHA256 b2f5279116cce93dde08e1b6891bcc7c36b86a402c35b96afbea34ca8e61ebf3 +MISC libpng-1.4.2.ebuild~ 1163 RMD160 fef99f33edb98776a76f1890135fcf03294ff360 SHA1 c0dfccf1bc917217275e9303f0a2c89c43cde7ce SHA256 40d2fc8aa3646d3816d71d6ae70cb86303f995e50de44a8a5965a0970573ce80 diff --git a/media-libs/libpng/files/libpng-1.4.x-update.sh b/media-libs/libpng/files/libpng-1.4.x-update.sh new file mode 100644 index 0000000..2cd7e13 --- /dev/null +++ b/media-libs/libpng/files/libpng-1.4.x-update.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "Try revdep-rebuild or lafilefixer first." +echo "This script will rename -lpng12 and libpng12.la to -lpng14 and libpng14.la" +echo "in your system libdir libtool .la files without asking permission." + +[[ -d /usr/lib64 ]] && lib_suffix=64 + +libdir=/usr/lib${lib_suffix} + +find ${libdir} -name '*.la' | xargs sed -i -e '/^dependency_libs/s:-lpng12:-lpng14:' +find ${libdir} -name '*.la' | xargs sed -i -e '/^dependency_libs/s:libpng12.la:libpng14.la:' + +# WTFPL-2 diff --git a/media-libs/libpng/libpng-1.4.2.ebuild b/media-libs/libpng/libpng-1.4.2.ebuild new file mode 100644 index 0000000..a97c4a1 --- /dev/null +++ b/media-libs/libpng/libpng-1.4.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.4.2.ebuild,v 1.3 2010/05/11 10:46:03 ssuominen Exp $ + +EAPI=3 +inherit libtool + +DESCRIPTION="Portable Network Graphics library" +HOMEPAGE="http://www.libpng.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + +LICENSE="as-is" +SLOT="1.4" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="" + +RDEPEND="sys-libs/zlib + !<media-libs/libpng-1.2.43-r1" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +src_prepare() { + elibtoolize +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc ANNOUNCE CHANGES README TODO || die + dosbin "${FILESDIR}"/libpng-1.4.x-update.sh || die +} + +pkg_postinst() { + echo + ewarn "Moving from libpng 1.2.x to 1.4.x will break installed libtool .la" + ewarn "files." + echo + elog "Run /usr/sbin/libpng-1.4.x-update.sh at your own risk only if" + elog "revdep-rebuild or lafilefixer fails." + echo + elog "Don't forget \"man emerge\" and useful parameters like --skip-first," + elog "--resume and --keep-going." + echo +} |