mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
150 lines
3.9 KiB
Bash
150 lines
3.9 KiB
Bash
SUMMARY="Help browser for GNOME"
|
|
DESCRIPTION="Yelp is the GNOME help viewer. It is the default Mallard viewer, but \
|
|
it can also display DocBook, info, man, and HTML documentation.
|
|
|
|
It makes it easy to find the documentation you need, with interactive search and \
|
|
bookmarks.
|
|
|
|
It also has an editor mode, which shows editorial comments and revision statuses when \
|
|
editing Mallard documents."
|
|
HOMEPAGE="https://apps.gnome.org/Yelp/"
|
|
COPYRIGHT="David King
|
|
Shaun McCance"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://gitlab.gnome.org/GNOME/yelp/-/archive/$portVersion/yelp-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="cc487a93b6bb9cd5883603ca5db6340449b417dbb429f3be37231f05d7fe514b"
|
|
ADDITIONAL_FILES="yelp.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="0.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
yelp$secondaryArchSuffix = $portVersion
|
|
app:Yelp = $portVersion
|
|
cmd:yelp$commandSuffix = $portVersion
|
|
cmd:gnome_help$commandSuffix = $portVersion
|
|
lib:libyelp$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
yelp_xsl$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgio_2.0$secondaryArchSuffix
|
|
lib:libgmodule_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libgsf_1$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
lib:libhandy_1$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
lib:libwebkit2gtk_4.1$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libxslt$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
yelp${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libyelp$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
yelp$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
yelp_xsl$secondaryArchSuffix
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgio_2.0$secondaryArchSuffix
|
|
devel:libgmodule_2.0$secondaryArchSuffix
|
|
devel:libgobject_2.0$secondaryArchSuffix
|
|
devel:libgsf_1$secondaryArchSuffix
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libhandy_1$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
devel:libwebkit2gtk_4.1$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libxslt$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
gtk_doc
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:itstool
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson --buildtype=release \
|
|
--prefix=$prefix \
|
|
--bindir=$commandBinDir \
|
|
--includedir=$includeDir \
|
|
--libdir=$libDir \
|
|
build
|
|
|
|
ninja -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
mkdir $appsDir
|
|
mv $commandBinDir/yelp $appsDir/Yelp
|
|
ln -s $appsDir/Yelp $commandBinDir/yelp
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/{applications,metainfo}
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="0"
|
|
local APP_NAME="Yelp"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.yelp"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
-e "s|@APP_NAME@|$APP_NAME|" \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
$portDir/additional-files/yelp.rdef.in > yelp.rdef
|
|
|
|
addResourcesToBinaries yelp.rdef $appsDir/Yelp
|
|
addAppDeskbarSymlink $appsDir/Yelp
|
|
|
|
prepareInstalledDevelLib libyelp
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|