From 2a89e08d5571e7ac2471a6bccd806a18636c633d Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Tue, 29 Nov 2022 14:23:35 +1000 Subject: [PATCH] libpeas: add recipe --- dev-libs/libpeas/libpeas-1.34.0.recipe | 103 +++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 dev-libs/libpeas/libpeas-1.34.0.recipe diff --git a/dev-libs/libpeas/libpeas-1.34.0.recipe b/dev-libs/libpeas/libpeas-1.34.0.recipe new file mode 100644 index 000000000..b33a18817 --- /dev/null +++ b/dev-libs/libpeas/libpeas-1.34.0.recipe @@ -0,0 +1,103 @@ +SUMMARY="A GObject plugins library" +DESCRIPTION="libpeas is a gobject-based plugins engine, and is targetted at giving every \ +application the chance to assume its own extensibility. It also has a set of features \ +including, but not limited to: + +* multiple extension points +* on demand (lazy) programming language support for C, Python and Lua +*simplicity of the APIS" +HOMEPAGE="https://wiki.gnome.org/Projects/Libpeas" +COPYRIGHT="Steve Frécinaux + Ignacio Casal Quinteiro + " +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="https://gitlab.gnome.org/GNOME/libpeas/-/archive/libpeas-$portVersion/libpeas-libpeas-$portVersion.tar.gz" +SOURCE_DIR="libpeas-libpeas-$portVersion" +CHECKSUM_SHA256="514b0576d9a56460915490bdb61dcb88634fdacfb2801e28dcbb9a730348858f" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libpeas$secondaryArchSuffix = $portVersion compat >= 1 + lib:libpeas_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0 + lib:libpeas_gtk_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcairo$secondaryArchSuffix + lib:libcairo_gobject$secondaryArchSuffix + lib:libgdk_pixbuf_2.0$secondaryArchSuffix + lib:libgirepository_1.0$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgtk_3$secondaryArchSuffix + lib:libpango_1.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + " + +PROVIDES_devel=" + libpeas${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:libpeas_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0 + devel:libpeas_gtk_1.0$secondaryArchSuffix = 0.3400.0 compat >= 0 + " +REQUIRES_devel=" + libpeas$secondaryArchSuffix == $portVersion base + devel:libgtk_3$secondaryArchSuffix + devel:libgirepository_1.0$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgirepository_1.0$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libgtk_3$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:find + cmd:gcc$secondaryArchSuffix + cmd:gperf + cmd:make + cmd:meson + cmd:ninja + cmd:perl + cmd:pkg_config$secondaryArchSuffix + cmd:python3 + cmd:valac + " + +BUILD() +{ + meson \ + --buildtype=release \ + --prefix=$prefix \ + --libdir=$libDir \ + --libexecdir=$binDir \ + --datadir=$dataDir \ + --localedir=$dataDir/locale \ + --includedir=$includeDir \ + --sysconfdir=$settingsDir \ + -Ddemos=false \ + -Dintrospection=true \ + -Dvapi=true \ + _build + + cd _build + ninja +} + +INSTALL() +{ + cd _build + ninja install + + prepareInstalledDevelLibs libpeas-1.0 libpeas-gtk-1.0 + + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +}