mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
games-board/scid: drop 4.7.0-r1
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST scid-4.7.0_x64_linux.tar.gz 129771457 BLAKE2B 65ad7b58685a498954ebcf5216287216e2d2805bf0379784195b096c9eb04b333a8bbfb6c020c321b66c63d7bad2cfba724750b4d26f8172f620047219f98a73 SHA512 c9fb6f19741d60fe4952c643240f7e2eaa476eab35379c0a053b35217fe7a4b9ecfbc68edc45df4c9a2354babe8e0ddd2211db014d5396ce9bbb59db531c1179
|
||||
DIST scid-5.0.2.zip 15661705 BLAKE2B 7d514d0e83b34a873e3c375fc14b83b76df30d7051139a230e82feb21ec7a53308b63a5b5f2ce336443a743014a4f2830dae6bfb9c116b66645aa61d6a67ef6f SHA512 0ccf3833ddc942e0577b5316089019098ba903ecbce011e83e0bf30efcf45fb48bdceb1309160c65bb0fc69696301b00df8d777e860bf31efa44e4aa330e2477
|
||||
DIST scid-code-4.7.0.zip 15782104 BLAKE2B f1b927a1b23478d2e27a098e2ec99acb9a2061c373686cfcfa14ac219a1dce47468c3e46b3fe786655792177c86180bbe8e1dc91927b3ad2a80ea9b0bdb17fd3 SHA512 3c43fb8877da4a8dda9c99b1b856fe3f3840c7013041d53c31c8411ecf2e9ccbaf3b7c098e35cb23f5d0d7cac6b7514ca3bfb719fcbc111f5e1ef07f765f2708
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<name>Gentoo Games Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="photos">Install collection of player photos (large)</flag>
|
||||
<flag name="scripts">Install additional python and tcl utility scripts</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit cmake desktop optfeature python-single-r1
|
||||
|
||||
DESCRIPTION="Shane's Chess Information Database"
|
||||
HOMEPAGE="https://scid.sourceforge.net/"
|
||||
SRC_URI="
|
||||
https://downloads.sourceforge.net/scid/${PN}-code-${PV}.zip
|
||||
https://downloads.sourceforge.net/scid/${P}_x64_linux.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="photos 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}"/${P}-system-gtest.patch
|
||||
"${FILESDIR}"/${P}-tcl-start-path.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,scidlet}
|
||||
|
||||
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
|
||||
|
||||
insinto /usr/share/scid
|
||||
doins scid{,_es,_fr}.eco "${WORKDIR}"/${P}/spelling.ssp
|
||||
use photos && doins -r "${WORKDIR}"/${P}/photos
|
||||
|
||||
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
|
||||
|
||||
if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 4.7; then
|
||||
elog
|
||||
elog "Warning: this version uses ~/.scid4.7 and is incompatible with older ~/.scid"
|
||||
elog
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user