dev-libs/gom - 0.5.6 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/gom-0.5.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/gom-0.5.6

Or alternatively:

emerge --autounmask-write -a =dev-libs/gom-0.5.6

Package Information

Description:
GObject to SQLite object mapper library
Homepage:
https://gitlab.gnome.org/GNOME/gom
License:
LGPL-2+ FDL-1.1+

Ebuild Details

Version EAPI Keywords Slot
0.5.6 8 ~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

GCONF_DEBUG="yes"
PYTHON_COMPAT=( python3_{11..14} )

inherit gnome.org meson python-r1

DESCRIPTION="GObject to SQLite object mapper library"
HOMEPAGE="https://gitlab.gnome.org/GNOME/gom"

LICENSE="LGPL-2+ FDL-1.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="gtk-doc +introspection python test"
RESTRICT="!test? ( test )"
REQUIRED_USE="python? ( introspection ${PYTHON_REQUIRED_USE} )"

BDEPEND=""
RDEPEND="
	>=dev-db/sqlite-3.7:3
	>=dev-libs/glib-2.38:2
	introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
	python? ( ${PYTHON_DEPS}
		>=dev-python/pygobject-3.16:3[${PYTHON_USEDEP}] )
"
DEPEND="${RDEPEND}
	gtk-doc? ( dev-util/gi-docgen )
	virtual/pkgconfig
	test? ( x11-libs/gdk-pixbuf:2 )
"

src_prepare() {
	default
	sed -i -e '/subdir.*python/d' bindings/meson.build || die
	# drop test building and deps if not enabled
	if ! use test; then
		sed -i -e '/gdkpixbuf_dep/d' meson.build || die
		sed -i -e '/subdir(.*tests.*)/d' meson.build || die
	fi
}

src_configure() {
	local emesonargs=(
		$(meson_use introspection enable-introspection)
		$(meson_use gtk-doc enable-gtk-doc)
	)

	meson_src_configure
}

src_install() {
	docinto examples
	dodoc examples/*.py

	meson_src_install

	if use gtk-doc; then
		mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
		mv "${ED}"/usr/share/doc/gom-1.0 "${ED}"/usr/share/gtk-doc/html/ || die
	fi

	if use python; then
		python_foreach_impl python_domodule bindings/python/gi
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/gom | euse -E <flag> -p dev-libs/gom | euse -D <flag> -p dev-libs/gom

Global/Standard Flags

introspection
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	>=dev-db/sqlite-3.7:3
	>=dev-libs/glib-2.38:2
	introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
	python? ( 
		>=dev-python/pygobject-3.16:3[] )

	gtk-doc? ( dev-util/gi-docgen )
	virtual/pkgconfig
	test? ( x11-libs/gdk-pixbuf:2 )

RDEPEND

	>=dev-db/sqlite-3.7:3
	>=dev-libs/glib-2.38:2
	introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
	python? ( 
		>=dev-python/pygobject-3.16:3[] )