Gentoo Archives: gentoo-commits

From: "Amadeusz Zolnowski (aidecoe)" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mjpg-streamer: mjpg-streamer-0_pre20110522.ebuild ChangeLog metadata.xml
Date: Thu, 17 Nov 2011 20:00:49
Message-Id: 20111117200039.9F23F2004C@flycatcher.gentoo.org
1 aidecoe 11/11/17 20:00:39
2
3 Added: mjpg-streamer-0_pre20110522.ebuild ChangeLog
4 metadata.xml
5 Log:
6 media-video/mjpg-streamer: Initial ebuild. Fixes bug #260969.
7
8 Proxy commit on behalf of Andrzej Pauli <andrzej.pauli@×××××.com>.
9
10 (Portage version: 2.1.10.34/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.1 media-video/mjpg-streamer/mjpg-streamer-0_pre20110522.ebuild
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mjpg-streamer/mjpg-streamer-0_pre20110522.ebuild?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mjpg-streamer/mjpg-streamer-0_pre20110522.ebuild?rev=1.1&content-type=text/plain
17
18 Index: mjpg-streamer-0_pre20110522.ebuild
19 ===================================================================
20 # Copyright 1999-2011 Gentoo Foundation
21 # Distributed under the terms of the GNU General Public License v2
22 # $Header: /var/cvsroot/gentoo-x86/media-video/mjpg-streamer/mjpg-streamer-0_pre20110522.ebuild,v 1.1 2011/11/17 20:00:39 aidecoe Exp $
23
24 EAPI=4
25
26 inherit eutils
27
28 DESCRIPTION="MJPG-streamer takes JPGs from Linux-UVC compatible webcams"
29 HOMEPAGE="http://sourceforge.net/projects/mjpg-streamer"
30 SRC_URI="http://dev.gentoo.org/~aidecoe/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2"
31
32 LICENSE="GPL-2"
33 SLOT="0"
34 KEYWORDS="~x86 ~amd64"
35
36 INPUT_PLUGINS="input_testpicture input_control input_file input_uvc "
37 OUTPUT_PLUGINS="output_file output_udp output_http output_autofocus output_rtsp"
38 IUSE_PLUGINS="${INPUT_PLUGINS} ${OUTPUT_PLUGINS}"
39 IUSE="${IUSE_PLUGINS} www v4l"
40 REQUIRED_USE="|| ( ${INPUT_PLUGINS} )
41 || ( ${OUTPUT_PLUGINS} )
42 v4l? ( input_uvc )"
43
44 RDEPEND="media-libs/jpeg
45 v4l? ( input_uvc? ( media-libs/libv4l ) )"
46 DEPEND="${RDEPEND}
47 input_testpicture? ( media-gfx/imagemagick )"
48
49 src_prepare() {
50 epatch "${FILESDIR}/${PV}-make-var-instead-of-cmd.patch"
51
52 local flag switch
53
54 for flag in ${IUSE_PLUGINS}; do
55 use ${flag} && switch='' || switch='#'
56 sed -i \
57 -e "s|^#*PLUGINS +\?= ${flag}.so|${switch}PLUGINS += ${flag}.so|" \
58 Makefile
59 done
60 }
61
62 src_compile() {
63 local v4l=$(use v4l && use input_uvc && echo 'USE_LIBV4L2=true')
64 emake ${v4l}
65 }
66
67 src_install() {
68 into /usr
69 dobin ${PN//-/_}
70 dolib.so *.so
71
72 if use www ; then
73 insinto /usr/share/${PN}
74 doins -r www
75 fi
76
77 dodoc README TODO
78
79 newinitd "${FILESDIR}"/${PN}.initd ${PN}
80 newconfd "${FILESDIR}"/${PN}.confd ${PN}
81 }
82
83 pkg_postinst() {
84 elog "Remember to set an input and output plugin for mjpg-streamer."
85
86 if use www ; then
87 echo
88 elog "An example webinterface has been installed into"
89 elog "/usr/share/mjpg-streamer/www for your usage."
90 fi
91 }
92
93
94
95 1.1 media-video/mjpg-streamer/ChangeLog
96
97 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mjpg-streamer/ChangeLog?rev=1.1&view=markup
98 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mjpg-streamer/ChangeLog?rev=1.1&content-type=text/plain
99
100 Index: ChangeLog
101 ===================================================================
102 # ChangeLog for media-video/mjpg-streamer
103 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
104 # $Header: /var/cvsroot/gentoo-x86/media-video/mjpg-streamer/ChangeLog,v 1.1 2011/11/17 20:00:39 aidecoe Exp $
105
106 *mjpg-streamer-0_pre20110522 (17 Nov 2011)
107
108 17 Nov 2011; Amadeusz Żołnowski <aidecoe@g.o>
109 +files/0_pre20110522-make-var-instead-of-cmd.patch,
110 +mjpg-streamer-0_pre20110522.ebuild, +files/mjpg-streamer.confd,
111 +files/mjpg-streamer.initd, +metadata.xml:
112 Proxy commit on behalf of Andrzej Pauli <andrzej.pauli@×××××.com>. Initial
113 ebuild. Fixes bug #260969.
114
115
116
117
118 1.1 media-video/mjpg-streamer/metadata.xml
119
120 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mjpg-streamer/metadata.xml?rev=1.1&view=markup
121 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mjpg-streamer/metadata.xml?rev=1.1&content-type=text/plain
122
123 Index: metadata.xml
124 ===================================================================
125 <?xml version="1.0" encoding="UTF-8"?>
126 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
127 <pkgmetadata>
128 <maintainer>
129 <email>andrzej.pauli@×××××.com</email>
130 <name>Andrzej Pauli</name>
131 <description>Maintainer. Assign bugs to him.</description>
132 </maintainer>
133 <maintainer>
134 <email>aidecoe@g.o</email>
135 <name>Amadeusz Żołnowski</name>
136 <description>Proxy maintainer. CC him on bugs.</description>
137 </maintainer>
138 <longdescription lang="en">
139 MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem or
140 other input plugins and streams them as M-JPEG via HTTP to webbrowsers,
141 VLC and other software. It is the successor of uvc-streamer, a Linux-UVC
142 streaming application with Pan/Tilt
143 </longdescription>
144 <use>
145 <flag name='input_testpicture'>Plugin for sending compiled in, test
146 pictures</flag>
147 <flag name='input_control'>Plugin giving ability to control camera
148 movement (only specific cameras)</flag>
149 <flag name='input_file'>Plugin that watches given directory and send
150 it's content</flag>
151 <flag name='input_uvc'>Plugin that sends video stream from UVC
152 compatible camera</flag>
153 <flag name='output_file'>Plugin that saves received content under given
154 location</flag>
155 <flag name='output_udp'>Plugin receiving content over UDP and storing to
156 a directory</flag>
157 <flag name='output_http'>Small HTTP server plugin which sends WWW
158 directory content and streams image content</flag>
159 <flag name='output_autofocus'>Auto focusing plugin</flag>
160 <flag name='output_rtsp'>Plugin which provides a mechanism to take
161 snapshots with a trigger from a UDP packet</flag>
162 <flag name='www'>Installs WWW content</flag>
163 <flag name='v4l'>Uses <pkg>media-libs/libv4l</pkg> function mapping for
164 input_uvc plugin</flag>
165 </use>
166 </pkgmetadata>