mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
app-misc/gnote: Switch to optfeature.eclass
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
parent
b40320dab4
commit
be70bfc01e
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit gnome2 meson readme.gentoo-r1
|
inherit gnome2 meson optfeature
|
||||||
|
|
||||||
DESCRIPTION="Desktop note-taking application"
|
DESCRIPTION="Desktop note-taking application"
|
||||||
HOMEPAGE="https://gitlab.gnome.org/GNOME/gnote"
|
HOMEPAGE="https://gitlab.gnome.org/GNOME/gnote"
|
||||||
@ -29,6 +29,7 @@ RDEPEND="${DEPEND}
|
|||||||
gnome-base/gsettings-desktop-schemas
|
gnome-base/gsettings-desktop-schemas
|
||||||
"
|
"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
|
dev-libs/appstream
|
||||||
dev-util/itstool
|
dev-util/itstool
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
"
|
"
|
||||||
@ -39,23 +40,9 @@ src_prepare() {
|
|||||||
if ! use test; then
|
if ! use test; then
|
||||||
sed -i -e "/unit_test_pp/ s/ = .*/ = disabler()/" meson.build || die
|
sed -i -e "/unit_test_pp/ s/ = .*/ = disabler()/" meson.build || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if has_version net-fs/wdfs; then
|
|
||||||
DOC_CONTENTS="You have net-fs/wdfs installed. app-misc/gnote will use it to
|
|
||||||
synchronize notes."
|
|
||||||
else
|
|
||||||
DOC_CONTENTS="Gnote can use net-fs/wdfs to synchronize notes.
|
|
||||||
If you want to use that functionality just emerge net-fs/wdfs.
|
|
||||||
Gnote will automatically detect that you did and let you use it."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
meson_src_install
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
gnome2_pkg_postinst
|
gnome2_pkg_postinst
|
||||||
readme.gentoo_print_elog
|
optfeature "notes synchronization" net-fs/wdfs
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user