summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2020-12-23 22:38:27 +0100
committerSebastian Pipping <sping@gentoo.org>2020-12-23 22:38:27 +0100
commit7e27271ff0f9bbe921c72b24edd6bba0fe93a857 (patch)
tree823d294dc4fe844602dff636f76a63630c567c5a /media-video/webcamstudio/webcamstudio-0.60_p416.ebuild
parentmedia-sound/deadbeef: Drop due to "fdo-mime.eclass not found" (diff)
downloadbetagarden-7e27271ff0f9bbe921c72b24edd6bba0fe93a857.tar.gz
betagarden-7e27271ff0f9bbe921c72b24edd6bba0fe93a857.tar.bz2
betagarden-7e27271ff0f9bbe921c72b24edd6bba0fe93a857.zip
media-video/webcamstudio: Drop due to "fdo-mime.eclass not found"
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'media-video/webcamstudio/webcamstudio-0.60_p416.ebuild')
-rw-r--r--media-video/webcamstudio/webcamstudio-0.60_p416.ebuild139
1 files changed, 0 insertions, 139 deletions
diff --git a/media-video/webcamstudio/webcamstudio-0.60_p416.ebuild b/media-video/webcamstudio/webcamstudio-0.60_p416.ebuild
deleted file mode 100644
index c604867..0000000
--- a/media-video/webcamstudio/webcamstudio-0.60_p416.ebuild
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="2"
-JAVA_PKG_IUSE="doc source"
-WANT_ANT_TASKS="ant-nodeps ant-junit4 ant-junit"
-EANT_BUILD_XML="${S}/build.xml"
-
-inherit eutils fdo-mime java-pkg-2 java-ant-2
-
-DESCRIPTION="Creates virtual webcam to broadcast over the internet."
-HOMEPAGE="http://www.ws4gl.org/"
-
-# The tarball prepared using the SVN r416 at http://webcamstudio.googlecode.com/svn/trunk
-# The only changes made are the removal of "ffmpeg.exe" and the "vloopback" folder
-SRC_URI="http://gentoo.plexyplanet.org/distfiles/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-DEPEND=">=virtual/jdk-1.6
- dev-libs/glib:2
- virtual/ffmpeg
- media-libs/gstreamer:0.10
- media-libs/gst-plugins-bad
- media-libs/gst-plugins-base
- media-libs/gst-plugins-good
- media-libs/gst-plugins-ugly
- media-sound/pulseaudio
- dev-java/absolutelayout
- dev-java/appframework
- dev-java/commons-cli:1
- dev-java/commons-codec
- dev-java/commons-httpclient:3
- dev-java/jna
- dev-java/jsr305
- dev-java/log4j
- java-virtuals/javamail
- dev-java/slf4j-api
- dev-java/slf4j-nop
- dev-java/swing-worker
- media-video/webcamstudio-module"
-RDEPEND="${DEPEND}"
-
-java_prepare() {
- # Fix some buggy java libs paths
- einfo "Patching the project.properties file..."
- sed -i \
- -e "s?=/usr/share/java/jna.jar?=libraries/jna.jar?" \
- -e "s?=libraries/jna-3.0...jar?=libraries/jna.jar?" \
- -e "s?absolutelayout.classpath=libraries/jna.jar?absolutelayout.classpath=libraries/jna.jar:libraries/absolutelayout.jar?" \
- nbproject/project.properties \
- || die "Failed to patch the project.properties file"
-
- # Fix avconv to gstreamer since avconv fails on some webcams
- einfo "Fixing webcam source command line..."
- sed -i \
- -e "s?#video=gst-launch-0.10?video=gst-launch-0.10?" \
- -e "s?#audio=gst-launch-0.10?audio=gst-launch-0.10?" \
- -e "s?video=avconv?#video=avconv?" \
- -e "s?audio=avconv?#audio=avconv?" \
- src/webcamstudio/externals/linux/sources/webcam.properties \
- || die "Failed to fix webcam source command line"
-
- # Fix avconv/gstreamer/ffmpeg binaries absolute paths
- einfo "Fixing some binaries' paths..."
- sed -i \
- -e "s?=gst-launch-0.10?=/usr/bin/gst-launch-0.10?" \
- -e "s?=avconv?=/usr/bin/ffmpeg?" \
- -e "s?=ffmpeg?=/usr/bin/ffmpeg?" \
- src/webcamstudio/externals/linux/*.properties \
- src/webcamstudio/externals/linux/*/*.properties \
- || die "Failed to fix binaries' paths"
-
- # CD to the proper folder here, so if upstream changes the tree structure
- # to be easier to fix it.
- cd "libraries"
-
- # Remove some bundled java libs and use Gentoo native ones
- einfo "Removing the unnecessary project's jar library files..."
- rm -v appframework*.jar \
- commons-*.jar \
- jcl104-over-slf4j-*.jar \
- jffmpeg-*.jar \
- jna*.jar \
- jsr*.jar \
- log4j-*.jar \
- mail*.jar \
- platform-*.jar \
- slf4j-*.jar \
- swing-*.jar \
- || die "Failed to remove some of the project's jar library files"
-
- java-pkg_jar-from appframework appframework.jar appframework-1.0.3.jar
- java-pkg_jar-from commons-cli-1 commons-cli.jar commons-cli-1.2.jar
- java-pkg_jar-from commons-codec commons-codec.jar commons-codec-1.2.jar
- java-pkg_jar-from commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.1.jar
- java-pkg_jar-from swing-worker swing-worker.jar swing-worker-1.1.jar
- java-pkg_jar-from absolutelayout,jna,jsr305,log4j,sun-javamail,slf4j-api,slf4j-nop
-}
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-}
-
-src_compile() {
- java-pkg-2_src_compile
-}
-
-src_install() {
- java-pkg_dojar dist/WebcamStudio.jar
-
- # Install only non-portage .jar bundled files
- java-pkg_jarinto /opt/${PN}/lib
- java-pkg_dojar libraries/jtwitter*.jar
- java-pkg_dojar libraries/netty*.jar
- java-pkg_dojar libraries/zxing*.jar
-
- # Prepare a launcher for the main application
- java-pkg_dolauncher ${PN} \
- --main webcamstudio.WebcamStudio \
- --jar WebcamStudio.jar
-
- newicon "debian/webcamstudio.png" webcamstudio.png
- domenu "debian/${PN}.desktop"
-
- use doc && java-pkg_dojavadoc dist/javadoc
- use source && java-pkg_dosrc src/*
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
-}