Files
haikuports/dev-util/geany/geany-2.0.0.recipe
2023-11-12 15:37:27 +00:00

126 lines
3.3 KiB
Bash

SUMMARY="A fast and lightweight IDE"
DESCRIPTION="Geany is a small and lightweight integrated development environment.
It was developed to provide a small and fast IDE, which has only a few dependencies from other \
packages.
Another goal was to be as independent as possible from a special Desktop Environment like KDE or \
GNOME. So it is using only the GTK+ toolkit and therefore you need only the GTK+ runtime \
libraries to run Geany."
HOMEPAGE="https://www.geany.org"
COPYRIGHT="2005 The Geany-contributors
1998-2003 by Neil Hodgson"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/geany/geany/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="a744ab9ae3e58b371de4b50990c44227c499f82e2a8ee6753307ef107748e4df"
PATCHES="geany-$portVersion.patchset"
ADDITIONAL_FILES="geany.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
geany$secondaryArchSuffix = $portVersion
app:Geany = $portVersion
lib:libgeany$secondaryArchSuffix = $libVersionCompat
"
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:libgtk_3$secondaryArchSuffix
lib:libgtkspell3_3$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpango_1.0$secondaryArchSuffix
"
PROVIDES_devel="
geany${secondaryArchSuffix}_devel = $portVersion
devel:libgeany$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
geany$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgdk_3$secondaryArchSuffix
devel:libgio_2.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libgmodule_2.0$secondaryArchSuffix
devel:libgobject_2.0$secondaryArchSuffix
devel:libgtk_3$secondaryArchSuffix
devel:libgtkspell3_3$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:intltool_update
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export LIBS=-lnetwork
NOCONFIGURE=1 ./autogen.sh
runConfigure --omit-dirs binDir ./configure \
--bindir=$appsDir \
--disable-html-docs
make $jobArgs
}
INSTALL()
{
make install
mv $appsDir/geany $appsDir/Geany
rm -rf $dataDir/applications
rm $libDir/*.la
rm $libDir/geany/*.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="Geany"
local LONG_INFO="$SUMMARY"
local APP_SIGNATURE="application/x-vnd.geany"
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/geany.rdef.in > geany.rdef
addResourcesToBinaries geany.rdef $appsDir/Geany
addAppDeskbarSymlink $appsDir/Geany
prepareInstalledDevelLib libgeany
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}