summaryrefslogtreecommitdiff
path: root/dev-tcltk/togl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-18 11:56:49 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-18 11:56:49 +0000
commit95b557bc48bb734c288bac87dcfe98b8ae3d1cdb (patch)
treec5ffde10d5eed804daa50794c905d6b228af7177 /dev-tcltk/togl
parent3b34ca9eec2676e6fe530f34e463f52308a11441 (diff)
gentoo auto-resync : 18:01:2023 - 11:56:49
Diffstat (limited to 'dev-tcltk/togl')
-rw-r--r--dev-tcltk/togl/Manifest2
-rw-r--r--dev-tcltk/togl/files/togl-2.0-clang6.patch11
-rw-r--r--dev-tcltk/togl/togl-2.0-r4.ebuild48
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-tcltk/togl/Manifest b/dev-tcltk/togl/Manifest
index bf7ce523fd0d..79c1475a0f13 100644
--- a/dev-tcltk/togl/Manifest
+++ b/dev-tcltk/togl/Manifest
@@ -1,3 +1,5 @@
+AUX togl-2.0-clang6.patch 364 BLAKE2B f92965e696d1bcfae9a20873620a409c039a557a86e614e8416f17e6af024512a7ddfb1afafa3f30ca4e83dd201f3aaf7063de2ff7cb5900fea9e5c7f4386a12 SHA512 33883164f4411c02917f52a338cee67ea5cd23fce6e56c4b33945ff01e785ef320676d2d067ae23deb7188ad8c000fadbb9fba063271d05170c7a62f81a94342
DIST Togl2.0-src.tar.gz 244968 BLAKE2B f094fb4bba7049470d7f61a2748d4a5baaf47c99c766d96ef8061e254673acf7f2a11555e202ec01f5d6b7a00ae7c275a33981fba5df7f1478f69da17f3180b8 SHA512 2be3062baada848d96b2802582bc5590b215f2ab4dc02c91761e72af2bf8c0ba768a71a2ffb8107bca83b63b7d1321ee83de19b97f83b1c2f0962f9288948b0a
EBUILD togl-2.0-r3.ebuild 838 BLAKE2B d7f9503ea15c3f04de3c3deb7accd73b32e553ca7aba6bb557300366ce4b26658fb74d35c243c9735c483f7acd5aa60481a335b427612e6b1c4408833e9d3ace SHA512 b0bdbd42db6d8e70144a32b8921b1a67ee68d257c40ffd2e01ffc7922c8ce5022b533c1dd38b9e1c12c13c5cbdbe43e10dc3648da7eb60cab14b7e5c60ea7d92
+EBUILD togl-2.0-r4.ebuild 890 BLAKE2B 2af4719b50b2e0177c193b8bbd82b2ce7f2bb6afde60c6848127c92de7bfa7204c8f68a9e129daf0872398f992366a516efd20a625ed91502307995e74b49a0b SHA512 74be9e9c9270f4789a20ef285d4b8aabeb73c49909ee5de56c63061230fe6344ff788fee33de02da3a355e3d084289c1e9b098f3a6c8343be3746c13a9304af9
MISC metadata.xml 1193 BLAKE2B ae38c64fd636de488d4016f822d5046e9db1266daff8ce6334528c11773e9b9ecc5cbdb04ef26195df584e7daa66458c556b7ef30d1e6ddf07539847ba2f1991 SHA512 3f41769a4d62d9c97624a04a6c1ec75589a5840f766fcb1be4232c91698f768d54b80efedd6e3cebc94bef3f0b8df7a13415b804cc38d51f1f30f61b863ccca4
diff --git a/dev-tcltk/togl/files/togl-2.0-clang6.patch b/dev-tcltk/togl/files/togl-2.0-clang6.patch
new file mode 100644
index 000000000000..e227c2236f8f
--- /dev/null
+++ b/dev-tcltk/togl/files/togl-2.0-clang6.patch
@@ -0,0 +1,11 @@
+--- a/togl.c 2023-01-18 07:31:37.816199176 +0100
++++ b/togl.c 2023-01-18 07:33:08.946629940 +0100
+@@ -132,7 +132,7 @@
+ /* pointer to Tk_SetClassProcs function in the stub table */
+
+ static void (*SetClassProcsPtr)
+- _ANSI_ARGS_((Tk_Window, Tk_ClassProcs *, ClientData));
++ _ANSI_ARGS_((Tk_Window, const Tk_ClassProcs *, ClientData));
+ #endif
+
+ /*
diff --git a/dev-tcltk/togl/togl-2.0-r4.ebuild b/dev-tcltk/togl/togl-2.0-r4.ebuild
new file mode 100644
index 000000000000..b6c050d682e5
--- /dev/null
+++ b/dev-tcltk/togl/togl-2.0-r4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P=Togl${PV}
+
+DESCRIPTION="A Tk widget for OpenGL rendering"
+HOMEPAGE="http://togl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug +threads"
+
+RDEPEND="
+ dev-lang/tk:*
+ media-libs/mesa[X]
+ x11-libs/libXmu"
+DEPEND="${RDEPEND}"
+
+# tests directory is missing
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-clang6.patch )
+
+src_prepare() {
+ default
+ sed \
+ -e 's:-fomit-frame-pointer::g' \
+ -e 's:-O2::g' \
+ -e 's:-pipe::g' \
+ -i configure || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug symbols) \
+ $(use_enable threads)
+}
+
+src_install() {
+ HTML_DOCS=( doc/* )
+ default
+}