sys-apps/calculate-utils: remove old versions
This commit is contained in:
parent
d2299c10d9
commit
9ca5130811
5 changed files with 0 additions and 1314 deletions
|
@ -1,6 +1,4 @@
|
|||
DIST calculate-utils-3.7.6.11.tar.gz 2907180 BLAKE2B 89165588f384a88b76310fd0ce0675da0a75e0f2f8282c02b752f6277176534c86f4dc6ee51a202362975cc9aacc6a34bdf3ef42f23db9c7d4993bb60d6167f8 SHA512 b5c7eddd4da54ac55c888362da83346481d7704992f1b2d8b337678148866351fd68eeed14b2192b818ad0d0c98b940b340ece2dffc251a6421775b72f432d85
|
||||
DIST calculate-utils-3.7.6.12.tar.gz 2907616 BLAKE2B c9cdd4fccd0692ee4c91669ccf3fa3101bd110440a216764fc37e31a5e191b817eaeda84ea98eeda7c4c2eba6dbe0b5796c51f2489882b77c944e6912668c6e0 SHA512 dda571a41ec0841bf62b742c35e3a9348428e837bc23e93ac0b441a95fe7ebdb8c34a318b8e9cda62262625fdf06e2d05a754dd83af6f4d645b89e67bfed0a01
|
||||
DIST calculate-utils-3.7.6.13.tar.gz 2900356 BLAKE2B 3a9f4c096a18eb01cb247985ea6ae1b6776e913d9b5207a69d7c02eac96056ad86e2e8e50e0c5283eb47cd33fb31c60c1f8f390f7f964bd58cff6e50f227d2e8 SHA512 14af168e3f6dcce94c007114685f210fe580a9faf218d9eeaac92e9d0d314802d2fb56949ea73151c72589887d8afb7868a9e6eb91a469aa71007f214006eba6
|
||||
DIST calculate-utils-3.7.6.15.tar.gz 2900362 BLAKE2B 2333d7df841e80b205d39d079e0803fb65817d4f380bada9f0e1e710ce7b1f18e4508827c5c5096621941fcaf726704c3e91f11b66439f447bcc6d337eb9beba SHA512 081bdadc946accd4dd79a5036a4bdc8b691c11c4cb0d8dbfb7b33a502f78ce6ba42e5c12fd480afe218fe95823b3e369aa3f84b1df3106d0896f8c74d09541ab
|
||||
DIST calculate-utils-3.7.6.16.tar.gz 2900393 BLAKE2B f9b0bb3b10f557c868bee5258d1ec38b9385085bc496e23f8f31e5b8b0cb1281d43171b76d5670855c2bc6ef576c57ba48adf67861cd751bece8f1b1473b94d5 SHA512 7b26f0fc87646caa9d9b448bee591eeb13d0270f453bd353dde4cc89602876975a7277a361ad02df02c2e01f0473b46ff4f3979c418d704090a9311c717db7eb
|
||||
DIST calculate-utils-3.7.6.9.tar.gz 2910962 BLAKE2B 29e6e815fe81e26cb5d95d21f4a9039dd78a59d635895dea1150080c3bd259f36ac518bfe876666d8573202be25ae52cd46969a27b6e57cc86f227b4b6715a97 SHA512 0a15a40a049e1840817a466e7e0d14dd0f55636551c7c854e4abd850be011b75f251f338f8bc8a9a984706b947d2c4ec24b0c3d72f4bf0742e04c554b430503a
|
||||
|
|
|
@ -1,331 +0,0 @@
|
|||
# Copyright 2007-2024 Mir Calculate
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate_utilities"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_REPO_URI="https://git.calculate-linux.org/calculate/calculate-utils.git"
|
||||
else
|
||||
SRC_URI="https://git.calculate-linux.org/calculate/calculate-utils/archive/${PV}.tar.gz -> calculate-utils-${PV}.tar.gz"
|
||||
KEYWORDS="amd64"
|
||||
S="${WORKDIR}/${PN}"
|
||||
fi
|
||||
|
||||
IUSE="backup client console dbus desktop +gpg +install minimal pxe qt6"
|
||||
distutils_enable_tests unittest
|
||||
|
||||
CALCULATE_MODULES_=(
|
||||
"core"
|
||||
"builder"
|
||||
"update"
|
||||
"i18n"
|
||||
"lib"
|
||||
"install"
|
||||
)
|
||||
|
||||
declare -g -A CALCULATE_MODULES_USE_=(
|
||||
["console-gui"]="qt6"
|
||||
["desktop"]="desktop"
|
||||
["client"]="client"
|
||||
["console"]="console"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
local core_file_path="src/calculate/core/wsdl_core.py"
|
||||
if ! use backup; then
|
||||
sed -ir "s/'cl-backup'/None/" $core_file_path
|
||||
sed -ir "s/'cl-backup-restore'/None/" $core_file_path
|
||||
sed -ir "s/__('Backup')/None/g" $core_file_path
|
||||
|
||||
einfo "Disable backups in core module"
|
||||
fi
|
||||
|
||||
local lib_file_path="src/calculate/lib/variables/__init__.py"
|
||||
sed -ri "/class VariableClVer/{N;N;N;N;s/value = \".*?\"/value = \"${PV}\"/;}" \
|
||||
$lib_file_path || die
|
||||
einfo "Change version in $lib_file_path => $PV"
|
||||
|
||||
use_flags=()
|
||||
for exc_module in ${!CALCULATE_MODULES_USE_[@]}; do
|
||||
use_flag=${CALCULATE_MODULES_USE_[$exc_module]}
|
||||
if ! use $use_flag; then
|
||||
[[ $exc_module == "console-gui" ]] && exc_module="consolegui"
|
||||
remove_path="src/calculate/${exc_module}"
|
||||
rm -rf ${remove_path} || die "Can't remove module from path: ${remove_path}"
|
||||
elog "Module calculate.${exc_module} removed."
|
||||
else
|
||||
[[ $exc_module == "console-gui" ]] && use_flag="console-gui"
|
||||
use_flags+=(${use_flag})
|
||||
fi
|
||||
done
|
||||
use_flags=${use_flags[@]}
|
||||
|
||||
cat >> setup.cfg <<-EOF
|
||||
|
||||
[use_flags]
|
||||
flags = ${use_flags// /,}
|
||||
EOF
|
||||
}
|
||||
|
||||
python_configure() {
|
||||
esetup.py build_mo
|
||||
}
|
||||
|
||||
install_openrc_daemons() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doinitd $(find "resources/scripts/openrc_daemon" -maxdepth 1 -type f)
|
||||
use client && doinitd resources/scripts/openrc_daemon/client/*
|
||||
}
|
||||
|
||||
install_xdm() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local xdm_pth="/usr/share/calculate/xdm"
|
||||
exeinto ${xdm_pth}
|
||||
insinto ${xdm_pth}
|
||||
if use desktop; then
|
||||
doexe $(find "resources/scripts/xdm_files/desktop" -executable -type f)
|
||||
doins $(find "resources/scripts/xdm_files/desktop" ! -executable -type f)
|
||||
fi
|
||||
|
||||
use client && doexe resources/scripts/xdm_files/client/wait_domain
|
||||
|
||||
insinto /usr/share/calculate/xdm/login.d
|
||||
if use desktop; then
|
||||
doins resources/scripts/xdm_files/login.d/desktop/*
|
||||
fi
|
||||
|
||||
use client && doins resources/scripts/xdm_files/login.d/client/*
|
||||
|
||||
insinto /usr/share/calculate/xdm/logout.d
|
||||
use desktop && doins resources/scripts/xdm_files/logout.d/desktop/*
|
||||
use client && doins resources/scripts/xdm_files/logout.d/client/*
|
||||
}
|
||||
|
||||
install_sbin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dosbin $(find "resources/scripts/sbin" -maxdepth 1 -type f)
|
||||
use client && dosbin resources/scripts/sbin/client/*
|
||||
}
|
||||
|
||||
install_man() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doman -i18n=ru resources/man/ru/*.1
|
||||
doman resources/man/*.1
|
||||
}
|
||||
|
||||
install_libexec() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /usr/libexec/calculate
|
||||
|
||||
use dbus && doexe resources/scripts/libexec/dbus/*
|
||||
doexe $(find "resources/scripts/libexec" -maxdepth 1 -type f)
|
||||
}
|
||||
|
||||
install_doc() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dodoc -r resources/*.html
|
||||
}
|
||||
|
||||
install_bin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /bin
|
||||
doexe resources/scripts/bin/*
|
||||
exeinto /usr/bin
|
||||
doexe resources/scripts/usr/bin/*
|
||||
}
|
||||
|
||||
install_data_images() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local themes=("gnome" "hicolor")
|
||||
|
||||
insinto /usr/share/icons/Calculate/16x16/client-gui
|
||||
doins -r resources/data/images/*
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r resources/data/pixmaps
|
||||
doins -r resources/data/applications
|
||||
|
||||
insinto /usr/share/calculate/themes/
|
||||
doins -r resources/data/install
|
||||
|
||||
for theme in ${themes[@]}; do
|
||||
insinto /usr/share/icons/${theme}
|
||||
doins -r resources/data/non_scalable/*
|
||||
|
||||
insinto /usr/share/icons/${theme}/scalable/apps
|
||||
doins -r resources/data/scalable/*
|
||||
done
|
||||
}
|
||||
|
||||
python_install() {
|
||||
if use qt6; then
|
||||
local scriptdir=${EPREFIX}/usr/bin
|
||||
local root=${BUILD_DIR}/install
|
||||
local reg_scriptdir=${root}/${scriptdir}
|
||||
|
||||
python_newscript ${reg_scriptdir}/cl-console-gui cl-console-gui-install
|
||||
python_newscript ${reg_scriptdir}/cl-console-gui cl-console-gui-update
|
||||
|
||||
install_data_images
|
||||
|
||||
insinto /etc/xdg/autostart
|
||||
doins resources/data/cl-update-checker.desktop
|
||||
fi
|
||||
|
||||
distutils-r1_python_install
|
||||
|
||||
install_openrc_daemons
|
||||
install_libexec
|
||||
install_xdm
|
||||
install_sbin
|
||||
install_man
|
||||
install_doc
|
||||
install_bin
|
||||
|
||||
if use dbus; then
|
||||
insinto /usr/share/dbus-1/system.d
|
||||
doins resources/configs/conf/*
|
||||
|
||||
insinto /usr/share/dbus-1/system-services
|
||||
doins resources/configs/service/*
|
||||
fi
|
||||
|
||||
# domo "${S}"/src/calculate/locale/**/LC_MESSAGES/*.mo
|
||||
|
||||
keepdir /etc/calculate
|
||||
keepdir /var/log/calculate
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-setup
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-patch
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update-profile
|
||||
}
|
||||
|
||||
BDEPEND="$(python_gen_cond_dep 'dev-python/setuptools-scm[${PYTHON_USEDEP}]')"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libbsd
|
||||
install? ( >=app-cdr/cdrtools-3.01_alpha13
|
||||
>=sys-boot/grub-2.00-r3
|
||||
>=sys-boot/syslinux-5
|
||||
sys-fs/squashfs-tools
|
||||
sys-fs/dosfstools
|
||||
sys-block/parted
|
||||
sys-apps/gptfdisk
|
||||
sys-fs/lvm2
|
||||
sys-fs/mdadm
|
||||
)
|
||||
!minimal? (
|
||||
>=sys-apps/util-linux-2.19.1
|
||||
net-misc/rsync
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-libs/openssl
|
||||
dev-python/m2crypto[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)
|
||||
gpg? (
|
||||
app-crypt/gnupg
|
||||
app-crypt/openpgp-keys-calculate-release
|
||||
)
|
||||
dev-python/jaraco-functools[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/aiohttp
|
||||
sys-apps/iproute2[-minimal]
|
||||
sys-apps/pciutils
|
||||
app-arch/xz-utils
|
||||
app-portage/eix
|
||||
app-portage/portage-utils
|
||||
|
||||
sys-apps/debianutils
|
||||
sys-kernel/installkernel
|
||||
|
||||
app-eselect/eselect-repository
|
||||
>=virtual/udev-197
|
||||
!app-misc/livecd-tools
|
||||
sys-apps/coreutils[xattr]
|
||||
|
||||
pxe? ( sys-apps/calculate-server
|
||||
net-ftp/tftp-hpa
|
||||
net-misc/dhcp
|
||||
net-fs/nfs-utils
|
||||
)
|
||||
|
||||
!<sys-apps/calculate-server-2.1.18-r1
|
||||
|
||||
qt6? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
media-gfx/imagemagick[jpeg]
|
||||
dev-python/PyQt6[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dbus? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
|
||||
desktop? (
|
||||
media-gfx/feh
|
||||
x11-apps/xmessage
|
||||
sys-apps/keyutils
|
||||
sys-auth/pam_keystore
|
||||
dev-lang/swig
|
||||
dev-qt/qdbus
|
||||
sys-apps/edid-decode
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
client? (
|
||||
dev-python/python-ldap[ssl,${PYTHON_USEDEP}]
|
||||
sys-auth/pam_client
|
||||
>=sys-auth/pam_ldap-180[ssl]
|
||||
>=sys-auth/nss_ldap-239
|
||||
)
|
||||
backup? ( !sys-apps/calculate-server )
|
||||
"
|
||||
# server? (
|
||||
# sys-auth/pam_ldap
|
||||
# sys-auth/nss_ldap
|
||||
# dev-python/python-ldap[${PYTHON_USEDEP}]
|
||||
# )
|
||||
#
|
||||
#
|
||||
# server? ( !sys-apps/calculate-server )
|
||||
|
||||
DEPEND="
|
||||
sys-devel/gettext"
|
||||
|
||||
#REQUIRED_USE="client? ( desktop )"
|
|
@ -1,325 +0,0 @@
|
|||
# Copyright 2007-2024 Mir Calculate
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
|
||||
HOMEPAGE="https://www.calculate-linux.org/main/en/calculate_utilities"
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_REPO_URI="https://git.calculate-linux.org/calculate/calculate-utils.git"
|
||||
else
|
||||
SRC_URI="https://git.calculate-linux.org/calculate/calculate-utils/archive/${PV}.tar.gz -> calculate-utils-${PV}.tar.gz"
|
||||
KEYWORDS="amd64"
|
||||
S="${WORKDIR}/${PN}"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="backup client console dbus desktop +gpg +install minimal pxe qt6"
|
||||
REQUIRED_USE="client? ( desktop )"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
CALCULATE_MODULES_=(
|
||||
"core"
|
||||
"builder"
|
||||
"update"
|
||||
"i18n"
|
||||
"lib"
|
||||
"install"
|
||||
)
|
||||
declare -g -A CALCULATE_MODULES_USE_=(
|
||||
["console-gui"]="qt6"
|
||||
["desktop"]="desktop"
|
||||
["client"]="client"
|
||||
["console"]="console"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
local core_file_path="src/calculate/core/wsdl_core.py"
|
||||
if ! use backup; then
|
||||
sed -ir "s/'cl-backup'/None/" "${core_file_path}"
|
||||
sed -ir "s/'cl-backup-restore'/None/" "${core_file_path}"
|
||||
sed -ir "s/__('Backup')/None/g" "${core_file_path}"
|
||||
|
||||
einfo "Disable backups in core module"
|
||||
fi
|
||||
|
||||
local lib_file_path="src/calculate/lib/variables/__init__.py"
|
||||
sed -ri "/class VariableClVer/{N;N;N;N;s/value = \".*?\"/value = \"${PV}\"/;}" \
|
||||
"${lib_file_path}" || die
|
||||
einfo "Change version in \"${lib_file_path}\" => \"${PV}\""
|
||||
|
||||
use_flags=()
|
||||
for exc_module in ${!CALCULATE_MODULES_USE_[@]}; do
|
||||
use_flag=${CALCULATE_MODULES_USE_[${exc_module}]}
|
||||
if ! use $use_flag; then
|
||||
[[ ${exc_module} == "console-gui" ]] && exc_module="consolegui"
|
||||
remove_path="src/calculate/${exc_module}"
|
||||
rm -rf "${remove_path}" || die "Can't remove module from path: \"${remove_path}\""
|
||||
elog "Module calculate.${exc_module} removed."
|
||||
else
|
||||
[[ $exc_module == "console-gui" ]] && use_flag="console-gui"
|
||||
use_flags+=(${use_flag})
|
||||
fi
|
||||
done
|
||||
use_flags=${use_flags[@]}
|
||||
|
||||
cat >> setup.cfg <<-EOF
|
||||
|
||||
[use_flags]
|
||||
flags = ${use_flags// /,}
|
||||
EOF
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
esetup.py build_mo
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
install_openrc_daemons() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doinitd $(find resources/scripts/openrc_daemon -maxdepth 1 -type f)
|
||||
use client && doinitd resources/scripts/openrc_daemon/client/*
|
||||
}
|
||||
|
||||
install_xdm() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local xdm_pth="/usr/share/calculate/xdm"
|
||||
exeinto "${xdm_pth}"
|
||||
insinto "${xdm_pth}"
|
||||
if use desktop; then
|
||||
doexe $(find "resources/scripts/xdm_files/desktop" -executable -type f)
|
||||
doins $(find "resources/scripts/xdm_files/desktop" ! -executable -type f)
|
||||
fi
|
||||
|
||||
use client && doexe resources/scripts/xdm_files/client/wait_domain
|
||||
|
||||
insinto /usr/share/calculate/xdm/login.d
|
||||
if use desktop; then
|
||||
doins resources/scripts/xdm_files/login.d/desktop/*
|
||||
fi
|
||||
|
||||
use client && doins resources/scripts/xdm_files/login.d/client/*
|
||||
|
||||
insinto /usr/share/calculate/xdm/logout.d
|
||||
use desktop && doins resources/scripts/xdm_files/logout.d/desktop/*
|
||||
use client && doins resources/scripts/xdm_files/logout.d/client/*
|
||||
}
|
||||
|
||||
install_sbin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dosbin $(find resources/scripts/sbin -maxdepth 1 -type f)
|
||||
use client && dosbin resources/scripts/sbin/client/*
|
||||
}
|
||||
|
||||
install_man() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doman -i18n=ru resources/man/ru/*.1
|
||||
doman resources/man/*.1
|
||||
}
|
||||
|
||||
install_libexec() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /usr/libexec/calculate
|
||||
|
||||
use dbus && doexe resources/scripts/libexec/dbus/*
|
||||
doexe $(find resources/scripts/libexec -maxdepth 1 -type f)
|
||||
}
|
||||
|
||||
install_doc() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dodoc -r resources/*.html
|
||||
}
|
||||
|
||||
install_bin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /bin
|
||||
doexe resources/scripts/bin/*
|
||||
exeinto /usr/bin
|
||||
doexe resources/scripts/usr/bin/*
|
||||
}
|
||||
|
||||
install_data_images() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local themes=("gnome" "hicolor")
|
||||
|
||||
insinto /usr/share/icons/Calculate/16x16/client-gui
|
||||
doins -r resources/data/images/*
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r resources/data/pixmaps
|
||||
doins -r resources/data/applications
|
||||
|
||||
insinto /usr/share/calculate/themes/
|
||||
doins -r resources/data/install
|
||||
|
||||
for theme in ${themes[@]}; do
|
||||
insinto /usr/share/icons/${theme}
|
||||
doins -r resources/data/non_scalable/*
|
||||
|
||||
insinto /usr/share/icons/${theme}/scalable/apps
|
||||
doins -r resources/data/scalable/*
|
||||
done
|
||||
}
|
||||
|
||||
python_install() {
|
||||
if use qt6; then
|
||||
local scriptdir="${EPREFIX}"/usr/bin
|
||||
local root="${BUILD_DIR}"/install
|
||||
local reg_scriptdir="${root}/${scriptdir}"
|
||||
|
||||
python_newscript "${reg_scriptdir}"/cl-console-gui cl-console-gui-install
|
||||
python_newscript "${reg_scriptdir}"/cl-console-gui cl-console-gui-update
|
||||
|
||||
install_data_images
|
||||
|
||||
insinto /etc/xdg/autostart
|
||||
doins resources/data/cl-update-checker.desktop
|
||||
fi
|
||||
|
||||
distutils-r1_python_install
|
||||
|
||||
install_openrc_daemons
|
||||
install_libexec
|
||||
install_xdm
|
||||
install_sbin
|
||||
install_man
|
||||
install_doc
|
||||
install_bin
|
||||
|
||||
if use dbus; then
|
||||
insinto /usr/share/dbus-1/system.d
|
||||
doins resources/configs/conf/*
|
||||
|
||||
insinto /usr/share/dbus-1/system-services
|
||||
doins resources/configs/service/*
|
||||
fi
|
||||
|
||||
# domo "${S}"/src/calculate/locale/**/LC_MESSAGES/*.mo
|
||||
|
||||
keepdir /etc/calculate
|
||||
keepdir /var/log/calculate
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-setup
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-patch
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update-profile
|
||||
}
|
||||
|
||||
BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libbsd
|
||||
install? ( >=app-cdr/cdrtools-3.01_alpha13
|
||||
>=sys-boot/grub-2.00-r3
|
||||
>=sys-boot/syslinux-5
|
||||
sys-fs/squashfs-tools
|
||||
sys-fs/dosfstools
|
||||
sys-block/parted
|
||||
sys-apps/gptfdisk
|
||||
sys-fs/lvm2
|
||||
sys-fs/mdadm
|
||||
)
|
||||
!minimal? (
|
||||
>=sys-apps/util-linux-2.19.1
|
||||
net-misc/rsync
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-libs/openssl
|
||||
dev-python/m2crypto[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)
|
||||
gpg? (
|
||||
app-crypt/gnupg
|
||||
app-crypt/openpgp-keys-calculate-release
|
||||
)
|
||||
dev-python/jaraco-functools[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/aiohttp
|
||||
sys-apps/iproute2[-minimal]
|
||||
sys-apps/pciutils
|
||||
app-arch/xz-utils
|
||||
app-portage/eix
|
||||
app-portage/portage-utils
|
||||
|
||||
sys-apps/debianutils
|
||||
sys-kernel/installkernel
|
||||
|
||||
app-eselect/eselect-repository
|
||||
>=virtual/udev-197
|
||||
!app-misc/livecd-tools
|
||||
sys-apps/coreutils[xattr]
|
||||
|
||||
pxe? ( sys-apps/calculate-server
|
||||
net-ftp/tftp-hpa
|
||||
net-misc/dhcp
|
||||
net-fs/nfs-utils
|
||||
)
|
||||
|
||||
qt6? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
media-gfx/imagemagick[jpeg]
|
||||
dev-python/PyQt6[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dbus? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
|
||||
desktop? (
|
||||
media-gfx/feh
|
||||
x11-apps/xmessage
|
||||
sys-apps/keyutils
|
||||
sys-auth/pam_keystore
|
||||
dev-lang/swig
|
||||
dev-qt/qdbus
|
||||
sys-apps/edid-decode
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
client? (
|
||||
dev-python/python-ldap[ssl,${PYTHON_USEDEP}]
|
||||
sys-auth/pam_client
|
||||
>=sys-auth/pam_ldap-180[ssl]
|
||||
>=sys-auth/nss_ldap-239
|
||||
)
|
||||
backup? ( !sys-apps/calculate-server )
|
||||
"
|
||||
# server? (
|
||||
# sys-auth/pam_ldap
|
||||
# sys-auth/nss_ldap
|
||||
# dev-python/python-ldap[${PYTHON_USEDEP}]
|
||||
# )
|
||||
#
|
||||
# server? ( !sys-apps/calculate-server )
|
||||
|
||||
DEPEND="sys-devel/gettext"
|
|
@ -1,325 +0,0 @@
|
|||
# Copyright 2007-2024 Mir Calculate
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
|
||||
HOMEPAGE="https://www.calculate-linux.org/main/en/calculate_utilities"
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_REPO_URI="https://git.calculate-linux.org/calculate/calculate-utils.git"
|
||||
else
|
||||
SRC_URI="https://git.calculate-linux.org/calculate/calculate-utils/archive/${PV}.tar.gz -> calculate-utils-${PV}.tar.gz"
|
||||
KEYWORDS="amd64"
|
||||
S="${WORKDIR}/${PN}"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="backup client console dbus desktop +gpg +install minimal pxe qt6"
|
||||
REQUIRED_USE="client? ( desktop )"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
CALCULATE_MODULES_=(
|
||||
"core"
|
||||
"builder"
|
||||
"update"
|
||||
"i18n"
|
||||
"lib"
|
||||
"install"
|
||||
)
|
||||
declare -g -A CALCULATE_MODULES_USE_=(
|
||||
["console-gui"]="qt6"
|
||||
["desktop"]="desktop"
|
||||
["client"]="client"
|
||||
["console"]="console"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
local core_file_path="src/calculate/core/wsdl_core.py"
|
||||
if ! use backup; then
|
||||
sed -ir "s/'cl-backup'/None/" "${core_file_path}"
|
||||
sed -ir "s/'cl-backup-restore'/None/" "${core_file_path}"
|
||||
sed -ir "s/__('Backup')/None/g" "${core_file_path}"
|
||||
|
||||
einfo "Disable backups in core module"
|
||||
fi
|
||||
|
||||
local lib_file_path="src/calculate/lib/variables/__init__.py"
|
||||
sed -ri "/class VariableClVer/{N;N;N;N;s/value = \".*?\"/value = \"${PV}\"/;}" \
|
||||
"${lib_file_path}" || die
|
||||
einfo "Change version in \"${lib_file_path}\" => \"${PV}\""
|
||||
|
||||
use_flags=()
|
||||
for exc_module in ${!CALCULATE_MODULES_USE_[@]}; do
|
||||
use_flag=${CALCULATE_MODULES_USE_[${exc_module}]}
|
||||
if ! use $use_flag; then
|
||||
[[ ${exc_module} == "console-gui" ]] && exc_module="consolegui"
|
||||
remove_path="src/calculate/${exc_module}"
|
||||
rm -rf "${remove_path}" || die "Can't remove module from path: \"${remove_path}\""
|
||||
elog "Module calculate.${exc_module} removed."
|
||||
else
|
||||
[[ $exc_module == "console-gui" ]] && use_flag="console-gui"
|
||||
use_flags+=(${use_flag})
|
||||
fi
|
||||
done
|
||||
use_flags=${use_flags[@]}
|
||||
|
||||
cat >> setup.cfg <<-EOF
|
||||
|
||||
[use_flags]
|
||||
flags = ${use_flags// /,}
|
||||
EOF
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
esetup.py build_mo
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
install_openrc_daemons() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doinitd $(find resources/scripts/openrc_daemon -maxdepth 1 -type f)
|
||||
use client && doinitd resources/scripts/openrc_daemon/client/*
|
||||
}
|
||||
|
||||
install_xdm() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local xdm_pth="/usr/share/calculate/xdm"
|
||||
exeinto "${xdm_pth}"
|
||||
insinto "${xdm_pth}"
|
||||
if use desktop; then
|
||||
doexe $(find "resources/scripts/xdm_files/desktop" -executable -type f)
|
||||
doins $(find "resources/scripts/xdm_files/desktop" ! -executable -type f)
|
||||
fi
|
||||
|
||||
use client && doexe resources/scripts/xdm_files/client/wait_domain
|
||||
|
||||
insinto /usr/share/calculate/xdm/login.d
|
||||
if use desktop; then
|
||||
doins resources/scripts/xdm_files/login.d/desktop/*
|
||||
fi
|
||||
|
||||
use client && doins resources/scripts/xdm_files/login.d/client/*
|
||||
|
||||
insinto /usr/share/calculate/xdm/logout.d
|
||||
use desktop && doins resources/scripts/xdm_files/logout.d/desktop/*
|
||||
use client && doins resources/scripts/xdm_files/logout.d/client/*
|
||||
}
|
||||
|
||||
install_sbin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dosbin $(find resources/scripts/sbin -maxdepth 1 -type f)
|
||||
use client && dosbin resources/scripts/sbin/client/*
|
||||
}
|
||||
|
||||
install_man() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doman -i18n=ru resources/man/ru/*.1
|
||||
doman resources/man/*.1
|
||||
}
|
||||
|
||||
install_libexec() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /usr/libexec/calculate
|
||||
|
||||
use dbus && doexe resources/scripts/libexec/dbus/*
|
||||
doexe $(find resources/scripts/libexec -maxdepth 1 -type f)
|
||||
}
|
||||
|
||||
install_doc() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dodoc -r resources/*.html
|
||||
}
|
||||
|
||||
install_bin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /bin
|
||||
doexe resources/scripts/bin/*
|
||||
exeinto /usr/bin
|
||||
doexe resources/scripts/usr/bin/*
|
||||
}
|
||||
|
||||
install_data_images() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local themes=("gnome" "hicolor")
|
||||
|
||||
insinto /usr/share/icons/Calculate/16x16/client-gui
|
||||
doins -r resources/data/images/*
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r resources/data/pixmaps
|
||||
doins -r resources/data/applications
|
||||
|
||||
insinto /usr/share/calculate/themes/
|
||||
doins -r resources/data/install
|
||||
|
||||
for theme in ${themes[@]}; do
|
||||
insinto /usr/share/icons/${theme}
|
||||
doins -r resources/data/non_scalable/*
|
||||
|
||||
insinto /usr/share/icons/${theme}/scalable/apps
|
||||
doins -r resources/data/scalable/*
|
||||
done
|
||||
}
|
||||
|
||||
python_install() {
|
||||
if use qt6; then
|
||||
local scriptdir="${EPREFIX}"/usr/bin
|
||||
local root="${BUILD_DIR}"/install
|
||||
local reg_scriptdir="${root}/${scriptdir}"
|
||||
|
||||
python_newscript "${reg_scriptdir}"/cl-console-gui cl-console-gui-install
|
||||
python_newscript "${reg_scriptdir}"/cl-console-gui cl-console-gui-update
|
||||
|
||||
install_data_images
|
||||
|
||||
insinto /etc/xdg/autostart
|
||||
doins resources/data/cl-update-checker.desktop
|
||||
fi
|
||||
|
||||
distutils-r1_python_install
|
||||
|
||||
install_openrc_daemons
|
||||
install_libexec
|
||||
install_xdm
|
||||
install_sbin
|
||||
install_man
|
||||
install_doc
|
||||
install_bin
|
||||
|
||||
if use dbus; then
|
||||
insinto /usr/share/dbus-1/system.d
|
||||
doins resources/configs/conf/*
|
||||
|
||||
insinto /usr/share/dbus-1/system-services
|
||||
doins resources/configs/service/*
|
||||
fi
|
||||
|
||||
# domo "${S}"/src/calculate/locale/**/LC_MESSAGES/*.mo
|
||||
|
||||
keepdir /etc/calculate
|
||||
keepdir /var/log/calculate
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-setup
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-patch
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update-profile
|
||||
}
|
||||
|
||||
BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libbsd
|
||||
install? ( >=app-cdr/cdrtools-3.01_alpha13
|
||||
>=sys-boot/grub-2.00-r3
|
||||
>=sys-boot/syslinux-5
|
||||
sys-fs/squashfs-tools
|
||||
sys-fs/dosfstools
|
||||
sys-block/parted
|
||||
sys-apps/gptfdisk
|
||||
sys-fs/lvm2
|
||||
sys-fs/mdadm
|
||||
)
|
||||
!minimal? (
|
||||
>=sys-apps/util-linux-2.19.1
|
||||
net-misc/rsync
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-libs/openssl
|
||||
dev-python/m2crypto[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)
|
||||
gpg? (
|
||||
app-crypt/gnupg
|
||||
app-crypt/openpgp-keys-calculate-release
|
||||
)
|
||||
dev-python/jaraco-functools[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/aiohttp
|
||||
sys-apps/iproute2[-minimal]
|
||||
sys-apps/pciutils
|
||||
app-arch/xz-utils
|
||||
app-portage/eix
|
||||
app-portage/portage-utils
|
||||
|
||||
sys-apps/debianutils
|
||||
sys-kernel/installkernel
|
||||
|
||||
app-eselect/eselect-repository
|
||||
>=virtual/udev-197
|
||||
!app-misc/livecd-tools
|
||||
sys-apps/coreutils[xattr]
|
||||
|
||||
pxe? ( sys-apps/calculate-server
|
||||
net-ftp/tftp-hpa
|
||||
net-misc/dhcp
|
||||
net-fs/nfs-utils
|
||||
)
|
||||
|
||||
qt6? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
media-gfx/imagemagick[jpeg]
|
||||
dev-python/PyQt6[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dbus? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
|
||||
desktop? (
|
||||
media-gfx/feh
|
||||
x11-apps/xmessage
|
||||
sys-apps/keyutils
|
||||
sys-auth/pam_keystore
|
||||
dev-lang/swig
|
||||
dev-qt/qdbus
|
||||
sys-apps/edid-decode
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
client? (
|
||||
dev-python/python-ldap[ssl,${PYTHON_USEDEP}]
|
||||
sys-auth/pam_client
|
||||
>=sys-auth/pam_ldap-180[ssl]
|
||||
>=sys-auth/nss_ldap-239
|
||||
)
|
||||
backup? ( !sys-apps/calculate-server )
|
||||
"
|
||||
# server? (
|
||||
# sys-auth/pam_ldap
|
||||
# sys-auth/nss_ldap
|
||||
# dev-python/python-ldap[${PYTHON_USEDEP}]
|
||||
# )
|
||||
#
|
||||
# server? ( !sys-apps/calculate-server )
|
||||
|
||||
DEPEND="sys-devel/gettext"
|
|
@ -1,331 +0,0 @@
|
|||
# Copyright 2007-2024 Mir Calculate
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate_utilities"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_REPO_URI="https://git.calculate-linux.org/calculate/calculate-utils.git"
|
||||
else
|
||||
SRC_URI="https://git.calculate-linux.org/calculate/calculate-utils/archive/${PV}.tar.gz -> calculate-utils-${PV}.tar.gz"
|
||||
KEYWORDS="amd64"
|
||||
S="${WORKDIR}/${PN}"
|
||||
fi
|
||||
|
||||
IUSE="backup client console dbus desktop +gpg +install minimal pxe qt6"
|
||||
distutils_enable_tests unittest
|
||||
|
||||
CALCULATE_MODULES_=(
|
||||
"core"
|
||||
"builder"
|
||||
"update"
|
||||
"i18n"
|
||||
"lib"
|
||||
"install"
|
||||
)
|
||||
|
||||
declare -g -A CALCULATE_MODULES_USE_=(
|
||||
["console-gui"]="qt6"
|
||||
["desktop"]="desktop"
|
||||
["client"]="client"
|
||||
["console"]="console"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
local core_file_path="src/calculate/core/wsdl_core.py"
|
||||
if ! use backup; then
|
||||
sed -ir "s/'cl-backup'/None/" $core_file_path
|
||||
sed -ir "s/'cl-backup-restore'/None/" $core_file_path
|
||||
sed -ir "s/__('Backup')/None/g" $core_file_path
|
||||
|
||||
einfo "Disable backups in core module"
|
||||
fi
|
||||
|
||||
local lib_file_path="src/calculate/lib/variables/__init__.py"
|
||||
sed -ri "/class VariableClVer/{N;N;N;N;s/value = \".*?\"/value = \"${PV}\"/;}" \
|
||||
$lib_file_path || die
|
||||
einfo "Change version in $lib_file_path => $PV"
|
||||
|
||||
use_flags=()
|
||||
for exc_module in ${!CALCULATE_MODULES_USE_[@]}; do
|
||||
use_flag=${CALCULATE_MODULES_USE_[$exc_module]}
|
||||
if ! use $use_flag; then
|
||||
[[ $exc_module == "console-gui" ]] && exc_module="consolegui"
|
||||
remove_path="src/calculate/${exc_module}"
|
||||
rm -rf ${remove_path} || die "Can't remove module from path: ${remove_path}"
|
||||
elog "Module calculate.${exc_module} removed."
|
||||
else
|
||||
[[ $exc_module == "console-gui" ]] && use_flag="console-gui"
|
||||
use_flags+=(${use_flag})
|
||||
fi
|
||||
done
|
||||
use_flags=${use_flags[@]}
|
||||
|
||||
cat >> setup.cfg <<-EOF
|
||||
|
||||
[use_flags]
|
||||
flags = ${use_flags// /,}
|
||||
EOF
|
||||
}
|
||||
|
||||
python_configure() {
|
||||
esetup.py build_mo
|
||||
}
|
||||
|
||||
install_openrc_daemons() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doinitd $(find "resources/scripts/openrc_daemon" -maxdepth 1 -type f)
|
||||
use client && doinitd resources/scripts/openrc_daemon/client/*
|
||||
}
|
||||
|
||||
install_xdm() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local xdm_pth="/usr/share/calculate/xdm"
|
||||
exeinto ${xdm_pth}
|
||||
insinto ${xdm_pth}
|
||||
if use desktop; then
|
||||
doexe $(find "resources/scripts/xdm_files/desktop" -executable -type f)
|
||||
doins $(find "resources/scripts/xdm_files/desktop" ! -executable -type f)
|
||||
fi
|
||||
|
||||
use client && doexe resources/scripts/xdm_files/client/wait_domain
|
||||
|
||||
insinto /usr/share/calculate/xdm/login.d
|
||||
if use desktop; then
|
||||
doins resources/scripts/xdm_files/login.d/desktop/*
|
||||
fi
|
||||
|
||||
use client && doins resources/scripts/xdm_files/login.d/client/*
|
||||
|
||||
insinto /usr/share/calculate/xdm/logout.d
|
||||
use desktop && doins resources/scripts/xdm_files/logout.d/desktop/*
|
||||
use client && doins resources/scripts/xdm_files/logout.d/client/*
|
||||
}
|
||||
|
||||
install_sbin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dosbin $(find "resources/scripts/sbin" -maxdepth 1 -type f)
|
||||
use client && dosbin resources/scripts/sbin/client/*
|
||||
}
|
||||
|
||||
install_man() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
doman -i18n=ru resources/man/ru/*.1
|
||||
doman resources/man/*.1
|
||||
}
|
||||
|
||||
install_libexec() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /usr/libexec/calculate
|
||||
|
||||
use dbus && doexe resources/scripts/libexec/dbus/*
|
||||
doexe $(find "resources/scripts/libexec" -maxdepth 1 -type f)
|
||||
}
|
||||
|
||||
install_doc() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
dodoc -r resources/*.html
|
||||
}
|
||||
|
||||
install_bin() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
exeinto /bin
|
||||
doexe resources/scripts/bin/*
|
||||
exeinto /usr/bin
|
||||
doexe resources/scripts/usr/bin/*
|
||||
}
|
||||
|
||||
install_data_images() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local themes=("gnome" "hicolor")
|
||||
|
||||
insinto /usr/share/icons/Calculate/16x16/client-gui
|
||||
doins -r resources/data/images/*
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r resources/data/pixmaps
|
||||
doins -r resources/data/applications
|
||||
|
||||
insinto /usr/share/calculate/themes/
|
||||
doins -r resources/data/install
|
||||
|
||||
for theme in ${themes[@]}; do
|
||||
insinto /usr/share/icons/${theme}
|
||||
doins -r resources/data/non_scalable/*
|
||||
|
||||
insinto /usr/share/icons/${theme}/scalable/apps
|
||||
doins -r resources/data/scalable/*
|
||||
done
|
||||
}
|
||||
|
||||
python_install() {
|
||||
if use qt6; then
|
||||
local scriptdir=${EPREFIX}/usr/bin
|
||||
local root=${BUILD_DIR}/install
|
||||
local reg_scriptdir=${root}/${scriptdir}
|
||||
|
||||
python_newscript ${reg_scriptdir}/cl-console-gui cl-console-gui-install
|
||||
python_newscript ${reg_scriptdir}/cl-console-gui cl-console-gui-update
|
||||
|
||||
install_data_images
|
||||
|
||||
insinto /etc/xdg/autostart
|
||||
doins resources/data/cl-update-checker.desktop
|
||||
fi
|
||||
|
||||
distutils-r1_python_install
|
||||
|
||||
install_openrc_daemons
|
||||
install_libexec
|
||||
install_xdm
|
||||
install_sbin
|
||||
install_man
|
||||
install_doc
|
||||
install_bin
|
||||
|
||||
if use dbus; then
|
||||
insinto /usr/share/dbus-1/system.d
|
||||
doins resources/configs/conf/*
|
||||
|
||||
insinto /usr/share/dbus-1/system-services
|
||||
doins resources/configs/service/*
|
||||
fi
|
||||
|
||||
# domo "${S}"/src/calculate/locale/**/LC_MESSAGES/*.mo
|
||||
|
||||
keepdir /etc/calculate
|
||||
keepdir /var/log/calculate
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-setup
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-core-patch
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update
|
||||
dosym -r /usr/libexec/calculate/cl-core-wrapper /usr/bin/cl-update-profile
|
||||
}
|
||||
|
||||
BDEPEND="$(python_gen_cond_dep 'dev-python/setuptools-scm[${PYTHON_USEDEP}]')"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libbsd
|
||||
install? ( >=app-cdr/cdrtools-3.01_alpha13
|
||||
>=sys-boot/grub-2.00-r3
|
||||
>=sys-boot/syslinux-5
|
||||
sys-fs/squashfs-tools
|
||||
sys-fs/dosfstools
|
||||
sys-block/parted
|
||||
sys-apps/gptfdisk
|
||||
sys-fs/lvm2
|
||||
sys-fs/mdadm
|
||||
)
|
||||
!minimal? (
|
||||
>=sys-apps/util-linux-2.19.1
|
||||
net-misc/rsync
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-libs/openssl
|
||||
dev-python/m2crypto[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)
|
||||
gpg? (
|
||||
app-crypt/gnupg
|
||||
app-crypt/openpgp-keys-calculate-release
|
||||
)
|
||||
dev-python/jaraco-functools[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/aiohttp
|
||||
sys-apps/iproute2[-minimal]
|
||||
sys-apps/pciutils
|
||||
app-arch/xz-utils
|
||||
app-portage/eix
|
||||
app-portage/portage-utils
|
||||
|
||||
sys-apps/debianutils
|
||||
sys-kernel/installkernel
|
||||
|
||||
app-eselect/eselect-repository
|
||||
>=virtual/udev-197
|
||||
!app-misc/livecd-tools
|
||||
sys-apps/coreutils[xattr]
|
||||
|
||||
pxe? ( sys-apps/calculate-server
|
||||
net-ftp/tftp-hpa
|
||||
net-misc/dhcp
|
||||
net-fs/nfs-utils
|
||||
)
|
||||
|
||||
!<sys-apps/calculate-server-2.1.18-r1
|
||||
|
||||
qt6? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
media-gfx/imagemagick[jpeg]
|
||||
dev-python/PyQt6[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dbus? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
|
||||
desktop? (
|
||||
media-gfx/feh
|
||||
x11-apps/xmessage
|
||||
sys-apps/keyutils
|
||||
sys-auth/pam_keystore
|
||||
dev-lang/swig
|
||||
dev-qt/qdbus
|
||||
sys-apps/edid-decode
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
|
||||
client? (
|
||||
dev-python/python-ldap[ssl,${PYTHON_USEDEP}]
|
||||
sys-auth/pam_client
|
||||
>=sys-auth/pam_ldap-180[ssl]
|
||||
>=sys-auth/nss_ldap-239
|
||||
)
|
||||
backup? ( !sys-apps/calculate-server )
|
||||
"
|
||||
# server? (
|
||||
# sys-auth/pam_ldap
|
||||
# sys-auth/nss_ldap
|
||||
# dev-python/python-ldap[${PYTHON_USEDEP}]
|
||||
# )
|
||||
#
|
||||
#
|
||||
# server? ( !sys-apps/calculate-server )
|
||||
|
||||
DEPEND="
|
||||
sys-devel/gettext"
|
||||
|
||||
#REQUIRED_USE="client? ( desktop )"
|
Loading…
Add table
Reference in a new issue