commit:     d090b3e546ef9ec371e578b7d2055311fd64c019
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat May 22 12:22:03 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat May 22 12:22:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d090b3e5

media-tv/droidcam: move to ::gentoo

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 media-tv/droidcam/Manifest                         |   1 -
 media-tv/droidcam/droidcam-1.7.3.ebuild            | 147 ---------------------
 media-tv/droidcam/files/droidcam-audio.conf        |   1 -
 .../droidcam/files/droidcam-makefile-fixes.patch   |  47 -------
 media-tv/droidcam/files/droidcam-modprobe.conf     |   2 -
 media-tv/droidcam/files/droidcam-video.conf        |   1 -
 media-tv/droidcam/metadata.xml                     |  18 ---
 profiles/updates/2Q-2021                           |   1 +
 8 files changed, 1 insertion(+), 217 deletions(-)

diff --git a/media-tv/droidcam/Manifest b/media-tv/droidcam/Manifest
deleted file mode 100644
index 9d21ae1f8..000000000
--- a/media-tv/droidcam/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST droidcam-1.7.3.tar.gz 83146 BLAKE2B 
b79d210a7d6a3cee7322b373cd92b2c1a326dd9887dff1df752e9818f9e7ed88dfdfd4a33a22ccb39c601df81c4e9538b1efa8029a9ad56f39d400fc50bc746b
 SHA512 
39d6947b66f1be7896c56aa01d471cbd025deaeb2d2359f9434e5ea91e4302f4c16ee31486bb04fab1dfc7f6d8b2de3f6800ead665b7b3d366b01b25297beaba

diff --git a/media-tv/droidcam/droidcam-1.7.3.ebuild 
b/media-tv/droidcam/droidcam-1.7.3.ebuild
deleted file mode 100644
index 6d94b398a..000000000
--- a/media-tv/droidcam/droidcam-1.7.3.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 2019-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit desktop linux-mod readme.gentoo-r1 xdg
-
-DESCRIPTION="Use android phone as webcam, using a v4l device driver and app"
-HOMEPAGE="https://www.dev47apps.com/droidcam/linux/
-       https://github.com/aramg/droidcam";
-SRC_URI="https://github.com/aramg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-KEYWORDS="~amd64"
-LICENSE="GPL-2"
-SLOT="0"
-
-IUSE="gtk"
-
-# Requires connection to phone
-RESTRICT="test"
-
-DEPEND="
-       app-pda/libplist
-       app-pda/libusbmuxd
-       dev-libs/glib
-       dev-libs/libappindicator:3
-       dev-libs/libxml2
-       dev-util/android-tools
-       media-libs/alsa-lib
-       media-libs/libjpeg-turbo
-       >=media-libs/speex-1.2.0-r1
-       media-video/ffmpeg
-       gtk? (
-               dev-cpp/gtkmm:3.0
-               x11-libs/gdk-pixbuf
-               x11-libs/gtk+:3
-               x11-libs/libX11
-               x11-libs/pango
-       )
-"
-
-BDEPEND="virtual/pkgconfig"
-
-RDEPEND="${DEPEND}"
-
-DOCS=( README.md README-DKMS.md )
-DISABLE_AUTOFORMATTING="true"
-DOC_CONTENTS="
-               The default resolution for v4l2loopback-dc[1] is 640x480. You 
can override the
-               value by copying droidcam.conf.default to 
/etc/modprobe.d/droidcam.conf
-               and modifying 'width' and 'height'.
-               [1] https://github.com/aramg/droidcam/issues/56
-"
-
-BUILD_TARGETS="all"
-MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)"
-MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
-
-CONFIG_CHECK="~SND_ALOOP VIDEO_DEV MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT"
-ERROR_SND_ALOOP="CONFIG_SND_ALOOP is required for audio support"
-
-PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch"
-
-src_prepare() {
-       if ! use gtk ; then
-               sed -i -e '/cflags gtk+/d' Makefile || die
-       else
-               # remove path and extension from icon entry
-               sed -i -e 's/Icon=\/opt\/droidcam-icon.png/Icon=droidcam/g' 
droidcam.desktop || die
-               xdg_src_prepare
-       fi
-       linux-mod_pkg_setup
-}
-
-src_configure() {
-       set_arch_to_kernel
-       default
-}
-
-src_compile() {
-       if use gtk ; then
-               emake droidcam
-       fi
-       emake droidcam-cli
-       KERNELRELEASE="${KV_FULL}" linux-mod_src_compile
-}
-
-src_test() {
-       pushd "v4l2loopback"
-       default
-       ./test || die
-       popd
-}
-
-pkg_preinst() {
-       xdg_pkg_preinst
-}
-
-src_install() {
-       if use gtk ; then
-               dobin droidcam
-               newicon -s 32 icon.png droidcam.png
-               newicon -s 48 icon2.png droidcam.png
-               domenu droidcam.desktop
-       fi
-       dobin "${PN}-cli"
-
-       readme.gentoo_create_doc
-
-       # The cli and gui do not auto load the module if unloaded (why not tho?)
-       # so we just put it in modules-load.d to make sure it always works
-       insinto /etc/modules-load.d
-       doins "${FILESDIR}"/${PN}-video.conf
-       if linux_config_exists ; then
-               if linux_chkconfig_module SND_ALOOP ; then
-                       doins "${FILESDIR}"/${PN}-audio.conf
-               fi
-       fi
-
-       newdoc "${FILESDIR}"/${PN}-modprobe.conf ${PN}.conf.default
-       einstalldocs
-       linux-mod_src_install
-}
-
-pkg_postinst() {
-       if use gtk ; then
-               xdg_pkg_postinst
-       else
-               elog
-               elog "Only droidcam-cli has been installed since 'gtk' flag was 
not set"
-               elog
-       fi
-
-       linux-mod_pkg_postinst
-       readme.gentoo_print_elog
-
-       elog "Links to the Android/iPhone/iPad apps can be found at"
-       elog "https://www.dev47apps.com/";
-}
-
-pkg_postrm() {
-       if use gtk ; then
-               xdg_pkg_postrm
-       fi
-
-       linux-mod_pkg_postrm
-}

