From 74d2dabcbe6aaccffc6999034384b115f3556b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 6 Feb 2020 02:55:27 +0100 Subject: DEB kaffeine: Switch to cmake. Removed broken codec installation scripts. Enable mp3lame support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- .../kaffeine/debian/KUBUNTU-DEBIAN-DIFFERENCES | 9 - .../applications/kaffeine/debian/README.Debian | 9 +- debian/_base/applications/kaffeine/debian/control | 9 +- .../applications/kaffeine/debian/install-codecs | 145 ---------------- .../applications/kaffeine/debian/install-css.sh | 46 ----- .../kaffeine/debian/kaffeine-iso.desktop | 11 -- .../kaffeine/debian/kaffeine-trinity.install | 7 +- .../_base/applications/kaffeine/debian/kaffeine.1 | 187 --------------------- .../kaffeine/debian/kaffeine_codecinstall.desktop | 14 -- .../debian/kaffeine_xine-install-dvdcss.desktop | 8 - .../debian/kaffeine_xine-install-ffmpeg.desktop | 8 - debian/_base/applications/kaffeine/debian/rules | 59 ++----- debian/_base/applications/kaffeine/debian/watch | 2 - 13 files changed, 20 insertions(+), 494 deletions(-) delete mode 100644 debian/_base/applications/kaffeine/debian/KUBUNTU-DEBIAN-DIFFERENCES delete mode 100644 debian/_base/applications/kaffeine/debian/install-codecs delete mode 100644 debian/_base/applications/kaffeine/debian/install-css.sh delete mode 100644 debian/_base/applications/kaffeine/debian/kaffeine-iso.desktop delete mode 100644 debian/_base/applications/kaffeine/debian/kaffeine.1 delete mode 100644 debian/_base/applications/kaffeine/debian/kaffeine_codecinstall.desktop delete mode 100644 debian/_base/applications/kaffeine/debian/kaffeine_xine-install-dvdcss.desktop delete mode 100644 debian/_base/applications/kaffeine/debian/kaffeine_xine-install-ffmpeg.desktop delete mode 100644 debian/_base/applications/kaffeine/debian/watch (limited to 'debian/_base/applications/kaffeine') diff --git a/debian/_base/applications/kaffeine/debian/KUBUNTU-DEBIAN-DIFFERENCES b/debian/_base/applications/kaffeine/debian/KUBUNTU-DEBIAN-DIFFERENCES deleted file mode 100644 index 1d06672c7..000000000 --- a/debian/_base/applications/kaffeine/debian/KUBUNTU-DEBIAN-DIFFERENCES +++ /dev/null @@ -1,9 +0,0 @@ -kaffeine can't depend on libxine1-ffmpeg -kaffeine does depend on kaffeine-xine, remove conflicts/replaces -add kaffeine-gstreamer.install and description -build-dep on libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev -remove --without-gstreamer -remove DEB_DESTDIR line -install/kaffeine:: Debian additions -install-codecs 755 -DEB_FIXPERMS_EXCLUDE := install-css.sh install-codecs diff --git a/debian/_base/applications/kaffeine/debian/README.Debian b/debian/_base/applications/kaffeine/debian/README.Debian index 74cac614e..7bdf946c3 100644 --- a/debian/_base/applications/kaffeine/debian/README.Debian +++ b/debian/_base/applications/kaffeine/debian/README.Debian @@ -2,7 +2,6 @@ kaffeine for Debian ------------------- The Gstreamer support is experimental and has been disabled. -Due to patents problems, the Lame Mp3 encoding plugin isn't available. CSS issue ========= @@ -11,13 +10,7 @@ CSS is sold by the DVD industry as a "copy protection", though it's more of a "view protection" as it makes DVDs unviewable with unlicensed players. To play these DVDs, a library is needed to decode them, libdvdcss. Due to possible legal issues, Debian cannot distribute libdvdcss, but it is available on other -places on the internet. If it is legal in your country to use css, you can run - - /usr/share/doc/kaffeine/install-css.sh - -at any time to download and install it. - -Thanks to Mikael Hedin for the script. +places on the internet. Region issue ============ diff --git a/debian/_base/applications/kaffeine/debian/control b/debian/_base/applications/kaffeine/debian/control index 753252158..bb9e41585 100644 --- a/debian/_base/applications/kaffeine/debian/control +++ b/debian/_base/applications/kaffeine/debian/control @@ -5,12 +5,11 @@ Maintainer: Timothy Pearson XSBC-Original-Maintainer: Debian KDE Extras Team Uploaders: Riku Voipio , Fathi Boudra , Mark Purcell -Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, tdelibs14-trinity-dev, +Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, cmake, tdelibs14-trinity-dev, libcdparanoia0-dev, libogg-dev, libxine2-dev | libxine-dev (>= 1.1.7), libxcb1-dev, libxtst-dev, libgstreamer1.0-dev | libgstreamer0.10-dev, libgstreamer-plugins-base1.0-dev | libgstreamer-plugins-base0.10-dev, - libcdio-cdda-dev, libcdio-paranoia-dev, - automake, autoconf, libtool, libltdl-dev + libcdio-cdda-dev, libcdio-paranoia-dev, libmp3lame-dev Standards-Version: 3.8.4 Package: kaffeine-trinity @@ -26,8 +25,6 @@ Description: versatile media player for TDE . Kaffeine can keep track of multiple playlists simultaneously, and supports autoloading of subtitles files for use while playing video. - . - Homepage: http://kaffeine.sourceforge.net Package: kaffeine-trinity-dbg Section: devel @@ -53,5 +50,3 @@ Description: Gstreamer engine for kaffeine media player [Trinity] network streams easily. . This package provides the Gstreamer playing engine for Kaffeine. - . - Homepage: http://kaffeine.sourceforge.net diff --git a/debian/_base/applications/kaffeine/debian/install-codecs b/debian/_base/applications/kaffeine/debian/install-codecs deleted file mode 100644 index 720dfcd4c..000000000 --- a/debian/_base/applications/kaffeine/debian/install-codecs +++ /dev/null @@ -1,145 +0,0 @@ -#!/usr/bin/python -import sys,os -import gettext -import apt -from PyQt4.QtCore import * -from PyQt4.QtGui import * - -gettext.textdomain('kaffeine-install-codecs') - -def _(string): - return unicode(gettext.gettext(string), 'utf-8') - -if len(sys.argv) < 2: - sys.exit(1) - -class InstallerOpProgress(apt.OpProgress): - def __init__(self, installer): - self.installer = installer - - def update(self, percent): - self.installer.progress.setValue(percent) - QApplication.processEvents() - - def done(self): - self.installer.progress.setValue(100) - QApplication.processEvents() - -class CodecInstallerWidget(QDialog, apt.OpProgress): - def __init__(self): - QDialog.__init__(self) - self.setWindowTitle(_('Kaffeine codec installer')) - self.setModal(True) - self.status = QLabel() - self.status.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter) - self.progress = QProgressBar() - layout = QVBoxLayout() - layout.addWidget(self.status) - layout.addWidget(self.progress) - self.setLayout(layout) - self.setStatus(_('Initializing...')) - - desktop = QApplication.desktop() - self.setMinimumWidth(desktop.width() / 3) - self.adjustSize() - self.move((desktop.width()-self.width()) / 2, - (desktop.height()-self.height()) / 2) - self.show() - self.run() - - def setStatus(self, text): - self.status.setText('' + text + '') - QApplication.processEvents() - - def init_apt_cache(self): - self.setStatus(_('Preparing...')) - self.apt_cache = apt.Cache(InstallerOpProgress(self)) - - def run(self): - if sys.argv[1] == 'ffmpeg': - self.installer = self.install_ffmpeg - elif sys.argv[1] == 'dvdcss': - self.installer = self.install_dvdcss - else: - QMessageBox.critical(self, _('Error'), _('Unknown codec type')) - QApplication.exit(1) - return - - if not self.installer(): - QApplication.exit(1) - return - - os.system('dcop kaffeine KaffeineIface reloadEngine') - os.system('dcop kaffeine KaffeineIface play') - QApplication.exit(0) - - def check_already_installed(self, pkg): - if pkg and pkg.isInstalled: - QMessageBox.critical(self, _('Error'), _('Codec package is already installed')) - QApplication.exit(1) - return True - return False - - def install_ffmpeg(self): - self.init_apt_cache() - pkg = self.search_pkg('libxine','-ffmpeg') - - if self.check_already_installed(pkg): - return False - - confirm = QMessageBox.question(self, _('Codec not found'), - _('Kaffeine does not have a codec ' - 'installed to play this file. ' - 'Do you want to install the codecs?'), - QMessageBox.Yes | QMessageBox.No) - if (confirm == QMessageBox.No): - QApplication.exit(1) - return False - - self.setStatus(_('Installing...')) - QApplication.processEvents() - self.install_cache_package(pkg) - return True - - def install_cache_package(self, pkg): - if os.system('tdesu -d \'adept_batch install ' + pkg.name + '\'') != 0: - QApplication.exit(1) - return - - def search_pkg(self, prefix, suffix = ''): - for pkg in self.apt_cache: - if pkg.name.startswith(prefix) and pkg.name.endswith(suffix): - return pkg - return None - - def install_dvdcss(self): - self.init_apt_cache() - pkg = self.search_pkg('libdvdcss') - - if self.check_already_installed(pkg): - return False - - answer = QMessageBox.question(self, _('Codec not found'), - _('LibDVDCSS (http://www.videolan.org/developers/libdvdcss.html) ' - 'is about to be installed, it allows you to watch encrypted DVD ' - 'videos. This is illegal in some countries which ' - 'require decryption to be authorised by the copyright holder. ' - 'Do you want to install this package?'), - QMessageBox.Yes | QMessageBox.No) - if (answer == QMessageBox.No): - QApplication.exit(1) - return False - - self.setStatus(_('Installing...')) - QApplication.processEvents() - - distro_arch = os.popen('dpkg --print-installation-architecture').read() - distro_arch = distro_arch[:-1] # remove trailing newline - libdvdcss_url = 'http://kubuntu.org/packages/libdvdcss-' + distro_arch + '.deb' - os.system('kfmclient exec ' + libdvdcss_url) - return True - -app = QApplication(sys.argv) -window = CodecInstallerWidget() -window.exec_() - diff --git a/debian/_base/applications/kaffeine/debian/install-css.sh b/debian/_base/applications/kaffeine/debian/install-css.sh deleted file mode 100644 index f374562ff..000000000 --- a/debian/_base/applications/kaffeine/debian/install-css.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -set -e - -site=http://www.dtek.chalmers.se/groups/dvd/deb/ -arch=`dpkg --print-installation-architecture` - -soname=2 -uversion=1.2.5 -available="alpha amd64 hppa i386 ia64 powerpc s390 sparc" -version=${uversion}-1 - -if [ ! -e /usr/bin/wget ] -then - echo "Install wget and run this script again" - exit 1 -fi - -for a in $available; do - if [ "$a" = "$arch" ]; then - wget ${site}libdvdcss${soname}_${version}_${arch}.deb -O /tmp/libdvdcss.deb - dpkg -i /tmp/libdvdcss.deb - exit $? - fi -done - -echo "No binary deb available. Will try to build and install it." -echo "You need to have debhelper, dpkg-dev and fakeroot installed." -echo "If not, interrupt now, install them and rerun this script." -echo "" -echo "This is higly experimental, look out for what happens below." -echo "If you want to stop, interrupt now (control-c), else press" -echo "return to proceed" -read dum - -mkdir -p /tmp/dvd -cd /tmp/dvd -wget ${site}libdvdcss_${uversion}.orig.tar.gz -wget ${site}libdvdcss_${version}.diff.gz -wget ${site}libdvdcss_${version}.dsc -dpkg-source -x libdvdcss_${version}.dsc -cd libdvdcss-${uversion} -fakeroot ./debian/rules binary -echo "Any problems? Interrupt now (control-c) and try to fix" -echo "manually, else go on and install (return)." -dpkg -i ../libdvdcss${soname}_${version}_${arch}.deb diff --git a/debian/_base/applications/kaffeine/debian/kaffeine-iso.desktop b/debian/_base/applications/kaffeine/debian/kaffeine-iso.desktop deleted file mode 100644 index 63cf8f167..000000000 --- a/debian/_base/applications/kaffeine/debian/kaffeine-iso.desktop +++ /dev/null @@ -1,11 +0,0 @@ -# this file is "/usr/share/applications/tde/kaffeine-iso.desktop" -[Desktop Entry] -Exec=kaffeine dvd:%f -Icon=kaffeine -MimeType=application/x-iso -Name=kaffeine -Name[en_US]=kaffeine -StartupNotify=true -Terminal=false -Type=Application -NoDisplay=true diff --git a/debian/_base/applications/kaffeine/debian/kaffeine-trinity.install b/debian/_base/applications/kaffeine/debian/kaffeine-trinity.install index 4777ef63c..89dc59e73 100644 --- a/debian/_base/applications/kaffeine/debian/kaffeine-trinity.install +++ b/debian/_base/applications/kaffeine/debian/kaffeine-trinity.install @@ -13,11 +13,16 @@ debian/tmp/opt/trinity/share/doc/ debian/tmp/opt/trinity/share/icons/ debian/tmp/opt/trinity/share/mimelnk/application/x-kaffeine.desktop debian/tmp/opt/trinity/share/locale/ -debian/tmp/opt/trinity/include/tde/kaffeine/*h +debian/tmp/opt/trinity/include/kaffeine/*h +debian/tmp/opt/trinity/share/man/man1/kaffeine.1 +debian/tmp/opt/trinity/share/services/kaffeinemp3lame.desktop debian/tmp/opt/trinity/share/services/kaffeineoggvorbis.desktop +debian/tmp/opt/trinity/lib/trinity/libkaffeinemp3lame.la +debian/tmp/opt/trinity/lib/trinity/libkaffeinemp3lame.so debian/tmp/opt/trinity/lib/trinity/libkaffeineoggvorbis.la debian/tmp/opt/trinity/lib/trinity/libkaffeineoggvorbis.so debian/tmp/opt/trinity/lib/trinity/libxinepart.la debian/tmp/opt/trinity/lib/trinity/libxinepart.so debian/tmp/opt/trinity/share/services/xine_part.desktop +debian/kaffeine.xpm /opt/trinity/share/pixmaps diff --git a/debian/_base/applications/kaffeine/debian/kaffeine.1 b/debian/_base/applications/kaffeine/debian/kaffeine.1 deleted file mode 100644 index 0d66e29a8..000000000 --- a/debian/_base/applications/kaffeine/debian/kaffeine.1 +++ /dev/null @@ -1,187 +0,0 @@ -.\" This file was generated by kdemangen.pl -.TH KAFFEINE 1 "Apr 2005" "Trinity Desktop Environment" "A media player for TDE" -.SH NAME -kaffeine -- A media player for TDE that can use multiple backends for playback. -.SH SYNOPSIS -kaffeine [Qt-options] [TDE-options] [options] [file] -.SH DESCRIPTION -Kaffeine is a media player for TDE. While it supports multiple player -engines, its default engine is Xine, giving Kaffeine a wide variety of -supported media types and letting Kaffeine access CDs, DVDs, and -network streams easily. - -Kaffeine can keep track of multiple playlists simultaneously, and supports -autoloading of subtitles files for use while playing video. - -Author: Jürgen Kofler -Homepage: http://kaffeine.sourceforge.net - - -.SH OPTIONS -.SS -.SS Arguments: -.TP -.B file -File(s) to play. Can be a local file, a URL, a directory or 'DVD', 'VCD', 'AudioCD'. -.SS Options: -.TP -.B -p, --play -Start playing immediately -.TP -.B -f, --fullscreen -Start in fullscreen mode -.TP -.B -a, --audiodriver -Set audio driver [default] -.TP -.B -x, --videodriver -Set video driver [default] -.TP -.B -d, --device -Set Audio-CD/VCD/DVD device path. [default] -.TP -.B --verbose -Output xine debug messages -.TP -.B -w, --wizard -Run installation wizard -.SS -.SS Generic options: -.TP -.B --help -Show help about options -.TP -.B --help-qt -Show Qt specific options -.TP -.B --help-tde -Show TDE specific options -.TP -.B --help-all -Show all options -.TP -.B --author -Show author information -.TP -.B -v, --version -Show version information -.TP -.B --license -Show license information -.TP -.B -- -End of options -.SS -.SS TDE options: -.TP -.B --caption -Use 'caption' as name in the titlebar -.TP -.B --icon -Use 'icon' as the application icon -.TP -.B --miniicon -Use 'icon' as the icon in the titlebar -.TP -.B --config -Use alternative configuration file -.TP -.B --dcopserver -Use the DCOP Server specified by 'server' -.TP -.B --nocrashhandler -Disable crash handler, to get core dumps -.TP -.B --waitforwm -Waits for a WM_NET compatible windowmanager -.TP -.B --style