2023-12-04 12:41:22 +01:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2020-12-07 00:35:31 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2023-12-04 12:41:22 +01:00
|
|
|
EAPI=8
|
2020-12-07 00:35:31 +01:00
|
|
|
|
2023-12-04 12:41:22 +01:00
|
|
|
inherit gnome2-utils meson vala virtualx xdg
|
2020-12-07 00:35:31 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Native Linux App for UI and UX Design built in Vala and Gtk "
|
|
|
|
HOMEPAGE="https://github.com/akiraux/akira"
|
|
|
|
|
|
|
|
if [[ "${PV}" == *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/akiraux/${PN}.git"
|
|
|
|
else
|
2023-12-04 12:41:22 +01:00
|
|
|
COMMIT="3b6c58ab4376f0c40cf647164354a65ba2b15a3f"
|
|
|
|
SRC_URI="https://github.com/akiraux/Akira/archive/${COMMIT}.tar.gz -> ${PN}-${COMMIT}.tar.gz"
|
|
|
|
S="${WORKDIR}/${PN^}-${COMMIT}"
|
|
|
|
|
2020-12-07 00:35:31 +01:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
2023-12-04 12:41:22 +01:00
|
|
|
IUSE="test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
|
|
|
|
RDEPEND="
|
2020-12-07 00:35:31 +01:00
|
|
|
app-arch/libarchive
|
2023-12-04 12:41:22 +01:00
|
|
|
>=dev-libs/granite-6.0.0
|
2020-12-07 00:35:31 +01:00
|
|
|
dev-libs/json-glib
|
2023-12-04 12:41:22 +01:00
|
|
|
dev-libs/libgee:0.8
|
2020-12-07 00:35:31 +01:00
|
|
|
dev-libs/libxml2
|
2023-12-04 12:41:22 +01:00
|
|
|
>=x11-libs/cairo-1.14
|
|
|
|
x11-libs/gtk+:3
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
BDEPEND="
|
2020-12-07 00:35:31 +01:00
|
|
|
sys-devel/gettext
|
|
|
|
"
|
2023-12-04 12:41:22 +01:00
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
vala_setup
|
|
|
|
}
|
2020-12-07 00:35:31 +01:00
|
|
|
|
2020-12-07 18:57:05 +01:00
|
|
|
src_prepare() {
|
2023-12-04 12:41:22 +01:00
|
|
|
eapply_user
|
|
|
|
|
|
|
|
# Remove automagic test dependencies
|
|
|
|
sed -i \
|
|
|
|
-e 's/\(appstream_util =\) .*/\1 disabler()/' \
|
|
|
|
-e 's/\(desktop_file_validate =\) .*/\1 disabler()/' \
|
|
|
|
-e 's/\(vala_lint =\) .*/\1 disabler()/' \
|
|
|
|
meson.build || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
$(meson_use test install-tests)
|
|
|
|
)
|
|
|
|
|
|
|
|
meson_src_configure
|
2020-12-07 18:57:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
2023-12-04 12:41:22 +01:00
|
|
|
dosym com.github.akiraux.akira /usr/bin/akira
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
local -x PATH="${BUILD_DIR}/tests:${PATH}"
|
|
|
|
local -x top_builddir="${S}"
|
|
|
|
virtx meson_src_test
|
2020-12-07 18:57:05 +01:00
|
|
|
}
|
|
|
|
|
2020-12-07 00:35:31 +01:00
|
|
|
pkg_preinst() {
|
|
|
|
xdg_pkg_preinst
|
|
|
|
gnome2_schemas_savelist
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_pkg_postinst
|
|
|
|
gnome2_schemas_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_pkg_postrm
|
|
|
|
gnome2_schemas_update
|
|
|
|
}
|