summaryrefslogtreecommitdiffstats
path: root/trinity-base/kstars
diff options
context:
space:
mode:
Diffstat (limited to 'trinity-base/kstars')
-rw-r--r--trinity-base/kstars/Manifest1
-rw-r--r--trinity-base/kstars/kstars-14.1.2.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/trinity-base/kstars/Manifest b/trinity-base/kstars/Manifest
index c886acfe..88d4f661 100644
--- a/trinity-base/kstars/Manifest
+++ b/trinity-base/kstars/Manifest
@@ -1 +1,2 @@
DIST tdeedu-trinity-14.1.1.tar.xz 24697532 BLAKE2B 8a516c18a1dddc6a3fae01ad96df006fe60ad22515802ffc351fbc11fcc2cc9c347877b60790d44f538f5dc167a7b491f4083b1b2350489882f83676eb4a1cac SHA512 4216fdb31db332872bc09619feb9127944092495be4cc586d4e33d0df34d06658f3ba47b8baafd33c08f8f1a752ba6c8c828f16e1569a0b5b658477328cd28f2
+DIST tdeedu-trinity-14.1.2.tar.xz 24698504 BLAKE2B 6abd55ff81c4b00550bfca1374278cd7896b6d247aa0bde8b70601b1960ca3454b09d79fcd083eb5372d36a1a76aded568c6fb698a58a51ea2c7e438d4ee0ed0 SHA512 eee6e33acb28fee5a03de7892e9578138452c49dd8b25f61dccd3b4f2ee4206cf34684e6246232368a88c607b7a6d7b2910889a9c5afb62d3125f0d4e07f4acb
diff --git a/trinity-base/kstars/kstars-14.1.2.ebuild b/trinity-base/kstars/kstars-14.1.2.ebuild
new file mode 100644
index 00000000..2e4527fd
--- /dev/null
+++ b/trinity-base/kstars/kstars-14.1.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2022-2024 The Trinity Desktop Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+TRINITY_MODULE_NAME="tdeedu"
+TRINITY_MODULE_TYPE="core"
+TRINITY_HANDBOOK="optional"
+TSM_EXTRACT_ALSO="libtdeedu"
+inherit trinity-meta-2
+
+DESCRIPTION="Desktop planetarium for Trinity"
+if [[ ${PV} != *9999* ]] ; then
+ KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+IUSE="usb v4l"
+
+DEPEND="~trinity-base/libtdeedu-${PV}
+ usb? ( virtual/libusb:0 )
+ v4l? ( media-libs/libv4l )
+ "
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e '/add_subdirectory( applnk )/d' \
+ -e '/add_subdirectory( libtdeedu )/d' "${S}/CMakeLists.txt" || die
+ sed -i -e 's/tdeeduplot-shared/tdeeduplot/g' \
+ -e 's/tdeeduui-shared/tdeeduui/g' -e 's/extdate-shared/extdate/g' \
+ "${S}/${PN}/${PN}/CMakeLists.txt" || die
+ sed -i 's/tdeeduplot-shared/tdeeduplot/' "${S}/${PN}/${PN}/tools/CMakeLists.txt" || die
+ # Removing unnecessary dependencies
+ sed -i ':a;N;$!ba;s/tdeeduui/file-delet/2' "${S}/${PN}/${PN}/CMakeLists.txt" || die
+ sed -i ':a;N;$!ba;s/tdeeduplot/file-delet/2' "${S}/${PN}/${PN}/CMakeLists.txt" || die
+ sed -i ':a;N;$!ba;s/extdate/file-delet/2' "${S}/${PN}/${PN}/CMakeLists.txt" || die
+ sed -i '/file-delet/d' "${S}/${PN}/${PN}/CMakeLists.txt" || die
+ trinity-meta-2_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_LIBUSB=$(usex usb ON OFF )
+ -DWITH_V4L=$(usex v4l ON OFF )
+ )
+ trinity-meta-2_src_configure
+}