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 A051A139694 for ; Mon, 1 May 2017 13:19:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5021E0CBF; Mon, 1 May 2017 13:19:48 +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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2367E0CBF for ; Mon, 1 May 2017 13:19:47 +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 6673C340DF9 for ; Mon, 1 May 2017 13:19:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DEE8D743B for ; Mon, 1 May 2017 13:19:43 +0000 (UTC) From: "Thomas Beierlein" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Beierlein" Message-ID: <1493644738.2717f31754ada85bb68e56df2ae489188d722d1b.tomjbe@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/xlog/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-radio/xlog/xlog-2.0.14-r1.ebuild X-VCS-Directories: media-radio/xlog/ X-VCS-Committer: tomjbe X-VCS-Committer-Name: Thomas Beierlein X-VCS-Revision: 2717f31754ada85bb68e56df2ae489188d722d1b X-VCS-Branch: master Date: Mon, 1 May 2017 13:19:43 +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: 71344e64-e2ac-404c-af66-0799a430ffbf X-Archives-Hash: 004518776cb1131ff763d4e3f19c0724 commit: 2717f31754ada85bb68e56df2ae489188d722d1b Author: Thomas Beierlein gentoo org> AuthorDate: Mon May 1 13:18:58 2017 +0000 Commit: Thomas Beierlein gentoo org> CommitDate: Mon May 1 13:18:58 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2717f317 media-radio/xlog: Fix brocken png files (bug# 607304). thanks Ago. Package-Manager: Portage-2.3.5, Repoman-2.3.2 media-radio/xlog/xlog-2.0.14-r1.ebuild | 78 ++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/media-radio/xlog/xlog-2.0.14-r1.ebuild b/media-radio/xlog/xlog-2.0.14-r1.ebuild new file mode 100644 index 00000000000..6d2509443d7 --- /dev/null +++ b/media-radio/xlog/xlog-2.0.14-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools fdo-mime toolchain-funcs +MY_P=${P/_} + +DESCRIPTION="An amateur radio logging program" +HOMEPAGE="http://www.nongnu.org/xlog" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="media-libs/hamlib + dev-libs/glib:2 + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + media-libs/libpng:0 + sys-devel/gettext + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +DOCS=( AUTHORS data/doc/THANKS NEWS README ) + +src_prepare() { + eapply -p0 "${FILESDIR}/${PN}-2.0.7-desktop.patch" + + # Let portage handle updating mime/desktop databases, + eapply -p0 "${FILESDIR}/${PN}-2.0.13-desktop-update.patch" + # Drop -Werror + sed -i -e "s:-Werror::" configure.ac || die + # fix underlinking + sed -i -e "s:HAMLIB_LIBS@:HAMLIB_LIBS@ -lm:g" src/Makefile.am || die + eautoreconf + + # Fix broken png files<< + einfo "Fixing broken png files." + pushd "${S}"/data/doc/manual/output/html + for png in xlog-clock.png xlog-dropdown.png xlog-editbox.png; do + pngfix -q --out=out.png ${png} + mv -f out.png "${png}" || die + done + popd + einfo "$x png files processed." + + eapply_user +} + +src_configure() { + # mime-update causes file collisions if enabled + econf --disable-mime-update --disable-desktop-update \ + --docdir=/usr/share/doc/${PF} +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" install + docompress -x /usr/share/doc/${PF}/{KEYS,ChangeLog,TODO,BUGS} + einstalldocs +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +}