ebuild for PHP-FFMpeg

This commit is contained in:
Sandino Araico Sanchez 2017-01-08 22:04:00 -06:00
parent 5f526bbbc7
commit 8db372cf39
2 changed files with 16 additions and 11 deletions

View file

@ -1,2 +1,2 @@
AUX autoload.php 256 SHA256 d82c1ede17b0cc7da5176f5537b1973297b07f52c461ac52a8990c15b2a58c88 SHA512 d32be46f795c4310e6da72b89eab4dc6e99095c1ac869ecc9154c1a8449c30811d0d9f5766dd8bf408307b8e842cfd393f81aa23ca337691724f82b54f8a1b26 WHIRLPOOL e8ce98c88ede57b6a157dbf919c56e654b4d2d1ea0f1e210f906e8f17fa916d46459410bdcb34c3be9de60239e2dd1376fe6ecbc993f96a5a6a7cffb12e18bf3
EBUILD PHP-FFMpeg-9999.ebuild 801 SHA256 b51ee0f6295c739cea1464c9db512f00b41adcb87fcfb6fdaa13cf9268d8b38c SHA512 5606386f599714122d4cc15dd10b6a189968a65216da41b67b216bb4c6ac621e7186bda18612a2260d454f69d4c8e7da3807471cbe2f37b8e5b25a5cb2492896 WHIRLPOOL f8f66df4e215075d6a2cc6d970bed004c7c16e2d85bd43f7753d46cb7e805e69f9f8fb2612672634ad7afa069250f40fb753952f47c336221c958b4fb346ff0d
EBUILD PHP-FFMpeg-9999.ebuild 986 SHA256 d9d4bb4ad028153cfe01c22b4cd0885a6454e3084dfa4a6e5de935c1d00e577f SHA512 c50477ef6e56f0a44febdc34ee9a4eea3d48fb04fd9478e29fdef4d5e74177b69877610d5b36ec637e21261d9f79e78688ab2db50368f0fa489827f00e721e3b WHIRLPOOL 578752a1e839b67dcf336f1ae524ffa6d4081015345dc1e653790a5f7f37d711f49b67a111174411271fd566c5221d3d7ceddaf2afc34ed6b9bc26e0669b604e

View file

@ -14,26 +14,31 @@ EGIT_REPO_URI="https://github.com/PHP-FFMpeg/PHP-FFMpeg.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IUSE="test"
# https://wiki.gentoo.org/wiki/Composer_packaging
#TODO: Add composer dependencies
DEPEND="dev-lang/php:*
media-video/ffmpeg
dev-php/fedora-autoloader"
RDEPEND="${DEPEND}"
#src_unpack() {
# git-r3_src_unpack
# php-ext-source-r3_src_unpack
#}
#
#src_prepare() {
# php-ext-source-r3_src_prepare
#}
S="${WORKDIR}/${PF}/src"
src_prepare() {
default
if use test; then
cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
fi
}
src_install() {
insinto "/usr/share/php/FFMpeg"
doins -r FFMpeg/. "${FILESDIR}"/autoload.php
dodoc "${WORKDIR}/${PF}"/README.md
}
src_test() {
phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
}