Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
SUMMARY="LilyPond Music Editor"
DESCRIPTION="Frescobaldi is an advanced text editor to edit LilyPond sheet music files.
Features include an integrated PDF preview and a powerful Score Wizard."
HOMEPAGE="https://www.frescobaldi.org/"
COPYRIGHT="2008-2020 by Wilbert Berendsen"
LICENSE="GNU GPL v3"
REVISION="3"
SOURCE_URI="https://github.com/frescobaldi/frescobaldi/releases/download/v$portVersion/frescobaldi-$portVersion.tar.gz"
CHECKSUM_SHA256="4d707b5b35392f84d904d1cc7ecc36992f8e85f6868fdc5a4983c78a0e850acf"
PATCHES="frescobaldi-$portVersion.patchset"
ADDITIONAL_FILES="frescobaldi.rdef.in"
PYTHON3_VERSION="3.9"
ARCHITECTURES="any"
PROVIDES="
frescobaldi = $portVersion
app:Frescobaldi = $portVersion
"
REQUIRES="
haiku
myspell
pyqt5_python39
python_ly_python39
python_poppler_qt5_python39
qpageview_python39
cmd:python$PYTHON3_VERSION
"
BUILD_REQUIRES="
haiku_devel
pyqt5_python39
python_ly_python39
python_poppler_qt5_python39
qpageview_python39
setuptools_python39
"
BUILD_PREREQUIRES="
cmd:python$PYTHON3_VERSION
"
INSTALL()
{
OLDPYTHONPATH=$PYTHONPATH
local packageLinksDir=$(dirname $portPackageLinksDir)
local packageName="${portName}-$portFullVersion"
# GENERIC: all python_setuptools-based installs need this
python=$packageLinksDir/$packageName/cmd~python$PYTHON3_VERSION/bin/python$PYTHON3_VERSION
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$OLDPYTHONPATH
$python setup.py install --prefix=$prefix --root=/
# remove unneeded hyphenation dictionaries, we depend on myspell instead
rm $prefix/${installLocation}frescobaldi_app/hyphdicts/*.dic
mkdir -p $appsDir
mv $binDir/frescobaldi $appsDir/Frescobaldi
# Preparing the attributes
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|${MINOR:-0}|" \
$portDir/additional-files/frescobaldi.rdef.in \
> frescobaldi.rdef
# Installing extra-attribs
rc frescobaldi.rdef
settype -t application/x-vnd.Be-elfexecutable $appsDir/Frescobaldi
resattr -o $appsDir/Frescobaldi frescobaldi.rsrc
addAppDeskbarSymlink $appsDir/Frescobaldi
### PACKAGING HACK ###
rm -rf $prefix/packages
### PACKAGING HACK ###
}