mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
gnumeric, new recipe for the Gnome spreadsheet application (#13911)
This commit is contained in:
157
app-office/gnumeric/gnumeric-1.12.60.recipe
Normal file
157
app-office/gnumeric/gnumeric-1.12.60.recipe
Normal file
@@ -0,0 +1,157 @@
|
||||
SUMMARY="Spreadsheet application for GNOME"
|
||||
DESCRIPTION="Gnumeric is an open-source spreadsheet program. Gnumeric is...
|
||||
* Free: Gnumeric and its source code are available free of charge, licensed under the terms of \
|
||||
the GNU General Public License version 2 or version 3.
|
||||
* Fast: Gnumeric starts up quickly and handles large spreadsheets while remaining responsive.
|
||||
* Accurate: A spreadsheet should calculate the right answer. Gnumeric's built-in functions and \
|
||||
tools are accurate as several researchers, have found."
|
||||
HOMEPAGE="https://gnome.pages.gitlab.gnome.org/gnumeric-web/"
|
||||
COPYRIGHT="Morten Welinder
|
||||
Andreas J. Guelzow
|
||||
Jean Brefort"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/gnumeric/${portVersion%.*}/gnumeric-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="bb02feb286062805564438534e1fea459f97cebac8a090b1a7e47ca251e07467"
|
||||
PATCHES="gnumeric-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="gnumeric.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
|
||||
|
||||
PROVIDES="
|
||||
gnumeric$secondaryArchSuffix = $portVersion
|
||||
app:Gnumeric$commandSuffix = $portVersion
|
||||
cmd:gnumeric$commandSuffix = $portVersion
|
||||
cmd:gnumeric_1.12.60$commandSuffix = $portVersion
|
||||
cmd:ssconvert$commandSuffix = $portVersion
|
||||
cmd:ssdiff$commandSuffix = $portVersion
|
||||
cmd:ssgrep$commandSuffix = $portVersion
|
||||
cmd:ssindex$commandSuffix = $portVersion
|
||||
lib:libspreadsheet_$portVersion$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libatk_1.0$secondaryArchSuffix
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libcairo_gobject$secondaryArchSuffix
|
||||
lib:libgdk_3$secondaryArchSuffix
|
||||
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
||||
lib:libgio_2.0$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgmodule_2.0$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
lib:libgoffice_0.10$secondaryArchSuffix
|
||||
lib:libgsf_1$secondaryArchSuffix
|
||||
lib:libgthread_2.0$secondaryArchSuffix
|
||||
lib:libgtk_3$secondaryArchSuffix
|
||||
lib:libharfbuzz$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libpango_1.0$secondaryArchSuffix
|
||||
lib:libpangocairo_1.0$secondaryArchSuffix
|
||||
lib:librsvg_2$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libxslt$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gnumeric${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libspreadsheet$secondaryArchSuffix
|
||||
devel:libspreadsheet_$portVersion$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gnumeric$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libgio_2.0$secondaryArchSuffix
|
||||
devel:libgmodule_2.0$secondaryArchSuffix
|
||||
devel:libgobject_2.0$secondaryArchSuffix
|
||||
devel:libgoffice_0.10$secondaryArchSuffix
|
||||
devel:libgsf_1$secondaryArchSuffix
|
||||
devel:libgtk_3$secondaryArchSuffix
|
||||
devel:librsvg_2$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libxslt$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:bison$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:intltoolize
|
||||
cmd:itstool
|
||||
cmd:make
|
||||
cmd:msgfmt$secondaryArchSuffix
|
||||
cmd:msgmerge$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage gnumeric$secondaryArchSuffix \
|
||||
$libDir/libspreadsheet-$portVersion.so
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure --omit-dirs "binDir sbinDir" ./configure \
|
||||
--bindir=$commandBinDir \
|
||||
--sbindir=$commandBinDir \
|
||||
--with-goffice-plugins-dir=$libDir/goffice/0.10.60/plugins \
|
||||
--disable-werror
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p $appsDir
|
||||
mv $commandBinDir/gnumeric-1.12.60 $appsDir/Gnumeric
|
||||
ln -s $appsDir/Gnumeric $commandBinDir/gnumeric-1.12.60
|
||||
|
||||
# cleanup
|
||||
rm -rf $dataDir/{applications,icons,metainfo}
|
||||
|
||||
# remove libtool file
|
||||
rm -f $libDir/*.la
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local APP_NAME=" = $portVersion"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
local APP_SIGNATURE="application/x-vnd.gnumeric"
|
||||
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/gnumeric.rdef.in > gnumeric.rdef
|
||||
|
||||
addResourcesToBinaries gnumeric.rdef $appsDir/Gnumeric
|
||||
addAppDeskbarSymlink $appsDir/Gnumeric
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libspreadsheet \
|
||||
libspreadsheet-$portVersion
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user