diff options
Diffstat (limited to 'media-libs/jpeg/jpeg-7-r1.ebuild')
-rw-r--r-- | media-libs/jpeg/jpeg-7-r1.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/media-libs/jpeg/jpeg-7-r1.ebuild b/media-libs/jpeg/jpeg-7-r1.ebuild index 1397d1c7632a..be3a6b64e1d2 100644 --- a/media-libs/jpeg/jpeg-7-r1.ebuild +++ b/media-libs/jpeg/jpeg-7-r1.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/jpeg/jpeg-7-r1.ebuild,v 1.2 2010/01/17 21:58:31 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/jpeg/jpeg-7-r1.ebuild,v 1.3 2010/01/18 15:35:38 ssuominen Exp $ # this ebuild is only for the libjpeg.so.7 SONAME for ABI compat @@ -18,7 +18,13 @@ SLOT="7" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" IUSE="" -DEPEND="!=media-libs/jpeg-7*:0" +DEPEND="!~media-libs/jpeg-7:0" + +pkg_setup() { + if [[ -e ${ROOT}/usr/$(get_libdir)/libjpeg.so.7 ]]; then + rm -f "${ROOT}"/usr/$(get_libdir)/libjpeg.so.7 + fi +} src_prepare() { epatch "${WORKDIR}"/patch/60_all_jpeg-maxmem-sysconf.patch |