summaryrefslogtreecommitdiff
path: root/app-cdr/cdemu
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-03 17:42:46 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-03 17:42:46 +0000
commit9b39c5fa703e6f57558ea8a2ca68a5a0bfce1edd (patch)
treea1cff8bbd255e47010ff280f6e836bd7ac53b096 /app-cdr/cdemu
parent194313a653d5ba077627c85051de73377b95672a (diff)
gentoo auto-resync : 03:03:2024 - 17:42:46
Diffstat (limited to 'app-cdr/cdemu')
-rw-r--r--app-cdr/cdemu/Manifest1
-rw-r--r--app-cdr/cdemu/cdemu-3.2.5-r1.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/app-cdr/cdemu/Manifest b/app-cdr/cdemu/Manifest
index 783d06f8acc6..e0dcbb38a29b 100644
--- a/app-cdr/cdemu/Manifest
+++ b/app-cdr/cdemu/Manifest
@@ -1,3 +1,4 @@
DIST cdemu-client-3.2.5.tar.xz 41596 BLAKE2B 5b3e5a16f9daa0ab2c670a8cba54af380894e668c87a64a5e2126777d6725420d9bb7f41290ca69eba12e20db97b00cc74aea3df9694ef331e7a571b913820b1 SHA512 d143705607507503cd7828f02e7a0fbe5d33f15e28ce61f453567d8635ed863c5b508ed2b1964f034d846ecdea752bd3dfb565350174db3e06cf7d29c2f828bf
+EBUILD cdemu-3.2.5-r1.ebuild 1284 BLAKE2B b096b171755674f165313f45a403340c496111529d9abbd23a0dcba57d200a15bffd4aea3eba464589420784c6402c211b4ec096e3d3cea9944d43b4861feb3c SHA512 0014284e8c94041b3dfd14eeaf8c28b8a70b19b096315f0b609883f15943c6ccee8ec8f730052920bbf0c64862e1fa3eddc8ff939e8a92809e6ee13dad75ec34
EBUILD cdemu-3.2.5.ebuild 1281 BLAKE2B 5a5b715a1e450a2df0d3ac169b404b98b18fd5ade5a54cecf784b0a131008447d68394ca359b7eafca664d5155c78c005f3c292bd6a87a54b3bac6605821945e SHA512 7813f00d1be08379cb31ab11f0698000394a48fff03adabcc8c0bab179c49634098973fb717e486b3c79e2e29f48f42c61811205eb558ac4664b6e78b5699d04
MISC metadata.xml 530 BLAKE2B 78454943e47661858c79699f9f4346803ebdccf4d9bc37e3577fee85ba2b0a7d20f5fea844a0fe33d78b0424098dc030b9ccbe6e5db078817f1272baac7ba08d SHA512 e1f4efd8dacd7def02135e75276293b4be8642d6be80eda30da3de4409824622c6e99beba76318ebaa58635d723f681f9129580f8da1c9b49bd0c29dcf0a7fcb
diff --git a/app-cdr/cdemu/cdemu-3.2.5-r1.ebuild b/app-cdr/cdemu/cdemu-3.2.5-r1.ebuild
new file mode 100644
index 000000000000..c697a93a5418
--- /dev/null
+++ b/app-cdr/cdemu/cdemu-3.2.5-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit bash-completion-r1 cmake python-single-r1 xdg-utils
+
+MY_P=cdemu-client-${PV}
+DESCRIPTION="Command-line tool for controlling cdemu-daemon"
+HOMEPAGE="https://cdemu.sourceforge.io"
+SRC_URI="https://download.sourceforge.net/cdemu/cdemu-client/${MY_P}.tar.xz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+cdemu-daemon"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ ')
+ cdemu-daemon? ( app-cdr/cdemu-daemon:0/7 )
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+ dev-util/desktop-file-utils
+ >=dev-util/intltool-0.21
+ >=sys-devel/gettext-0.18
+ virtual/pkgconfig
+"
+
+DOCS=( AUTHORS README )
+
+src_prepare() {
+ cmake_src_prepare
+
+ python_fix_shebang src/cdemu
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DPOST_INSTALL_HOOKS=OFF
+ # requires bash-completion as BDEPEND, better install it manually
+ -DENABLE_BASH_COMPLETION=OFF
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ newbashcomp data/cdemu-bash-completion.sh cdemu
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}