mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
65 lines
1.2 KiB
Bash
65 lines
1.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit gnome2-utils meson xdg
|
|
|
|
DESCRIPTION="Web browser designed to organize and run Web applications"
|
|
HOMEPAGE="https://apps.gnome.org/app/re.sonny.Tangram/
|
|
https://github.com/sonnyp/Tangram/"
|
|
|
|
if [[ "${PV}" == *9999* ]] ; then
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/sonnyp/${PN^}"
|
|
else
|
|
TROLL_COMMIT="8b0275948eedec9ed0378f9bdda1aa4aac3062ba"
|
|
|
|
SRC_URI="
|
|
https://github.com/sonnyp/${PN^}/archive/refs/tags/v${PV}.tar.gz
|
|
-> ${P}.gh.tar.gz
|
|
https://github.com/sonnyp/troll/archive/${TROLL_COMMIT}.tar.gz
|
|
-> troll-${TROLL_COMMIT}.gh.tar.gz
|
|
"
|
|
S="${WORKDIR}/${P^}"
|
|
|
|
KEYWORDS="amd64 ~x86"
|
|
fi
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
RESTRICT="test"
|
|
|
|
RDEPEND="
|
|
>=dev-libs/gjs-1.76.0
|
|
gui-libs/gtk:4
|
|
gui-libs/libadwaita:1
|
|
net-libs/webkit-gtk:6
|
|
"
|
|
BDEPEND="
|
|
${RDEPEND}
|
|
dev-libs/appstream-glib
|
|
dev-util/blueprint-compiler
|
|
dev-util/desktop-file-utils
|
|
"
|
|
|
|
DOCS=( README.md TODO.md )
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
rm -d "${S}/troll" || die
|
|
cp -r "${WORKDIR}/troll-${TROLL_COMMIT}" "${S}/troll" || die
|
|
}
|
|
|
|
pkg_postinst() {
|
|
gnome2_schemas_update
|
|
xdg_pkg_postinst
|
|
}
|
|
|
|
pkg_postrm() {
|
|
gnome2_schemas_update
|
|
xdg_pkg_postrm
|
|
}
|