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 C68A5138334 for ; Sat, 11 Aug 2018 10:35:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F39CE07DF; Sat, 11 Aug 2018 10:35:23 +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 64596E07DF for ; Sat, 11 Aug 2018 10:35:23 +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 DB474335C7D for ; Sat, 11 Aug 2018 10:35:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9497239E for ; Sat, 11 Aug 2018 10:35:19 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1533983710.22248741346b8dd75122848d41a3f17e8d5ea659.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libifp/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libifp/libifp-1.0.0.2-r1.ebuild X-VCS-Directories: media-libs/libifp/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 22248741346b8dd75122848d41a3f17e8d5ea659 X-VCS-Branch: master Date: Sat, 11 Aug 2018 10:35:19 +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: 3ad570b7-9eb8-4291-b074-738e8d5fb3e0 X-Archives-Hash: 13fc1477317c49a0cf8a8b04baba797f commit: 22248741346b8dd75122848d41a3f17e8d5ea659 Author: Michael Mair-Keimberger gmail com> AuthorDate: Sat Jul 28 17:51:12 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Aug 11 10:35:10 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22248741 media-libs/libifp: EAPI7, improve ebuild Closes: https://github.com/gentoo/gentoo/pull/9369 media-libs/libifp/libifp-1.0.0.2-r1.ebuild | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/media-libs/libifp/libifp-1.0.0.2-r1.ebuild b/media-libs/libifp/libifp-1.0.0.2-r1.ebuild new file mode 100644 index 00000000000..6cd97383381 --- /dev/null +++ b/media-libs/libifp/libifp-1.0.0.2-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A general-purpose library for iRiver's iFP portable audio players" +HOMEPAGE="http://ifp-driver.sourceforge.net/libifp/" +SRC_URI="mirror://sourceforge/ifp-driver/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" +IUSE="doc examples static-libs" + +RDEPEND="virtual/libusb:0" +DEPEND="${RDEPEND} + doc? ( >=app-doc/doxygen-1.3.7 )" + +src_prepare() { + default + sed -i \ + -e '/CFLAGS=/s:-g -O2:${CFLAGS}:' \ + -e '/CXXFLAGS=/s:-g -O2:${CXXFLAGS}:' \ + configure || die +} + +src_configure() { + use doc || export have_doxygen=no + + econf \ + --disable-dependency-tracking \ + $(use_enable static-libs static) \ + $(use_enable examples) \ + --with-libusb \ + --without-kmodule +} + +src_test() { :; } # hardware dependant wrt #318597 + +src_install() { + emake DESTDIR="${D}" install + + find "${D}" -name '*.la' -exec rm -f {} + || die + + # clean /usr/bin after installation + # by moving examples to examples dir + if use examples; then + insinto /usr/share/${PN}/examples + doins "${S}"/examples/simple.c "${S}"/examples/ifpline.c + mv "${D}"/usr/bin/{simple,ifpline} "${D}"/usr/share/${PN}/examples || die + else + rm -f "${D}"/usr/bin/{simple,ifpline} || die + fi + + use doc && dodoc README ChangeLog TODO +}