diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /games-board/scid | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'games-board/scid')
| -rw-r--r-- | games-board/scid/Manifest | 1 | ||||
| -rw-r--r-- | games-board/scid/files/scid-4.6.2-pgnfix-python3.patch | 98 | ||||
| -rw-r--r-- | games-board/scid/files/scid-4.7.0-system-gtest.patch | 16 | ||||
| -rw-r--r-- | games-board/scid/files/scid-4.7.0-tcl-start-path.patch | 7 | ||||
| -rw-r--r-- | games-board/scid/metadata.xml | 12 | ||||
| -rw-r--r-- | games-board/scid/scid-5.0.2.ebuild | 100 |
6 files changed, 0 insertions, 234 deletions
diff --git a/games-board/scid/Manifest b/games-board/scid/Manifest deleted file mode 100644 index 346bf0440fe1..000000000000 --- a/games-board/scid/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST scid-5.0.2.zip 15661705 BLAKE2B 7d514d0e83b34a873e3c375fc14b83b76df30d7051139a230e82feb21ec7a53308b63a5b5f2ce336443a743014a4f2830dae6bfb9c116b66645aa61d6a67ef6f SHA512 0ccf3833ddc942e0577b5316089019098ba903ecbce011e83e0bf30efcf45fb48bdceb1309160c65bb0fc69696301b00df8d777e860bf31efa44e4aa330e2477 diff --git a/games-board/scid/files/scid-4.6.2-pgnfix-python3.patch b/games-board/scid/files/scid-4.6.2-pgnfix-python3.patch deleted file mode 100644 index 264849c0eb30..000000000000 --- a/games-board/scid/files/scid-4.6.2-pgnfix-python3.patch +++ /dev/null @@ -1,98 +0,0 @@ -https://sourceforge.net/p/scid/patches/8/ ---- a/scripts/pgnfix.py -+++ b/scripts/pgnfix.py -@@ -12,7 +12,6 @@ - # put in the Site or Event field, and move them to the Date field. - - import sys --import string - import re - - if len(sys.argv) < 2: -@@ -69,16 +68,16 @@ - if match: - full = match.group(0) - last, first = match.groups() -- first = string.strip(first) -- full = string.strip(full) -- last = string.strip(last) -+ first = str.strip(first) -+ full = str.strip(full) -+ last = str.strip(last) - if first: - for name in (full, last, - last + " " + first, - last + ", " + first[0], - last + " " + first[0]): -- name = string.lower(name) -- if spelling.has_key(name): -+ name = str.lower(name) -+ if name in spelling: - del spelling[name] - else: - spelling[name] = full -@@ -107,16 +106,16 @@ - if error: - out = sys.stderr - error = 0 -- out.write(string.join(current, "")) -+ out.write("".join(current)) - current = [] - bad_lines = [] - else: - if headers: - for field, value in specials.items(): -- if not headers.has_key(field): -+ if not field in headers: - headers[field] = value - for field in order: -- if headers.has_key(field): -+ if field in headers: - current.append('[%s "%s"]\n' % (field, headers[field])) - del headers[field] - for field, value in headers.items(): -@@ -172,7 +171,7 @@ - specials["Date"] = "%04d.%02d.%02d" % (year, month, day) - value = re.sub("\(?([0-9]+)/([0-9]+)/([0-9]+)\)?", "", value) - -- value = string.strip(value) -+ value = str.strip(value) - - if field in ("White", "Black"): - name = re.sub("[MW][0-9]{5}", "", value) -@@ -193,21 +192,21 @@ - name = re.sub("_", " ", name) - name = re.sub("\.", "", name) - name = re.sub("([A-Za-z])([0-9])", "\\1 \\2", name) -- name = string.strip(name) -+ name = str.strip(name) - name = re.sub("^([A-Z]+?)\s*([A-Z][a-z].+)", "\\2, \\1", - name) - - name = re.sub(",\s*([GI]M)?$", "", name) - -- name = string.strip(name) -- t = string.lower(name) -+ name = str.strip(name) -+ t = str.lower(name) - -- if spelling.has_key(t): -+ if t in spelling: - name = spelling[t] - - headers[field] = name - -- elif not bogus.has_key(field) or not re.search(bogus[field], value): -+ elif not field in bogus or not re.search(bogus[field], value): - headers[field] = value - - if current: -@@ -215,7 +214,7 @@ - if error: - out = sys.stderr - error = 0 -- out.write(string.join(current, "")) -+ out.write("".join(current)) - current = [] - bad_lines = [] - diff --git a/games-board/scid/files/scid-4.7.0-system-gtest.patch b/games-board/scid/files/scid-4.7.0-system-gtest.patch deleted file mode 100644 index 4e4a38cdc934..000000000000 --- a/games-board/scid/files/scid-4.7.0-system-gtest.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- a/gtest/CMakeLists.txt -+++ b/gtest/CMakeLists.txt -@@ -19,8 +19,3 @@ - # googletest --if(NOT IS_DIRECTORY "${CMAKE_BINARY_DIR}/googletest") -- find_package(Git) -- execute_process(COMMAND ${GIT_EXECUTABLE} clone https://github.com/google/googletest.git) --endif() --set(gtest_force_shared_crt ON CACHE BOOL "Always use msvcrt.dll") --add_subdirectory(${CMAKE_BINARY_DIR}/googletest ${CMAKE_BINARY_DIR}/googletest/Build EXCLUDE_FROM_ALL) -+find_package(GTest REQUIRED) - -@@ -48,2 +43,2 @@ - target_compile_definitions(scid_tests PRIVATE -DSCID_TESTDIR=\"${CMAKE_CURRENT_LIST_DIR}/\") --target_link_libraries(scid_tests PRIVATE scid_base gtest_main) -+target_link_libraries(scid_tests PRIVATE scid_base ${GTEST_BOTH_LIBRARIES}) diff --git a/games-board/scid/files/scid-4.7.0-tcl-start-path.patch b/games-board/scid/files/scid-4.7.0-tcl-start-path.patch deleted file mode 100644 index 361700d7bc84..000000000000 --- a/games-board/scid/files/scid-4.7.0-tcl-start-path.patch +++ /dev/null @@ -1,7 +0,0 @@ ---- a/src/ui_tcltk.h -+++ b/src/ui_tcltk.h -@@ -59,3 +59,3 @@ - else dirname += 1; -- strcpy (dirname, "tcl/start.tcl"); -+ strcpy (dirname, "../share/scid/tcl/start.tcl"); - if (0 != Tcl_Access(sourceFileName, 4)) { diff --git a/games-board/scid/metadata.xml b/games-board/scid/metadata.xml deleted file mode 100644 index f43f9f2efd3c..000000000000 --- a/games-board/scid/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> - </maintainer> - <use> - <flag name="scripts">Install additional python and tcl utility scripts</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/games-board/scid/scid-5.0.2.ebuild b/games-board/scid/scid-5.0.2.ebuild deleted file mode 100644 index a259b4b6ce70..000000000000 --- a/games-board/scid/scid-5.0.2.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -inherit cmake desktop optfeature python-single-r1 - -DESCRIPTION="Shane's Chess Information Database" -HOMEPAGE="https://scid.sourceforge.net/" -SRC_URI=" - https://sourceforge.net/projects/scid/files/Scid/Scid%205.0/${PN}_src_${PV}.zip/download - -> ${P}.zip -" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="scripts test" -REQUIRED_USE="scripts? ( ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test )" - -COMMON_DEPEND=" - dev-lang/tcl:= - dev-lang/tk -" -RDEPEND=" - ${COMMON_DEPEND} - dev-tcltk/tkimg - scripts? ( ${PYTHON_DEPS} ) -" -DEPEND=" - ${COMMON_DEPEND} - test? ( dev-cpp/gtest ) -" -BDEPEND=" - app-arch/unzip - scripts? ( ${PYTHON_DEPS} ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-4.6.2-pgnfix-python3.patch - "${FILESDIR}"/${PN}-4.7.0-tcl-start-path.patch - "${FILESDIR}"/${PN}-4.7.0-system-gtest.patch -) - -HTML_DOCS=( help/. ) - -pkg_setup() { - use scripts && python-single-r1_pkg_setup -} - -src_prepare() { - cmake_src_prepare - - if use scripts; then - python_fix_shebang scripts/pgnfix.py - - # cmake build doesn't use "tkscid" anymore but scripts still do - sed -i s/tkscid/scid/ scripts/*.tcl || die - fi -} - -src_configure() { - local mycmakeargs=( - -DBUILD_SHARED_LIBS=off - -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/share - -DGTEST=$(usex test) - ) - - cmake_src_configure -} - -src_test() { - "${BUILD_DIR}"/gtest/scid_tests || die -} - -src_install() { - cmake_src_install - - dobin "${BUILD_DIR}"/{phalanx-scid,scid} - - if use scripts; then - local script - # install same set of scripts as pre-cmake - for script in pgnfix.py {sc_{epgn,spell,eco,import},scidpgn,spliteco,spf2spi}.tcl sc_remote.tk; do - newbin scripts/${script} ${script%.*} - done - fi - - newicon resources/svg/scid_app.svg scid.svg - make_desktop_entry scid Scid - - # delete re-located files - rm -r -- "${ED}"/usr/share/{bin,scid/{scid,scripts}} || die -} - -pkg_postinst() { - optfeature "speech support" dev-tcltk/snack -} |
