public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Azamat H. Hackimov" <winterheart@gentoo.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: media-libs/freeimage/
Date: Fri,  2 Mar 2012 18:18:22 +0000 (UTC)	[thread overview]
Message-ID: <1330712277.43e7011f325d405e2b2ce609089e7b7207f5a63c.winterheart@gentoo> (raw)

commit:     43e7011f325d405e2b2ce609089e7b7207f5a63c
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Fri Mar  2 18:17:57 2012 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Fri Mar  2 18:17:57 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=43e7011f

[media-libs/freeimage] New version 3.15.2.
Rewrited patchlist.
FreeImage now uses TIFF4 and not require libmng.
Splitted pkg-config files for freeimage and freeimageplus.
Minor QA issue fix - symlink for freeimageplus lib.

(Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)

---
 media-libs/freeimage/freeimage-3.15.0.ebuild       |   71 --------------------
 ...image-3.15.1.ebuild => freeimage-3.15.2.ebuild} |   32 ++++++---
 2 files changed, 22 insertions(+), 81 deletions(-)

diff --git a/media-libs/freeimage/freeimage-3.15.0.ebuild b/media-libs/freeimage/freeimage-3.15.0.ebuild
deleted file mode 100644
index 4990095..0000000
--- a/media-libs/freeimage/freeimage-3.15.0.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-inherit eutils flag-o-matic toolchain-funcs multilib
-
-MY_PN=FreeImage
-MY_PV=${PV//.}
-DESCRIPTION="Image library supporting many formats"
-HOMEPAGE="http://freeimage.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_PN}${MY_PV}.zip
-	doc? ( mirror://sourceforge/${PN}/${MY_PN}${MY_PV}.pdf )
-	http://ftp.gentoo.ru/people/winterheart/distfiles/${MY_PN}-${MY_PV}-patches.tar.bz2"
-
-LICENSE="|| ( GPL-2 FIPL-1.0 )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="cxx doc"
-
-RDEPEND="
-	virtual/jpeg
-	media-libs/libmng
-	media-libs/libpng
-	media-libs/tiff
-	sys-libs/zlib
-	media-libs/openjpeg
-	media-libs/openexr"
-DEPEND="${RDEPEND}
-	app-arch/unzip"
-
-S=${WORKDIR}/${MY_PN}
-
-src_prepare() {
-	append-cflags -std=c99 -D_POSIX_SOURCE # silence warnings from gcc
-	EPATCH_SOURCE="${WORKDIR}/${MY_PN}-${MY_PV}-patches" EPATCH_SUFFIX="patch" \
-		EPATCH_FORCE="yes" epatch
-}
-
-src_compile() {
-	emake -f Makefile.gnu || die "emake failed"
-	if use cxx ; then
-		emake -f Makefile.fip || die "emake fip failed"
-	fi
-}
-
-src_install() {
-	emake DESTDIR="${D}" INSTALLDIR="${D}/usr/$(get_libdir)" \
-		-f Makefile.gnu install || die
-	if use cxx ; then
-		emake DESTDIR="${D}" INSTALLDIR="${D}/usr/$(get_libdir)" \
-			-f Makefile.fip install
-	fi
-	dodoc README.linux Whatsnew.txt
-	use doc && dodoc "${DISTDIR}"/${MY_P}.pdf
-
-	ebegin "Installing ${PN}.pc file"
-	dodir /usr/$(get_libdir)/pkgconfig
-	sed \
-		-e "s:@LIBDIR@:$(get_libdir):" \
-		-e "s:@PACKAGENAME@:${MY_PN}:" \
-		-e "s:@DESCRIPTION@:${DESCRIPTION}:" \
-		-e "s:@REQUIRES@:OpenEXR libpng:" \
-		-e "s:@VERSION@:${PV}:" \
-		-e "s:@LIBS@:-lfreeimage -lfreeimageplus:" \
-		-e "s:@EXTLIBS@:-ljpeg -lmng -ltiff -lopenjpeg -lz:" \
-		"${FILESDIR}/${PN}.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/${PN}.pc"	|| die
-	eend $?
-	PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists ${PN} \
-		|| die ".pc file failed to validate."
-}

diff --git a/media-libs/freeimage/freeimage-3.15.1.ebuild b/media-libs/freeimage/freeimage-3.15.2.ebuild
similarity index 63%
rename from media-libs/freeimage/freeimage-3.15.1.ebuild
rename to media-libs/freeimage/freeimage-3.15.2.ebuild
index 15f8fe2..6c152da 100644
--- a/media-libs/freeimage/freeimage-3.15.1.ebuild
+++ b/media-libs/freeimage/freeimage-3.15.2.ebuild
@@ -11,18 +11,17 @@ DESCRIPTION="Image library supporting many formats"
 HOMEPAGE="http://freeimage.sourceforge.net/"
 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}${MY_PV}.zip
 	doc? ( mirror://sourceforge/${PN}/${MY_PN}${MY_PV}.pdf )
-	http://ftp.gentoo.ru/people/winterheart/distfiles/${MY_PN}-${MY_PV}-patches.tar.bz2"
+	http://ftp.gentoo.ru/people/winterheart/distfiles/${MY_PN}-${PV}-patches.tar.bz2"
 
-LICENSE="|| ( GPL-2 FIPL-1.0 )"
+LICENSE="|| ( GPL-2 GPL-3 FIPL-1.0 )"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="cxx doc"
 
 RDEPEND="
 	virtual/jpeg
-	media-libs/libmng
 	>=media-libs/libpng-1.5.4
-	media-libs/tiff
+	>=media-libs/tiff-4
 	sys-libs/zlib
 	media-libs/openjpeg
 	media-libs/openexr"
@@ -33,7 +32,7 @@ S=${WORKDIR}/${MY_PN}
 
 src_prepare() {
 	append-cflags -std=c99 -D_POSIX_SOURCE # silence warnings from gcc
-	EPATCH_SOURCE="${WORKDIR}/${MY_PN}-${MY_PV}-patches" EPATCH_SUFFIX="patch" \
+	EPATCH_SOURCE="${WORKDIR}/${MY_PN}-${PV}-patches" EPATCH_SUFFIX="patch" \
 		EPATCH_FORCE="yes" epatch
 }
 
@@ -54,7 +53,7 @@ src_install() {
 	dodoc README.linux Whatsnew.txt
 	use doc && dodoc "${DISTDIR}"/${MY_P}.pdf
 
-	ebegin "Installing ${PN}.pc file"
+	ebegin "Installing pkg-config file"
 	dodir /usr/$(get_libdir)/pkgconfig
 	sed \
 		-e "s:@LIBDIR@:$(get_libdir):" \
@@ -62,10 +61,23 @@ src_install() {
 		-e "s:@DESCRIPTION@:${DESCRIPTION}:" \
 		-e "s:@REQUIRES@:OpenEXR libpng:" \
 		-e "s:@VERSION@:${PV}:" \
-		-e "s:@LIBS@:-lfreeimage -lfreeimageplus:" \
-		-e "s:@EXTLIBS@:-ljpeg -lmng -ltiff -lopenjpeg -lz:" \
+		-e "s:@LIBS@:-lfreeimage:" \
+		-e "s:@EXTLIBS@:-ljpeg -ltiff -lopenjpeg -lz:" \
 		"${FILESDIR}/${PN}.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/${PN}.pc"	|| die
-	eend $?
 	PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists ${PN} \
-		|| die ".pc file failed to validate."
+	        || die ".pc file failed to validate."
+	if use cxx ; then
+	sed \
+		-e "s:@LIBDIR@:$(get_libdir):" \
+		-e "s:@PACKAGENAME@:${MY_PN}:" \
+		-e "s:@DESCRIPTION@:${DESCRIPTION}:" \
+		-e "s:@REQUIRES@:OpenEXR libpng:" \
+		-e "s:@VERSION@:${PV}:" \
+		-e "s:@LIBS@:-lfreeimageplus:" \
+		-e "s:@EXTLIBS@:-ljpeg -ltiff -lopenjpeg -lz:" \
+		"${FILESDIR}/${PN}.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/${PN}plus.pc"	|| die
+	fi
+	PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists	${PN}plus \
+	        || die ".pc file failed to validate."
+	eend $?
 }



             reply	other threads:[~2012-03-02 18:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 18:18 Azamat H. Hackimov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-03 15:58 [gentoo-commits] proj/gamerlay:master commit in: media-libs/freeimage/ Azamat H. Hackimov
2011-03-09 16:12 Azamat H. Hackimov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330712277.43e7011f325d405e2b2ce609089e7b7207f5a63c.winterheart@gentoo \
    --to=winterheart@gentoo.ru \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox