]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
Add x11-apps/dragon ebuild.
authorNick Bowler <nbowler@draconx.ca>
Fri, 19 Jun 2020 03:13:41 +0000 (23:13 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 19 Jun 2020 03:14:01 +0000 (23:14 -0400)
x11-apps/dragon/Manifest [new file with mode: 0644]
x11-apps/dragon/dragon-1.1.1.ebuild [new file with mode: 0644]

diff --git a/x11-apps/dragon/Manifest b/x11-apps/dragon/Manifest
new file mode 100644 (file)
index 0000000..3a3ae84
--- /dev/null
@@ -0,0 +1,2 @@
+DIST dragon-1.1.1.tar.gz 17178 BLAKE2B bfe8cbda4beaf62de670eb2a02ad96b0289abd8ed2929ed35ddab2887ef63c6555dca1aad8bd73e87212ac79c8bfebd52371c9acaef180b475dab5ba03e01635 SHA512 e94a91752ff1af25452c09fb85ca318b29cb2301178346d3ff84ffd6270f6cf03e6f90c0db2e39567f5f724fdf8e6551a16e051b78920236c8177d965c209700
+EBUILD dragon-1.1.1.ebuild 915 BLAKE2B 6f648acfca6fdeaf837fbc52da7053a56108049ed02990c22159b741219097c3c00f09c6c6b925c46147d28aca08af109e2620a617dc9b95608cf66da00ba7f6 SHA512 7fe82fb3c18fe380af282f57f3c138d8ea3b5f6344262c1ca89533518139a74bafd964b2fc5e8be0c7b20699f874e59b397ec2cfeb83c467e0b58459047c5826
diff --git a/x11-apps/dragon/dragon-1.1.1.ebuild b/x11-apps/dragon/dragon-1.1.1.ebuild
new file mode 100644 (file)
index 0000000..ed8fbf9
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Simple drag and drop source/target for X"
+HOMEPAGE="https://github.com/mwh/dragon"
+SRC_URI="https://github.com/mwh/dragon/archive/v$PV.tar.gz -> $P.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="x11-libs/gtk+:3"
+RDEPEND="$DEPEND"
+
+src_prepare () {
+       cat >GNUmakefile <<'EOF'
+GTK_CFLAGS := $(shell pkg-config --cflags gtk+-3.0)
+
+ALL_CPPFLAGS := -std=c99 -Wall $(filter -D% -I%,$(GTK_CFLAGS)) $(CPPFLAGS)
+ALL_CFLAGS := -std=c99 -Wall $(filter-out -D% -I%,$(GTK_CFLAGS)) $(CFLAGS)
+LIBS := $(shell pkg-config --libs gtk+-3.0)
+
+dragon: dragon.o
+       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+.c.o:
+       $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<
+EOF
+       default
+}
+
+src_compile () {
+       emake CC=$(tc-getCC)
+}
+
+src_install () {
+       dobin dragon
+       dodoc README
+}