85 lines
2.0 KiB
Bash
85 lines
2.0 KiB
Bash
SUMMARY="Library used to read freedesktop.org menus"
|
|
DESCRIPTION="Libmenu-cache is a library creating and utilizing caches to\
|
|
speed up the manipulation for freedesktop.org defined application menus.
|
|
It can be used as a replacement of libgnome-menu of gnome-menus.
|
|
|
|
Advantages:
|
|
1. Shorten time for loading menu entries.
|
|
2. Ease of use. (API is very similar to that of libgnome-menu)
|
|
3. Lightweight runtime library. (Parsing of the menu definition files
|
|
are done by menu-cache-gen when the menus are really changed.)
|
|
4. Less unnecessary and complicated file monitoring.
|
|
5. Heavily reduced disk I/O."
|
|
HOMEPAGE="https://lxde.org/"
|
|
COPYRIGHT="LXDE team"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="3"
|
|
SOURCE_URI="https://github.com/lxde/menu-cache/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="990857aa61a2894730e3749b6bc0f905967eed0c21aa2b62a7694007bdccbe8d"
|
|
SOURCE_DIR="menu-cache-$portVersion"
|
|
PATCHES="menu_cache-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
menu_cache$secondaryArchSuffix = $portVersion
|
|
cmd:menu_cached$secondaryArchSuffix = $portVersion
|
|
lib:libmenu_cache$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libfm_extra$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
menu_cache${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmenu_cache$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
menu_cache$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfm_extra$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gtkdoc_check
|
|
cmd:intltoolize
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libmenu-cache
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|