aboutsummaryrefslogtreecommitdiffstats
path: root/x11-misc/donut
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/donut')
-rw-r--r--x11-misc/donut/Manifest2
-rw-r--r--x11-misc/donut/donut-4.ebuild44
2 files changed, 46 insertions, 0 deletions
diff --git a/x11-misc/donut/Manifest b/x11-misc/donut/Manifest
new file mode 100644
index 0000000..773ddb6
--- /dev/null
+++ b/x11-misc/donut/Manifest
@@ -0,0 +1,2 @@
+DIST donut-4.tar.bz2 14201 BLAKE2B 534f35718c13e171c28d0dd8803edddc31284d46f60ba548bccf02f3fd20b10fd4706b10d9a645ec9a500ffd42f2df07088bd6274521469180224557c6d06155 SHA512 c43efb3243a07b53acb6caaf233f04e0060201fc99e057c66a5b186e6d11d3f4ef582cd2125388377057df352913a9fc4227ded804976c0cbbd70e6016838387
+EBUILD donut-4.ebuild 836 BLAKE2B 40d280d07c404145942565b5a791f8b67a23eea27955a06f94ac226717d2b4b2aff37cd03af6a1c202532fd613749a2dfc87821f3b2ef021aeaf11d9d90dd994 SHA512 0714490d78f6ae078836244bdcbcc1ec1905b0036a1e2422e2f6ec79de8d59ed1cc0849a1453368c4fb06e2564cf99de998f0427e871f2bff3a0330304bb79f6
diff --git a/x11-misc/donut/donut-4.ebuild b/x11-misc/donut/donut-4.ebuild
new file mode 100644
index 0000000..783a5c5
--- /dev/null
+++ b/x11-misc/donut/donut-4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="spinning X11 donut"
+HOMEPAGE="https://git.turret.cyou/progs/donut.git/about/"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.turret.cyou/progs/donut.git"
+else
+ SRC_URI="https://git.turret.cyou/progs/donut.git/snapshot/${P}.tar.bz2"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+RESTRICT="mirror"
+DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s/ -Os//" \
+ -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
+ config.mk || die
+
+ restore_config config.h
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) donut
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+
+ save_config config.h
+}