From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D1EAC138334 for ; Sun, 17 Mar 2019 20:07:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2018E090A; Sun, 17 Mar 2019 20:07:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8CEC9E090A for ; Sun, 17 Mar 2019 20:07:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AEF75335D19 for ; Sun, 17 Mar 2019 20:07:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EAD83326 for ; Sun, 17 Mar 2019 20:07:32 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1552853242.c1f44464466602f94079a5e7cc0fcb3a338820a9.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/giflib/files/, media-libs/giflib/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/giflib/Manifest media-libs/giflib/files/giflib-5.1.8-gentoo.patch media-libs/giflib/giflib-5.1.8.ebuild X-VCS-Directories: media-libs/giflib/files/ media-libs/giflib/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: c1f44464466602f94079a5e7cc0fcb3a338820a9 X-VCS-Branch: master Date: Sun, 17 Mar 2019 20:07:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f043435b-3fd2-46f9-ba5a-3b31e2744739 X-Archives-Hash: fe1a460b666f56c878d5c29642fbda98 commit: c1f44464466602f94079a5e7cc0fcb3a338820a9 Author: Lars Wendler gentoo org> AuthorDate: Sun Mar 17 20:01:32 2019 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sun Mar 17 20:07:22 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1f44464 media-libs/giflib: Bump to version 5.1.8 Closes: https://bugs.gentoo.org/680188 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Lars Wendler gentoo.org> media-libs/giflib/Manifest | 1 + media-libs/giflib/files/giflib-5.1.8-gentoo.patch | 10 +++ media-libs/giflib/giflib-5.1.8.ebuild | 78 +++++++++++++++++++++++ 3 files changed, 89 insertions(+) diff --git a/media-libs/giflib/Manifest b/media-libs/giflib/Manifest index 16fa3b5e19c..88fedc73955 100644 --- a/media-libs/giflib/Manifest +++ b/media-libs/giflib/Manifest @@ -3,3 +3,4 @@ DIST giflib-5.0.6.tar.bz2 621073 BLAKE2B ae162c281755cae4d00bcbd07273f7c7488ae67 DIST giflib-5.1.4.tar.bz2 639703 BLAKE2B 5176fbd94c37a86a7f7a3964b6b5f2637d76ba5d40e594a0db52a3a09e22b915a0388fc9bd2f1446dcf66b3b9c0d76741583e4d5d3f7362fa3997e8b26503fc4 SHA512 32b5e342056c210e6478e9cb3b6ceec9594dcfaf34feea1eb4dad633a081ed4465bceee578c19165907cb47cb83912ac359ceea666a8e07dbbb5420f9928f96d DIST giflib-5.1.6.tar.gz 391894 BLAKE2B e961236459d7312b41668f19cfb26006af0f0dc1a9741abee3f00d8eeba0dceebe5b03709dfc8170c1b73a6687dd926c5ef92ac2817fe78ab65160e8012d9044 SHA512 a148e3ebee6ad00ac24eb2241e5d7f51c0a22e6e931ebd751ca57b921a2a3d1a17a6d1e0e949ca0401589b539ec1458a57a9e306fadaf03dcd2ec40c11ca28be DIST giflib-5.1.7.tar.gz 391525 BLAKE2B d994941f4da324f62a16af973b443660b6cf3ee764e9b7f8c165656037f11d482ccd141e9ac8a81ae1096faa4e264602191ebd039cbf5dd2f55e435aef0ab546 SHA512 b30c3707839a6d66a3e54d92607c303e5ca3d04d6a02d2037fdc8b80386f9a7fa4148727705014481c3c167bdfac2e99d7e4db1ff7f277b64bd2d9193a89f8b0 +DIST giflib-5.1.8.tar.gz 419065 BLAKE2B 4a42120758be15e765dae249d98d25164b40e64f933415412420163c0ed7fd6967d3958fff70478d5635a5bb9a6ed397f06ad6de510f2e97de5574b7c68d84d2 SHA512 d390917837a64de1912720ab8968e6b077c6be9f9a2f835faced44420f54d6d55d4e3543b9779ec65d399858856188fea93c170b253d0b83928f15548a14aba3 diff --git a/media-libs/giflib/files/giflib-5.1.8-gentoo.patch b/media-libs/giflib/files/giflib-5.1.8-gentoo.patch new file mode 100644 index 00000000000..225f1df1be5 --- /dev/null +++ b/media-libs/giflib/files/giflib-5.1.8-gentoo.patch @@ -0,0 +1,10 @@ +--- giflib-5.1.8/Makefile ++++ giflib-5.1.8/Makefile +@@ -61,7 +61,6 @@ + LDLIBS=libgif.a -lm + + all: libgif.so libgif.a $(UTILS) +- $(MAKE) -C doc + + $(UTILS):: libgif.a + diff --git a/media-libs/giflib/giflib-5.1.8.ebuild b/media-libs/giflib/giflib-5.1.8.ebuild new file mode 100644 index 00000000000..f84e6fa760a --- /dev/null +++ b/media-libs/giflib/giflib-5.1.8.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal toolchain-funcs + +DESCRIPTION="Library to handle, display and manipulate GIF images" +HOMEPAGE="https://sourceforge.net/projects/giflib/" +SRC_URI="mirror://sourceforge/giflib/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/7" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc static-libs" + +DEPEND="doc? ( app-text/xmlto )" + +PATCHES=( + "${FILESDIR}"/${PN}-5.1.8-gentoo.patch +) + +src_prepare() { + default + multilib_copy_sources +} + +multilib_src_compile() { + # Use reallocarray() from libc if available. + if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_GNU_SOURCE -o "${T}/reallocarray_test" -x c - <<< $'#include \nint main() {void *p = reallocarray(NULL, 0, 0);}' 2> /dev/null; then + local -x CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE -DHAVE_REALLOCARRAY" + sed -e "s/ openbsd-reallocarray\.c//" -i Makefile || die + rm openbsd-reallocarray.c || die + fi + + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -std=gnu99 -fPIC -Wno-format-truncation" \ + LDFLAGS="${LDFLAGS}" \ + OFLAGS="" \ + all + + if use doc && multilib_is_native_abi; then + emake -C doc + fi +} + +multilib_src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + MANDIR="${EPREFIX}/usr/share/man/man1" \ + install + + if ! use static-libs ; then + find "${ED}" -name "*.a" -delete || die + fi + + if use doc && multilib_is_native_abi; then + docinto html + dodoc doc/*.html + fi +} + +multilib_src_install_all() { + docinto + dodoc ChangeLog NEWS README TODO + if use doc ; then + dodoc doc/*.txt + docinto html + dodoc -r doc/whatsinagif + fi +} + +multilib_src_test() { + emake -j1 check +}