summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-05-10 18:10:29 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-05-10 18:10:29 +0000
commit6351f6eef693216c1e5d3b5e423db0a4a4b6d89c (patch)
treeb5e887779deba28b39dd0f0d34db775a5aa08626 /media-libs/libpng
parentppc stable #318815 (diff)
downloadgentoo-2-6351f6eef693216c1e5d3b5e423db0a4a4b6d89c.tar.gz
gentoo-2-6351f6eef693216c1e5d3b5e423db0a4a4b6d89c.tar.bz2
gentoo-2-6351f6eef693216c1e5d3b5e423db0a4a4b6d89c.zip
Install rude libpng-1.4.x-update.sh which can be improved.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libpng')
-rw-r--r--media-libs/libpng/ChangeLog6
-rw-r--r--media-libs/libpng/files/libpng-1.4.x-update.sh5
-rw-r--r--media-libs/libpng/libpng-1.4.2.ebuild12
3 files changed, 21 insertions, 2 deletions
diff --git a/media-libs/libpng/ChangeLog b/media-libs/libpng/ChangeLog
index 3b610160476f..1c17b21127fb 100644
--- a/media-libs/libpng/ChangeLog
+++ b/media-libs/libpng/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/libpng
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/ChangeLog,v 1.253 2010/05/10 15:47:51 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/ChangeLog,v 1.254 2010/05/10 18:10:28 ssuominen Exp $
+
+ 10 May 2010; Samuli Suominen <ssuominen@gentoo.org> libpng-1.4.2.ebuild,
+ +files/libpng-1.4.x-update.sh:
+ Install rude libpng-1.4.x-update.sh which can be improved.
10 May 2010; Brent Baude <ranger@gentoo.org> libpng-1.2.43-r2.ebuild:
Marking libpng-1.2.43-r2 ppc64 for bug 307637
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 000000000000..f9af5f74373f
--- /dev/null
+++ b/media-libs/libpng/files/libpng-1.4.x-update.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+find /usr/lib64 -name '*.la' | xargs sed -i -e '/^dep/s:-lpng12:-lpng14:'
+find /usr/lib -name '*.la' | xargs sed -i -e '/^dep/s:-lpng12:-lpng14:'
+
+# feel free to modify, licensed WTFPL-2
diff --git a/media-libs/libpng/libpng-1.4.2.ebuild b/media-libs/libpng/libpng-1.4.2.ebuild
index 591ae8921311..432fcc6e0249 100644
--- a/media-libs/libpng/libpng-1.4.2.ebuild
+++ b/media-libs/libpng/libpng-1.4.2.ebuild
@@ -1,6 +1,6 @@
# 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.1 2010/05/09 00:03:28 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.4.2.ebuild,v 1.2 2010/05/10 18:10:28 ssuominen Exp $
EAPI=3
inherit libtool
@@ -26,4 +26,14 @@ src_prepare() {
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 "Experimental libpng-1.4.x-update.sh has been installed to /usr/sbin."
+ echo
}