Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/motion: motion-3.2.12-r3.ebuild ChangeLog
Date: Wed, 24 Jun 2015 20:08:51
Message-Id: 20150624200842.6D74AA49@oystercatcher.gentoo.org
1 pacho 15/06/24 20:08:42
2
3 Modified: ChangeLog
4 Added: motion-3.2.12-r3.ebuild
5 Log:
6 Use new ffmpeg/libav USEs style, autoreconf is needed after applying the patches (#552224 by Marcin Jurkowski), use readme.gentoo.eclass.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.47 media-video/motion/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/motion/ChangeLog?rev=1.47&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/motion/ChangeLog?rev=1.47&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/motion/ChangeLog?r1=1.46&r2=1.47
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v
20 retrieving revision 1.46
21 retrieving revision 1.47
22 diff -u -r1.46 -r1.47
23 --- ChangeLog 28 Dec 2014 16:00:19 -0000 1.46
24 +++ ChangeLog 24 Jun 2015 20:08:42 -0000 1.47
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-video/motion
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.46 2014/12/28 16:00:19 titanofold Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.47 2015/06/24 20:08:42 pacho Exp $
31 +
32 +*motion-3.2.12-r3 (24 Jun 2015)
33 +
34 + 24 Jun 2015; Pacho Ramos <pacho@g.o> +motion-3.2.12-r3.ebuild:
35 + Use new ffmpeg/libav USEs style, autoreconf is needed after applying the
36 + patches (#552224 by Marcin Jurkowski), use readme.gentoo.eclass.
37
38 28 Dec 2014; Aaron W. Swenson <titanofold@g.o>
39 motion-3.2.12-r2.ebuild:
40
41
42
43 1.1 media-video/motion/motion-3.2.12-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/motion/motion-3.2.12-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/motion/motion-3.2.12-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: motion-3.2.12-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-video/motion/motion-3.2.12-r3.ebuild,v 1.1 2015/06/24 20:08:42 pacho Exp $
53
54 EAPI=5
55 inherit autotools eutils readme.gentoo user
56
57 DESCRIPTION="A software motion detector"
58 HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86"
64 IUSE="ffmpeg libav mysql postgres +v4l"
65
66 RDEPEND="
67 sys-libs/zlib
68 virtual/jpeg
69 ffmpeg? (
70 libav? ( media-video/libav:= )
71 !libav? ( media-video/ffmpeg:0= )
72 )
73 mysql? ( virtual/mysql )
74 postgres? ( dev-db/postgresql )
75 "
76 # note: libv4l is only in dependencies for the libv4l1-videodev.h header file
77 # used by the -workaround-v4l1_deprecation.patch.
78 DEPEND="${RDEPEND}
79 v4l? ( virtual/os-headers media-libs/libv4l )
80 "
81
82 DISABLE_AUTOFORMATTING="yes"
83 DOC_CONTENTS="You need to setup /etc/motion.conf before running
84 motion for the first time.
85 You can install motion detection as a service, use:
86 rc-update add motion default
87 "
88
89 pkg_setup() {
90 enewuser motion -1 -1 -1 video
91 }
92
93 src_prepare() {
94 epatch \
95 "${FILESDIR}"/ffmpeg-1.patch \
96 "${FILESDIR}"/ffmpeg-2.patch \
97 "${FILESDIR}"/ffmpeg-3.patch \
98 "${FILESDIR}"/ffmpeg-4.patch \
99 "${FILESDIR}"/ffmpeg-5.patch \
100 "${FILESDIR}"/libav-9.patch \
101 "${FILESDIR}"/${P}-workaround-v4l1_deprecation.patch
102 eautoreconf
103 }
104
105 src_configure() {
106 econf \
107 $(use_with v4l) \
108 $(use_with ffmpeg) \
109 $(use_with mysql) \
110 $(use_with postgres pgsql) \
111 --without-optimizecpu
112 }
113
114 src_install() {
115 emake \
116 DESTDIR="${D}" \
117 DOC='CHANGELOG CODE_STANDARD CREDITS FAQ README' \
118 docdir=/usr/share/doc/${PF} \
119 EXAMPLES='thread*.conf' \
120 examplesdir=/usr/share/doc/${PF}/examples \
121 install
122
123 dohtml *.html
124
125 newinitd "${FILESDIR}"/motion.initd-r2 motion
126 newconfd "${FILESDIR}"/motion.confd motion
127
128 mv -vf "${D}"/etc/motion{-dist,}.conf || die
129
130 readme.gentoo_create_doc
131 }