summaryrefslogtreecommitdiff
path: root/app-backup/timeshift/timeshift-22.11.1-r2.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-31 23:30:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-03-31 23:30:39 +0100
commit4182642f65c04cecb6202e4698285f0670d44c07 (patch)
tree7fd8fba4af32f509591e215f1da736964aa0399f /app-backup/timeshift/timeshift-22.11.1-r2.ebuild
parentc710442aabf495c3a7832bacfa9e8783ed578d6d (diff)
app-backup/timeshift : revision bump
Diffstat (limited to 'app-backup/timeshift/timeshift-22.11.1-r2.ebuild')
-rw-r--r--app-backup/timeshift/timeshift-22.11.1-r2.ebuild87
1 files changed, 87 insertions, 0 deletions
diff --git a/app-backup/timeshift/timeshift-22.11.1-r2.ebuild b/app-backup/timeshift/timeshift-22.11.1-r2.ebuild
new file mode 100644
index 00000000..7482e365
--- /dev/null
+++ b/app-backup/timeshift/timeshift-22.11.1-r2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature toolchain-funcs vala xdg
+
+DESCRIPTION="A system restore utility for Linux"
+HOMEPAGE="https://github.com/linuxmint/timeshift"
+SRC_URI="https://github.com/linuxmint/${PN}/archive/${PV}.tar.gz -> ${PF}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk"
+
+DEPEND="
+ dev-libs/atk
+ dev-libs/glib:2
+ dev-libs/json-glib
+ >=dev-libs/libgee-0.18.0:=
+ net-libs/libsoup:2.4
+ media-libs/harfbuzz:=
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/pango
+ >=x11-libs/xapp-1.0.4
+ x11-libs/vte:2.91[vala]
+"
+RDEPEND="${DEPEND}
+ net-misc/rsync
+ virtual/cron
+"
+BDEPEND="
+ $(vala_depend)
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/"${P}"-build-system.patch
+ "${FILESDIR}"/"${P}"-glib-deprecations.patch
+)
+
+src_prepare() {
+ default
+ vala_setup
+}
+
+src_compile() {
+ tc-export CC
+ if use gtk; then
+ # can't use all jobs here, fails to compile because some files getting removed
+ # during compilation, which are missing afterwards.
+ # https://bugs.gentoo.org/883157
+ # Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-26)
+ emake -j1
+ else
+ emake app-console -j1
+ fi
+ emake manpage
+}
+
+src_install() {
+ if use gtk; then
+ emake INSTALL_GTK=true prefix="${EPREFIX}"/usr sysconfdir="${EPREFIX}"/etc install DESTDIR="${D}"
+ else
+ emake INSTALL_GTK=false prefix="${EPREFIX}"/usr sysconfdir="${EPREFIX}"/etc install DESTDIR="${D}"
+ fi
+ einstalldocs
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ if ! use gtk; then
+ elog ""
+ elog "Installed timeshift without gtk GUI."
+ elog "If you need the gtk GUI emerge timeshift"
+ elog "with USE=\"gtk\""
+ fi
+ optfeature "btrfs support" sys-fs/btrfs-progs
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+}