Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 929431cac8
)
r14.1.x
parent
4a5c1eb2f1
commit
0865793372
@ -1,2 +1 @@
|
||||
DIST akode-trinity-14.1.0.tar.xz 75000 BLAKE2B 992ac19f4b5093be2d52dae1c3a74fd31809faa70dfce3c027ba514aa70dcc14e33323e9a420b1500b2a9662cac34811c233117af26b313a143fd30c547419d0 SHA512 24b349e93e2d3a60611b0950087e7b4c0ddaee4f4a5fd37715808d37a62d7f1148f391033ad4f08d76bd35229ee5be131b7be7d20bfdab44b3ecc1b95d587e67
|
||||
DIST akode-trinity-14.1.1.tar.xz 74924 BLAKE2B d579e8e2f3f6c9781b60eed6eb34c2438502fc65a9197060db26ca50adde30598991d7dc1da3a0d1e88c9c00909f029182924dd23fc690f9ab7f9e48b441a95d SHA512 0d2fd58d79867a7ce0704c4558281c479b8087055920d305ada90dbb2791c20348a111e6cafa5359a18788149da5c36e9c0a5420439779479d170731c92c2dca
|
||||
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 2020-2024 The Trinity Desktop Project
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
TRINITY_MODULE_TYPE="dependencies"
|
||||
TRINITY_MODULE_NAME="akode"
|
||||
inherit trinity-base-2 cmake
|
||||
|
||||
DESCRIPTION="Simple framework to decode the most common audio formats"
|
||||
HOMEPAGE="https://trinitydesktop.org/"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != *9999* ]] ; then
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
IUSE="alsa ffmpeg jack +libsamplerate mp3 musepack oss pulseaudio xiph"
|
||||
|
||||
DEPEND="
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
ffmpeg? ( >=media-video/ffmpeg-5.0 )
|
||||
jack? ( virtual/jack )
|
||||
libsamplerate? ( media-libs/libsamplerate )
|
||||
mp3? ( media-libs/libmad )
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
xiph? (
|
||||
media-libs/flac
|
||||
media-libs/libvorbis
|
||||
media-libs/speex
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_pretend() {
|
||||
if ! use alsa || use jack || use oss || use pulseaudio
|
||||
then
|
||||
ewarn "You haven't selected any audio sinc plugins to build."
|
||||
ewarn "Avaliable are: alsa, jack, oss, pulseaudio."
|
||||
ewarn "akode won't be able to playback any sound"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if ! use ffmpeg || use musepack || use mp3 || use xiph
|
||||
then
|
||||
ewarn "You haven't selected any decoder plugins to build."
|
||||
ewarn "Avaliable are: ffmpeg, mp3, musepack, xiph (flac speex vorbis)"
|
||||
ewarn "akode will support only raw wav files"
|
||||
ewarn
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_SUN_SINK=OFF # solaris stuff
|
||||
-DWITH_LIBLTDL=OFF # doesn't provide any additional functinality
|
||||
-DWITH_ALSA_SINK=$(usex alsa)
|
||||
-DWITH_OSS_SINK=$(usex oss)
|
||||
-DWITH_PULSE_SINK=$(usex pulseaudio)
|
||||
-DWITH_JACK_SINK=$(usex jack)
|
||||
-DWITH_FFMPEG_DECODER=$(usex ffmpeg)
|
||||
-DWITH_MPC_DECODER=$(usex musepack)
|
||||
-DWITH_MPEG_DECODER=$(usex mp3)
|
||||
-DWITH_XIPH_DECODER=$(usex xiph)
|
||||
-DWITH_SRC_RESAMPLER=$(usex libsamplerate)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
--- a/config.h.cmake 2023-07-04 20:10:53.550250219 +0300
|
||||
+++ b/config.h.cmake 2023-07-04 20:18:18.312261752 +0300
|
||||
@@ -130,6 +130,33 @@
|
||||
// kcontrol/input
|
||||
#cmakedefine HAVE_LIBUSB 1
|
||||
|
||||
+// ksysguard, kcheckpass
|
||||
+#cmakedefine HAVE_STRLCAT 1
|
||||
+#cmakedefine HAVE_STRLCAT_PROTO 1
|
||||
+#cmakedefine HAVE_STRLCPY 1
|
||||
+#cmakedefine HAVE_STRLCPY_PROTO 1
|
||||
+
|
||||
+#if !defined(HAVE_STRLCAT_PROTO)
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+unsigned long strlcat(char*, const char*, unsigned long);
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if !defined(HAVE_STRLCPY_PROTO)
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+unsigned long strlcpy(char*, const char*, unsigned long);
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
// tdeprint
|
||||
#cmakedefine HAVE_SIGACTION 1
|
||||
#cmakedefine HAVE_SIGSET 1
|
||||
--- a/ConfigureChecks.cmake 2023-07-04 20:10:53.550250219 +0300
|
||||
+++ b/ConfigureChecks.cmake 2023-07-04 20:16:46.905259381 +0300
|
||||
@@ -381,6 +381,15 @@
|
||||
endif( )
|
||||
|
||||
|
||||
+# strlcat, strlcpy
|
||||
+if( BUILD_KSYSGUARD OR BUILD_KCHECKPASS )
|
||||
+ check_function_exists( strlcat HAVE_STRLCAT )
|
||||
+ check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO )
|
||||
+ check_function_exists( strlcpy HAVE_STRLCPY )
|
||||
+ check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO )
|
||||
+endif( )
|
||||
+
|
||||
+
|
||||
# getifaddrs (kcontrol, tdm)
|
||||
if( BUILD_KCONTROL OR BUILD_TDM )
|
||||
check_function_exists( getifaddrs HAVE_GETIFADDRS )
|
@ -1,54 +0,0 @@
|
||||
--- a/config.h.cmake 2023-07-04 20:10:53.550250219 +0300
|
||||
+++ b/config.h.cmake 2023-07-04 20:18:18.312261752 +0300
|
||||
@@ -130,6 +130,33 @@
|
||||
// kcontrol/input
|
||||
#cmakedefine HAVE_LIBUSB 1
|
||||
|
||||
+// ksysguard, kcheckpass
|
||||
+#cmakedefine HAVE_STRLCAT 1
|
||||
+#cmakedefine HAVE_STRLCAT_PROTO 1
|
||||
+#cmakedefine HAVE_STRLCPY 1
|
||||
+#cmakedefine HAVE_STRLCPY_PROTO 1
|
||||
+
|
||||
+#if !defined(HAVE_STRLCAT_PROTO)
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+unsigned long strlcat(char*, const char*, unsigned long);
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if !defined(HAVE_STRLCPY_PROTO)
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+unsigned long strlcpy(char*, const char*, unsigned long);
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
// tdeprint
|
||||
#cmakedefine HAVE_SIGACTION 1
|
||||
#cmakedefine HAVE_SIGSET 1
|
||||
--- a/ConfigureChecks.cmake 2023-07-04 20:10:53.550250219 +0300
|
||||
+++ b/ConfigureChecks.cmake 2023-07-04 20:16:46.905259381 +0300
|
||||
@@ -381,6 +381,15 @@
|
||||
endif( )
|
||||
|
||||
|
||||
+# strlcat, strlcpy
|
||||
+if( BUILD_KSYSGUARD OR BUILD_KCHECKPASS )
|
||||
+ check_function_exists( strlcat HAVE_STRLCAT )
|
||||
+ check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO )
|
||||
+ check_function_exists( strlcpy HAVE_STRLCPY )
|
||||
+ check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO )
|
||||
+endif( )
|
||||
+
|
||||
+
|
||||
# getifaddrs (kcontrol, tdm)
|
||||
if( BUILD_KCONTROL OR BUILD_TDM )
|
||||
check_function_exists( getifaddrs HAVE_GETIFADDRS )
|
@ -1,2 +1 @@
|
||||
DIST tdebase-trinity-14.1.0.tar.xz 30722632 BLAKE2B 1f4b87be37730aaa93fc579c130d7af7c408d20512ff8642d8313abaa7ccf6a012c8b52c595641e8ff820f709d68471224f2ceb1f898769b36e386345924b948 SHA512 8fcbb5d4bbaefc9acafa5d1926d6f22b1c087a7af63f0d9e2438c95730e82e6d6e9555afdf336bd01c296adedef5665c571d00c6738d071ed069243d47f30674
|
||||
DIST tdebase-trinity-14.1.1.tar.xz 30746484 BLAKE2B 4d2fdd9e3f5007c7482e938badad381a3e314b458b262dd346c05c91a9a4b974d8f1244152b833a34f7edad246bd4a8af0e054279a1556cebac6319a1a011a09 SHA512 d733f20719a0c9a949540e95f4d60fe03e096efbd7ac54187c5ee9b9f9b644318ee2dd9c8fd0d2e6eee660f7a7ad827e66bc06fb9a36c9e56e3ae16bdd47910c
|
||||
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 2020-2023 The Trinity Desktop Project
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
TRINITY_MODULE_NAME="tdebase"
|
||||
TRINITY_MODULE_TYPE="core"
|
||||
TSM_EXTRACT="starttde README.pam INSTALL AUTHORS COPYING COPYING-DOCS tdm r14-xdg-update migratekde3"
|
||||
inherit trinity-meta-2
|
||||
|
||||
DESCRIPTION="Starttde script, which starts a complete Trinity session, and associated scripts"
|
||||
if [[ ${PV} != *9999* ]] ; then
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
RDEPEND="x11-apps/xmessage
|
||||
x11-apps/xsetroot
|
||||
x11-apps/xset
|
||||
x11-apps/xrandr
|
||||
x11-apps/mkfontscale
|
||||
x11-apps/xprop
|
||||
~trinity-base/kdesktop-${PV}
|
||||
~trinity-base/kcminit-${PV}
|
||||
~trinity-base/ksmserver-${PV}
|
||||
~trinity-base/twin-${PV}
|
||||
~trinity-base/kpersonalizer-${PV}
|
||||
~trinity-base/kreadconfig-${PV}
|
||||
~trinity-base/ksplashml-${PV}
|
||||
~trinity-base/tdeinit-${PV}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-14-gentoo.patch" )
|
||||
|
||||
src_prepare() {
|
||||
trinity-base-2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
echo -n "";
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# List all the multilib libdirs
|
||||
local _libdir _libdirs
|
||||
for _libdir in $(get_all_libdirs); do
|
||||
_libdirs="${_libdirs}:${TDEDIR}/${_libdir}"
|
||||
done
|
||||
_libdirs=${_libdirs#:}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# starttde script
|
||||
exeinto "${TDEDIR}/bin"
|
||||
doexe starttde
|
||||
doexe r14-xdg-update
|
||||
doexe migratekde3
|
||||
|
||||
# startup and shutdown scripts
|
||||
exeinto "${TDEDIR}/env"
|
||||
doexe "${FILESDIR}/agent-startup.sh"
|
||||
|
||||
exeinto "${TDEDIR}/shutdown"
|
||||
doexe "${FILESDIR}/agent-shutdown.sh"
|
||||
|
||||
# x11 session script
|
||||
cat <<EOF > "${T}/tde-${SLOT}"
|
||||
#!/bin/sh
|
||||
exec ${TDEDIR}/bin/starttde
|
||||
EOF
|
||||
exeinto /etc/X11/Sessions
|
||||
doexe "${T}/tde-${SLOT}" # FIXME: change script branding to trinity
|
||||
|
||||
# (not really) freedesktop compliant session script
|
||||
sed -e "s:@TDE_BINDIR@:${TDEDIR}/bin:g;s:Name=Trinity:Name=Trinity ${SLOT}:" \
|
||||
"${S}/tdm/kfrontend/sessions/tde.desktop.in" > "${T}/tde-${SLOT}.desktop"
|
||||
insinto /usr/share/xsessions
|
||||
doins "${T}/tde-${SLOT}.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
echo
|
||||
elog "To enable gpg-agent and/or ssh-agent in Trinity sessions,"
|
||||
elog "edit ${TDEDIR}/env/agent-startup.sh and"
|
||||
elog "${TDEDIR}/shutdown/agent-shutdown.sh"
|
||||
echo
|
||||
}
|
Loading…
Reference in new issue