summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-07-09 16:37:12 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-07-09 16:37:12 +0000
commit7a7c78afbf1e3044da57709505260e1342300569 (patch)
tree81f947cd3aa0c99bc7233c453ba5bf57c2b600dc /media-libs/libpng
parentalpha/arm/ia64/s390/sh/sparc stable wrt #374201 (diff)
downloadgentoo-2-7a7c78afbf1e3044da57709505260e1342300569.tar.gz
gentoo-2-7a7c78afbf1e3044da57709505260e1342300569.tar.bz2
gentoo-2-7a7c78afbf1e3044da57709505260e1342300569.zip
Version bump and use released apng patchset.
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libpng')
-rw-r--r--media-libs/libpng/ChangeLog9
-rw-r--r--media-libs/libpng/libpng-1.4.8-r1.ebuild47
-rw-r--r--media-libs/libpng/libpng-1.5.4.ebuild47
3 files changed, 102 insertions, 1 deletions
diff --git a/media-libs/libpng/ChangeLog b/media-libs/libpng/ChangeLog
index 3a3f931d7f4f..f2604ba693cf 100644
--- a/media-libs/libpng/ChangeLog
+++ b/media-libs/libpng/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/libpng
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/ChangeLog,v 1.288 2011/07/09 08:03:02 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/ChangeLog,v 1.289 2011/07/09 16:37:12 ssuominen Exp $
+
+*libpng-1.5.4 (09 Jul 2011)
+*libpng-1.4.8-r1 (09 Jul 2011)
+
+ 09 Jul 2011; Samuli Suominen <ssuominen@gentoo.org> +libpng-1.4.8-r1.ebuild,
+ +libpng-1.5.4.ebuild:
+ Version bump and use released apng patchset.
09 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> libpng-1.2.44.ebuild,
libpng-1.2.45.ebuild, libpng-1.4.8.ebuild:
diff --git a/media-libs/libpng/libpng-1.4.8-r1.ebuild b/media-libs/libpng/libpng-1.4.8-r1.ebuild
new file mode 100644
index 000000000000..bd4f2128c877
--- /dev/null
+++ b/media-libs/libpng/libpng-1.4.8-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.4.8-r1.ebuild,v 1.1 2011/07/09 16:37:12 ssuominen Exp $
+
+EAPI=4
+
+inherit eutils libtool multilib
+
+DESCRIPTION="Portable Network Graphics library"
+HOMEPAGE="http://www.libpng.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
+ apng? ( mirror://sourceforge/${PN}-apng/${PN}-master/${PV}/${P}-apng.patch.gz )"
+
+LICENSE="as-is"
+SLOT="0"
+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"
+IUSE="apng static-libs"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_prepare() {
+ use apng && epatch "${WORKDIR}"/${P}-apng.patch
+ elibtoolize
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc ANNOUNCE CHANGES README TODO libpng-*.txt
+
+ find "${ED}" -name '*.la' -exec rm -f {} +
+}
+
+pkg_preinst() {
+ has_version ${CATEGORY}/${PN}:1.2 && return 0
+ preserve_old_lib /usr/$(get_libdir)/libpng12$(get_libname 0)
+}
+
+pkg_postinst() {
+ has_version ${CATEGORY}/${PN}:1.2 && return 0
+ preserve_old_lib_notify /usr/$(get_libdir)/libpng12$(get_libname 0)
+}
diff --git a/media-libs/libpng/libpng-1.5.4.ebuild b/media-libs/libpng/libpng-1.5.4.ebuild
new file mode 100644
index 000000000000..721dd6806b36
--- /dev/null
+++ b/media-libs/libpng/libpng-1.5.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.5.4.ebuild,v 1.1 2011/07/09 16:37:12 ssuominen Exp $
+
+EAPI=4
+
+inherit eutils libtool multilib
+
+DESCRIPTION="Portable Network Graphics library"
+HOMEPAGE="http://www.libpng.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
+ apng? ( mirror://sourceforge/${PN}-apng/${PN}-devel/${PV}/${P}-apng.patch.gz )"
+
+LICENSE="as-is"
+SLOT="0"
+#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"
+IUSE="apng static-libs"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
+
+src_prepare() {
+ use apng && epatch "${WORKDIR}"/${P}-apng.patch
+ elibtoolize
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -exec rm -f {} +
+}
+
+pkg_preinst() {
+# has_version ${CATEGORY}/${PN}:1.4 && return 0
+ preserve_old_lib /usr/$(get_libdir)/libpng14$(get_libname 0)
+}
+
+pkg_postinst() {
+# has_version ${CATEGORY}/${PN}:1.4 && return 0
+ preserve_old_lib_notify /usr/$(get_libdir)/libpng14$(get_libname 0)
+}