Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libpng/files: libpng-1.4.x-update.sh
Date: Mon, 10 May 2010 23:04:36
Message-Id: 20100510230432.B6FE629674@corvid.gentoo.org
1 ssuominen 10/05/10 23:04:32
2
3 Modified: libpng-1.4.x-update.sh
4 Log:
5 Update script
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.2 media-libs/libpng/files/libpng-1.4.x-update.sh
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpng/files/libpng-1.4.x-update.sh?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpng/files/libpng-1.4.x-update.sh?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpng/files/libpng-1.4.x-update.sh?r1=1.1&r2=1.2
14
15 Index: libpng-1.4.x-update.sh
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/media-libs/libpng/files/libpng-1.4.x-update.sh,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- libpng-1.4.x-update.sh 10 May 2010 18:10:29 -0000 1.1
22 +++ libpng-1.4.x-update.sh 10 May 2010 23:04:32 -0000 1.2
23 @@ -1,5 +1,13 @@
24 #!/bin/bash
25 -find /usr/lib64 -name '*.la' | xargs sed -i -e '/^dep/s:-lpng12:-lpng14:'
26 -find /usr/lib -name '*.la' | xargs sed -i -e '/^dep/s:-lpng12:-lpng14:'
27
28 -# feel free to modify, licensed WTFPL-2
29 +echo "Run revdep-rebuild before this. This brute force script fill rename"
30 +echo "rest of -lpng12 and libpng12.la entries in your systems .la files."
31 +
32 +[[ -d /usr/lib64 ]] && lib_suffix=64
33 +
34 +libdir=/usr/lib${lib_suffix}
35 +
36 +find ${libdir} -name '*.la' | xargs sed -i -e '/^dependency_libs/s:-lpng12:-lpng14:'
37 +find ${libdir} -name '*.la' | xargs sed -i -e '/^dependency_libs/s:libpng12.la:libpng14.la:'
38 +
39 +# WTFPL-2