diff --git a/media-tv/droidcam/files/droidcam-audio.conf 
b/media-tv/droidcam/files/droidcam-audio.conf
deleted file mode 100644
index 6619319e2..000000000
--- a/media-tv/droidcam/files/droidcam-audio.conf
+++ /dev/null
@@ -1 +0,0 @@
-snd_aloop

diff --git a/media-tv/droidcam/files/droidcam-makefile-fixes.patch 
b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
deleted file mode 100644
index c413d7edd..000000000
--- a/media-tv/droidcam/files/droidcam-makefile-fixes.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-diff --git a/Makefile b/Makefile
-index b5f696c..bcb5800 100644
---- a/Makefile
-+++ b/Makefile
-@@ -6,7 +6,7 @@
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- # Use at your own risk. See README file for more details.
- 
--JPEG_DIR ?= /opt/libjpeg-turbo
-+JPEG_DIR ?= /usr
- JPEG_INCLUDE ?= $(JPEG_DIR)/include
- JPEG_LIB ?= $(JPEG_DIR)/lib`getconf LONG_BIT`
- 
-@@ -16,15 +16,15 @@ GTK   = `pkg-config --libs --cflags gtk+-3.0` `pkg-config 
--libs x11`
- GTK  += `pkg-config --cflags --libs appindicator3-0.1`
- LIBAV = `pkg-config --libs --cflags libswscale libavutil`
- LIBS  =  -lspeex -lasound -lpthread -lm
--JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.a
-+JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.so
- SRC   = src/connection.c src/settings.c src/decoder*.c src/av.c src/usb.c
--USBMUXD = -lusbmuxd
-+USBMUXD = -lusbmuxd-2.0
- 
- all: droidcam-cli droidcam
- 
- ifneq "$(RELEASE)" ""
--LIBAV = /usr/lib/x86_64-linux-gnu/libswscale.a 
/usr/lib/x86_64-linux-gnu/libavutil.a
--SRC  += src/libusbmuxd.a src/libxml2.a src/libplist-2.0.a
-+LIBAV = /usr/lib/x86_64-linux-gnu/libswscale.so 
/usr/lib/x86_64-linux-gnu/libavutil.so
-+SRC  += src/libusbmuxd-2.0.so src/libxml2.so src/libplist-2.0.so
- package: clean all
-       zip "droidcam_$(RELEASE).zip" \
-               LICENSE README* icon2.png  \
-@@ -40,11 +40,11 @@ gresource: .gresource.xml icon2.png
- 
- droidcam-cli: LDLIBS += $(JPEG) $(LIBAV) $(LIBS)
- droidcam-cli: src/droidcam-cli.c $(SRC)
--      $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
-+      $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
- 
- droidcam: LDLIBS += $(GTK) $(JPEG) $(LIBAV) $(LIBS)
- droidcam: src/droidcam.c src/resources.c $(SRC)
--      $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
-+      $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
- 
- clean:
-       rm -f droidcam

diff --git a/media-tv/droidcam/files/droidcam-modprobe.conf 
b/media-tv/droidcam/files/droidcam-modprobe.conf
deleted file mode 100644
index d4d580124..000000000
--- a/media-tv/droidcam/files/droidcam-modprobe.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-# Suggested values: 640×480, 960×720, 1280×720 (720p), 1920×1080 (1080p).
-options v4l2loopback-dc width=640 height=480

diff --git a/media-tv/droidcam/files/droidcam-video.conf 
b/media-tv/droidcam/files/droidcam-video.conf
deleted file mode 100644
index 7398776dc..000000000
--- a/media-tv/droidcam/files/droidcam-video.conf
+++ /dev/null
@@ -1 +0,0 @@
-v4l2loopback-dc

diff --git a/media-tv/droidcam/metadata.xml b/media-tv/droidcam/metadata.xml
deleted file mode 100644
index e86e346b2..000000000
--- a/media-tv/droidcam/metadata.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-       <maintainer type="person">
-               <email>[email protected]</email>
-               <name>Andrew Ammerlaan</name>
-       </maintainer>
-       <use>
-               <flag name="gtk">Build the <pkg>dev-cpp/gtkmm</pkg>:3.0 
client.</flag>
-       </use>
-       <longdescription>
-               DroidCam allows you to use your Android or iOS device as 
webcam, wired (USB
-               and ADB) or wireless (TCP/IP). Works with the free version of 
the phone app.    
-       </longdescription>
-       <upstream>
-               <remote-id type="github">aramg/droidcam</remote-id>
-       </upstream>
-</pkgmetadata>

diff --git a/profiles/updates/2Q-2021 b/profiles/updates/2Q-2021
index e967d63f8..1382cf02e 100644
--- a/profiles/updates/2Q-2021
+++ b/profiles/updates/2Q-2021
@@ -1,3 +1,4 @@
 move sys-apps/nq sys-process/nq
 move www-client/browsh-bin www-client/browsh
 move app-misc/pup-bin app-misc/pup
+move media-tv/droidcam media-video/droidcam

Reply via email to