2020-11-30 17:28:54 +01:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-07-05 15:15:26 +02:00
|
|
|
EAPI=7
|
2020-11-30 17:28:54 +01:00
|
|
|
|
|
|
|
inherit gnome2 meson vala
|
|
|
|
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/FontManager/font-manager.git"
|
|
|
|
SRC_URI=""
|
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/FontManager/font-manager/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
KEYWORDS="amd64 x86"
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="A simple font management application for Gtk+ Desktop Environments"
|
|
|
|
HOMEPAGE="https://fontmanager.github.io"
|
|
|
|
|
|
|
|
VALA_MIN_API_VERSION=0.44
|
|
|
|
VALA_USE_DEPEND="vapigen"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2022-07-05 15:15:26 +02:00
|
|
|
IUSE="doc gnome-search-provider +manager nautilus nemo reproducible thunar +viewer +nls google-webfonts"
|
2020-11-30 17:28:54 +01:00
|
|
|
|
|
|
|
RDEPEND="gnome-base/gnome-common
|
|
|
|
>=dev-db/sqlite-3.8
|
|
|
|
>=dev-libs/json-glib-0.15
|
|
|
|
>=dev-libs/libxml2-2.9
|
|
|
|
>=media-libs/fontconfig-2.1
|
|
|
|
>=media-libs/freetype-2.5
|
|
|
|
>=net-libs/libsoup-2.62
|
|
|
|
>=net-libs/webkit-gtk-2.24
|
|
|
|
>=x11-libs/gtk+-3.22
|
|
|
|
>=x11-libs/pango-1.4
|
|
|
|
nautilus? ( gnome-base/nautilus )
|
|
|
|
nemo? ( gnome-extra/nemo )
|
|
|
|
thunar? ( xfce-base/thunar )
|
2022-07-05 15:15:26 +02:00
|
|
|
google-webfonts? ( >=net-libs/webkit-gtk-2.24
|
|
|
|
>=net-libs/libsoup-2.62
|
|
|
|
)
|
2020-11-30 17:28:54 +01:00
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
$(vala_depend)
|
|
|
|
doc? ( app-text/yelp-tools )
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
vala_src_prepare
|
|
|
|
gnome2_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
meson_src_configure \
|
|
|
|
$(meson_use manager) \
|
|
|
|
$(meson_use viewer) \
|
|
|
|
$(meson_use reproducible) \
|
|
|
|
$(meson_use nautilus) \
|
|
|
|
$(meson_use nemo) \
|
|
|
|
$(meson_use thunar) \
|
|
|
|
$(meson_use gnome-search-provider search-provider) \
|
|
|
|
$(meson_use nls enable-nls) \
|
|
|
|
$(meson_use doc yelp-doc) \
|
|
|
|
$(meson_use doc gtk-doc) \
|
|
|
|
--buildtype=release
|
|
|
|
}
|