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 4E8FD138350 for ; Tue, 28 Jan 2020 15:30:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73A45E0826; Tue, 28 Jan 2020 15:30:00 +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 54358E0833 for ; Tue, 28 Jan 2020 15:30:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 BB65434E316 for ; Tue, 28 Jan 2020 15:29:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 64466105 for ; Tue, 28 Jan 2020 15:29:56 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1580225382.ac427444d5deb09bb73cc5c6896f543c90b5f95e.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/optipng/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/optipng/optipng-0.7.7-r1.ebuild X-VCS-Directories: media-gfx/optipng/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: ac427444d5deb09bb73cc5c6896f543c90b5f95e X-VCS-Branch: master Date: Tue, 28 Jan 2020 15:29:56 +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: 900ff3e1-1626-4918-a1da-ea3c4f179d76 X-Archives-Hash: 111eedba76ccaeab3dfd89aa372fc49e commit: ac427444d5deb09bb73cc5c6896f543c90b5f95e Author: Sebastian Pipping gentoo org> AuthorDate: Tue Jan 28 15:28:25 2020 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Tue Jan 28 15:29:42 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac427444 media-gfx/optipng: EAPI 7 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-2.3.84, Repoman-2.3.20 media-gfx/optipng/optipng-0.7.7-r1.ebuild | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/media-gfx/optipng/optipng-0.7.7-r1.ebuild b/media-gfx/optipng/optipng-0.7.7-r1.ebuild new file mode 100644 index 00000000000..11a75013d0a --- /dev/null +++ b/media-gfx/optipng/optipng-0.7.7-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Compress PNG files without affecting image quality" +HOMEPAGE="http://optipng.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +IUSE="" + +RDEPEND="sys-libs/zlib + media-libs/libpng:0=" +DEPEND="${RDEPEND} + sys-apps/findutils" + +DOCS=( AUTHORS.txt README.txt ) + +src_prepare() { + rm -R src/{libpng,zlib} || die + find . -type d -name build -exec rm -R {} + || die + + # next release is almost a complete rewrite, so plug this compilation + # problem in anticipation of the much (c)leaner(?) rewrite + sed -i \ + -e 's/^#if defined AT_FDCWD/#if (defined(AT_FDCWD) \&\& !(defined(__SVR4) \&\& defined(__sun)))/' \ + src/optipng/ioutil.c || die + + tc-export CC AR RANLIB + export LD=$(tc-getCC) + + eapply_user +} + +src_configure() { + ./configure \ + -with-system-libpng \ + -with-system-zlib \ + || die "configure failed" +} + +src_compile() { + emake -C src/optipng +} + +src_install() { + einstalldocs + + dodoc doc/*.txt + docinto html + dodoc doc/*.html + doman src/${PN}/man/${PN}.1 + + dobin src/${PN}/${PN} +}