commit: 03219da69e8233b69092bd83652abf1b27cc218a Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Thu Jan 19 07:42:04 2023 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Thu Jan 19 07:42:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03219da6
dev-tcltk/tktable: add 2.10.8 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-tcltk/tktable/Manifest | 1 + .../tktable/files/tktable-2.10.8-clang6.patch | 20 ++++++++++++++ dev-tcltk/tktable/metadata.xml | 1 + dev-tcltk/tktable/tktable-2.10.8.ebuild | 32 ++++++++++++++++++++++ 4 files changed, 54 insertions(+) diff --git a/dev-tcltk/tktable/Manifest b/dev-tcltk/tktable/Manifest index 47558485893b..fedd8cd14556 100644 --- a/dev-tcltk/tktable/Manifest +++ b/dev-tcltk/tktable/Manifest @@ -1 +1,2 @@ DIST Tktable2.10.tar.gz 284135 BLAKE2B ff3a37aac53418e7993a310d38ae23b7ec2673e0b44c118ff558a6c3c3805b39bf77f099287e91298fb4a6afacebde68a09171c6b90ecd11f48ac2a33fa3b312 SHA512 d69b1c766abb2833f48c900ca4d4fd3927f138ddf728dd76f2087a784604daa4356ec60a146e71d2fb2508a644598711e0373cb81dbfb0272b7ad16a0754e899 +DIST tktable-2.10.8.tar.gz 308245 BLAKE2B 4ede838e8553244dabd71d9543094bf5dfc82bd74f31ac9b4d4eea7bb2ee7406d90b16198d700eddfccd236160be1b7ed9a1f72f4760a71cddde5e01927ebb42 SHA512 927dad616306f0af477d1ce801ded962d966f7b46904b0a6b6772d1c9140310ff4c93a90ad4cb228495febae8be5f3ded9a328f621ba34195a339fc29d000f04 diff --git a/dev-tcltk/tktable/files/tktable-2.10.8-clang6.patch b/dev-tcltk/tktable/files/tktable-2.10.8-clang6.patch new file mode 100644 index 000000000000..ddf87cbe6814 --- /dev/null +++ b/dev-tcltk/tktable/files/tktable-2.10.8-clang6.patch @@ -0,0 +1,20 @@ +--- a/generic/tkTableTag.c 2023-01-17 22:12:25.754449096 +0100 ++++ b/generic/tkTableTag.c 2023-01-17 22:12:49.819092428 +0100 +@@ -22,7 +22,7 @@ + static int TableOptionReliefSet _ANSI_ARGS_((ClientData clientData, + Tcl_Interp *interp, Tk_Window tkwin, + CONST84 char *value, char *widgRec, int offset)); +-static char * TableOptionReliefGet _ANSI_ARGS_((ClientData clientData, ++static const char *TableOptionReliefGet _ANSI_ARGS_((ClientData clientData, + Tk_Window tkwin, char *widgRec, int offset, + Tcl_FreeProc **freeProcPtr)); + +@@ -1340,7 +1340,7 @@ + *---------------------------------------------------------------------- + */ + +-static char * ++static const char * + TableOptionReliefGet(clientData, tkwin, widgRec, offset, freeProcPtr) + ClientData clientData; /* Type of struct being set. */ + Tk_Window tkwin; /* Window containing canvas widget. */ diff --git a/dev-tcltk/tktable/metadata.xml b/dev-tcltk/tktable/metadata.xml index 6038d835ca0a..b29e11480553 100644 --- a/dev-tcltk/tktable/metadata.xml +++ b/dev-tcltk/tktable/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <upstream> <remote-id type="sourceforge">tktable</remote-id> + <remote-id type="github">wjoye/tktable</remote-id> </upstream> </pkgmetadata> diff --git a/dev-tcltk/tktable/tktable-2.10.8.ebuild b/dev-tcltk/tktable/tktable-2.10.8.ebuild new file mode 100644 index 000000000000..e5ba3955a68e --- /dev/null +++ b/dev-tcltk/tktable/tktable-2.10.8.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="full-featured 2D table widget" +HOMEPAGE="https://github.com/wjoye/tktable" +SRC_URI="https://github.com/wjoye/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~ppc ~x86" +SLOT="0" +IUSE="" +RESTRICT="test" + +DEPEND=">=dev-lang/tk-8.0:=" +RDEPEND="${DEPEND}" + +HTML_DOCS=( doc/tkTable.html ) +DOCS=( ChangeLog README.txt release.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-2.10-parallelMake.patch + "${FILESDIR}"/${P}-clang6.patch +) + +src_prepare() { + default + sed -e '/^install:/{s: install-doc::}' \ + -e '/^PKG_EXTRA_FILES/{s:=.*:=:}' -i Makefile.in || die +}