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 0001-docs-fix-parallel-builds.patch" 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//, 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:cmp cmd:diff cmd:gcc$secondaryArchSuffix cmd:intltool_update 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 ./configure \ --bindir=$commandBinDir \ --with-goffice-plugins-dir=$libDir/goffice/0.10.60/plugins 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 }