gentoo-overlay/dev-php/PHP-FFMpeg/PHP-FFMpeg-9999.ebuild

45 lines
986 B
Bash
Raw Normal View History

2017-01-08 21:57:40 -06:00
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit git-r3
DESCRIPTION="An Object Oriented library to convert video/audio files with FFmpeg / AVConv."
HOMEPAGE="https://github.com/PHP-FFMpeg/PHP-FFMpeg"
EGIT_REPO_URI="https://github.com/PHP-FFMpeg/PHP-FFMpeg.git"
#EGIT_BRANCH="master"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
2017-01-08 22:04:00 -06:00
IUSE="test"
2017-01-08 21:57:40 -06:00
2017-01-08 22:04:00 -06:00
# https://wiki.gentoo.org/wiki/Composer_packaging
#TODO: Add composer dependencies
2017-01-08 21:57:40 -06:00
DEPEND="dev-lang/php:*
media-video/ffmpeg
dev-php/fedora-autoloader"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PF}/src"
2017-01-08 22:04:00 -06:00
src_prepare() {
default
if use test; then
cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
fi
}
2017-01-08 21:57:40 -06:00
src_install() {
insinto "/usr/share/php/FFMpeg"
doins -r FFMpeg/. "${FILESDIR}"/autoload.php
dodoc "${WORKDIR}/${PF}"/README.md
}
2017-01-08 22:04:00 -06:00
src_test() {
phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
}