aboutsummaryrefslogtreecommitdiffstats
path: root/x11-misc/donut/donut-4.ebuild
diff options
context:
space:
mode:
authorturret <turret@duck.com>2023-06-30 19:10:10 -0500
committerturret <turret@duck.com>2023-06-30 19:10:10 -0500
commit13ac9e7422105c69fb970cac234e09bcc73829c6 (patch)
tree36bd6660f79688d42a903e672a9c9b59535fc5b4 /x11-misc/donut/donut-4.ebuild
parent0c47825062afccbaee13ae9e90094fe9d2bedc6a (diff)
downloadportage-overlay-13ac9e7422105c69fb970cac234e09bcc73829c6.tar.gz
portage-overlay-13ac9e7422105c69fb970cac234e09bcc73829c6.tar.bz2
portage-overlay-13ac9e7422105c69fb970cac234e09bcc73829c6.zip
media-gfx/donut -> x11-misc/donut
Diffstat (limited to 'x11-misc/donut/donut-4.ebuild')
-rw-r--r--x11-misc/donut/donut-4.ebuild44
1 files changed, 44 insertions, 0 deletions
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
+}