aboutsummaryrefslogtreecommitdiffstats
path: root/media-gfx/donut/donut-3.ebuild
diff options
context:
space:
mode:
authorturret <turret@duck.com>2023-06-29 17:26:41 -0500
committerturret <turret@duck.com>2023-06-29 17:26:41 -0500
commitcbe845a7c4e0e37907cbc38efa9ff38784747a70 (patch)
treed15103454afcfd2094701a1899558666ca737945 /media-gfx/donut/donut-3.ebuild
parent851f27fae93e399aac0c8b85367a78994542f554 (diff)
downloadportage-overlay-cbe845a7c4e0e37907cbc38efa9ff38784747a70.tar.gz
portage-overlay-cbe845a7c4e0e37907cbc38efa9ff38784747a70.tar.bz2
portage-overlay-cbe845a7c4e0e37907cbc38efa9ff38784747a70.zip
media-gfx/donut-3: version bump
Diffstat (limited to 'media-gfx/donut/donut-3.ebuild')
-rw-r--r--media-gfx/donut/donut-3.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/media-gfx/donut/donut-3.ebuild b/media-gfx/donut/donut-3.ebuild
new file mode 100644
index 0000000..8ca153d
--- /dev/null
+++ b/media-gfx/donut/donut-3.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/donut.git/about/"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.turret.cyou/donut.git"
+else
+ SRC_URI="https://git.turret.cyou/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
+}