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 834AA138206 for ; Sun, 31 Dec 2017 18:39:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97E17E084A; Sun, 31 Dec 2017 18:39:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 648CCE084A for ; Sun, 31 Dec 2017 18:39:03 +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 3C27E335C09 for ; Sun, 31 Dec 2017 18:39:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B79F712F for ; Sun, 31 Dec 2017 18:38:59 +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: <1514745533.d9aaca6c5dba4f10b301c1dc9c7bf2eacc5013cc.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/optipng/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/optipng/Manifest media-gfx/optipng/optipng-0.7.7.ebuild X-VCS-Directories: media-gfx/optipng/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: d9aaca6c5dba4f10b301c1dc9c7bf2eacc5013cc X-VCS-Branch: master Date: Sun, 31 Dec 2017 18:38:59 +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-Archives-Salt: 47c381ac-7cba-43d1-94df-23d9ac4bc3ac X-Archives-Hash: 86a744c4a96709c874416fbcbe0f4b4b commit: d9aaca6c5dba4f10b301c1dc9c7bf2eacc5013cc Author: Sebastian Pipping gentoo org> AuthorDate: Sun Dec 31 18:36:33 2017 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sun Dec 31 18:38:53 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9aaca6c media-gfx/optipng: 0.7.7 Package-Manager: Portage-2.3.16, Repoman-2.3.6 media-gfx/optipng/Manifest | 1 + media-gfx/optipng/optipng-0.7.7.ebuild | 60 ++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/media-gfx/optipng/Manifest b/media-gfx/optipng/Manifest index 46b54ad34d5..d0cdec1451f 100644 --- a/media-gfx/optipng/Manifest +++ b/media-gfx/optipng/Manifest @@ -1 +1,2 @@ DIST optipng-0.7.6.tar.gz 2202237 BLAKE2B f113027ff12f2fc97bd4dc43b8e62f5af8f86e251b43c0f86ffbd59366b329d1fc2a58103aa349cb18fb0c9d2e5f051517439c02aeb44ee435c6fff0c75efb7a SHA512 d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 +DIST optipng-0.7.7.tar.gz 2329555 BLAKE2B af3e1c806522282ccbf9325c0b49f61a30d24b8e2db2dd8ec316a312d0dea595cbb6e8b5b38ef5ea90f1efe14244b81f85f88e11e7334fdd4b91b43b6dae8e7d SHA512 c33b7650143ab39944d2c066e07e10273c37024c5bfe7c00475bfb513af96afa081ff388164845d426d3bce624c0282dee574fa150e963f18d3683d821030280 diff --git a/media-gfx/optipng/optipng-0.7.7.ebuild b/media-gfx/optipng/optipng-0.7.7.ebuild new file mode 100644 index 00000000000..3880a888ddf --- /dev/null +++ b/media-gfx/optipng/optipng-0.7.7.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils 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 ~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} +}