diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-08-12 06:32:46 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-08-12 06:32:46 +0100 |
commit | 28e3d252dc8ac8a5635206dfefe1cfe05058d1db (patch) | |
tree | e75bce604750fb72e53ed3684059e2e5d2094509 /media-libs/libifp | |
parent | f625b9919a60a30f1bd860f7d1b2eac183ced593 (diff) |
gentoo resync : 12.08.2018
Diffstat (limited to 'media-libs/libifp')
-rw-r--r-- | media-libs/libifp/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libifp/libifp-1.0.0.2-r1.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/media-libs/libifp/Manifest b/media-libs/libifp/Manifest index 77343d0f65ba..1e416f2f4fca 100644 --- a/media-libs/libifp/Manifest +++ b/media-libs/libifp/Manifest @@ -1,3 +1,4 @@ DIST libifp-1.0.0.2.tar.gz 358550 BLAKE2B 3d9e9d82d0147286d3c577bfcc43d2052b643dd3e86c8770fc6dc56047f8c7923e4e04b6463cf895e552be423f887df48d6741173deaf165aa62d2e64ec1332c SHA512 538ddcf0be4bf7427a7f8ebb60ec77f22b69aa26055fc279f884bd82bae4e32267c79ac37f4dcf9970806e520549bc93dbf0aa2501c9c4fc699a6855e757a331 +EBUILD libifp-1.0.0.2-r1.ebuild 1355 BLAKE2B 8b329b837506c5006786103da81df5222b67db39e0bfc3659d6112edbe5f5ee4b90aab3112143fe615d8bda7de327884052a634ecb06dad6ee8aaf9bff165e75 SHA512 9bd539e382fce7dc3d210a1b9838eb874f488b28442fdabdfbbea6b7903744ba0fded1d414b43e25f4136296ae4b64e4f06be8e5282bb4d6438b4eb4a792e0db EBUILD libifp-1.0.0.2.ebuild 1342 BLAKE2B a64358c37ee14577ac1c063dd387288fa74c687a6dd74fe707b87b70cffe75285e99672c5a29281c1a3e7bcda26d94ce0b565185046566120693623d5237fb3f SHA512 8e5b05c3cb30061ea050d1e00bdeddf1a15266d15c21c3e9156197239fd06089db6214bbbba91fefa39abc10427091b3d5fcdde33e31b1fd86244f4adc52791e MISC metadata.xml 333 BLAKE2B 87a4530824fff1355c5d2af1b6483b6fb1752c5a346b5848500b7962307a2e9956727f08e753b1548fbd941352a4563e9c14ae386bd46f238f8929cc2d46970b SHA512 d0cd8f6fc7bdc757d2a1ef5443f30410514ac335bcd2a84829995c527862b994fc75a8dfc5ceff2b8e2a3d7b0b081a57cbc50e4b825567b8a56d0f9eb00c13c7 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 000000000000..6cd97383381b --- /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 +} |