mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 07:10:05 +02:00
mutagen: add recipe for version 1.42.0 (#4008)
This commit is contained in:
committed by
Sergei Reznikov
parent
89fd92fa9e
commit
8d9cd527e9
84
dev-python/mutagen/mutagen-1.42.0.recipe
Normal file
84
dev-python/mutagen/mutagen-1.42.0.recipe
Normal file
@@ -0,0 +1,84 @@
|
||||
SUMMARY="Python library to read and write audio tags for many formats"
|
||||
DESCRIPTION="Mutagen is a Python module to handle audio metadata. It supports \
|
||||
ASF, FLAC, MP4, Monkey's Audio, MP3, Musepack, Ogg Opus, Ogg FLAC, Ogg Speex, \
|
||||
Ogg Theora, Ogg Vorbis, True Audio, WavPack, OptimFROG, and AIFF audio files. \
|
||||
All versions of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. \
|
||||
It can read Xing headers to accurately calculate the bitrate and length of MP3s. \
|
||||
ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate \
|
||||
Ogg streams on an individual packet/page level."
|
||||
HOMEPAGE="https://github.com/quodlibet/mutagen"
|
||||
COPYRIGHT="Joe Wreschnig, Michael Urman, Lukáš Lalinský, Christoph Reiter, Ben Ockmore & others"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/source/m/$portName/$portName-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="bb61e2456f59a9a4a259fbc08def6d01ba45a42da8eeaa97d00633b0ec5de71c"
|
||||
SOURCE_DIR="mutagen-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python python36 python3)
|
||||
PYTHON_VERSIONS=(2.7 3.6 3.7)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
PROVIDES_python="$PROVIDES_python"
|
||||
PROVIDES_python36="$PROVIDES_python36"
|
||||
PROVIDES_python3="$PROVIDES_python3
|
||||
cmd:mid3cp
|
||||
cmd:mid3iconv
|
||||
cmd:mid3v2
|
||||
cmd:moggsplit
|
||||
cmd:mutagen_inspect
|
||||
cmd:mutagen_pony
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix \
|
||||
--install-data=$dataDir
|
||||
|
||||
if [ $pythonPackage == python3 ]; then
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$binDir
|
||||
else
|
||||
rm -rf $binDir
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
fi
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user