Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mjpegtools/
Date: Fri, 03 May 2019 08:44:51
Message-Id: 1556872826.36d0a59d620e820478d219e81e1e3bed995ca20f.pacho@gentoo
1 commit: 36d0a59d620e820478d219e81e1e3bed995ca20f
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 3 08:40:26 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri May 3 08:40:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36d0a59d
7
8 media-video/mjpegtools: Drop old
9
10 Package-Manager: Portage-2.3.64, Repoman-2.3.12
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 media-video/mjpegtools/mjpegtools-2.1.0-r3.ebuild | 116 ----------------------
14 1 file changed, 116 deletions(-)
15
16 diff --git a/media-video/mjpegtools/mjpegtools-2.1.0-r3.ebuild b/media-video/mjpegtools/mjpegtools-2.1.0-r3.ebuild
17 deleted file mode 100644
18 index 9b92deb1bff..00000000000
19 --- a/media-video/mjpegtools/mjpegtools-2.1.0-r3.ebuild
20 +++ /dev/null
21 @@ -1,116 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -inherit autotools flag-o-matic multilib-minimal toolchain-funcs
28 -
29 -DESCRIPTION="Tools for MJPEG video"
30 -HOMEPAGE="http://mjpeg.sourceforge.net/"
31 -SRC_URI="mirror://sourceforge/mjpeg/${P}.tar.gz"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="1"
35 -KEYWORDS="alpha amd64 ~arm ~arm64 ~hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd"
36 -IUSE="cpu_flags_x86_mmx dv gtk png quicktime sdl sdlgfx static-libs"
37 -REQUIRED_USE="sdlgfx? ( sdl )"
38 -
39 -RDEPEND="
40 - virtual/jpeg:0=[${MULTILIB_USEDEP}]
41 - dv? ( >=media-libs/libdv-1.0.0-r3[${MULTILIB_USEDEP}] )
42 - gtk? ( x11-libs/gtk+:2 )
43 - png? ( media-libs/libpng:0= )
44 - quicktime? ( >=media-libs/libquicktime-1.2.4-r1[${MULTILIB_USEDEP}] )
45 - sdl? ( >=media-libs/libsdl-1.2.15-r4[${MULTILIB_USEDEP}]
46 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
47 - sdlgfx? ( media-libs/sdl-gfx )
48 - )"
49 -DEPEND="${RDEPEND}
50 - >=sys-apps/sed-4
51 - virtual/awk
52 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
53 - cpu_flags_x86_mmx? ( dev-lang/nasm )
54 -"
55 -
56 -PATCHES=(
57 - "${FILESDIR}"/${P}-pic.patch
58 - # https://sourceforge.net/p/mjpeg/bugs/139/
59 - "${FILESDIR}"/${P}-sdl-cflags.patch
60 - "${FILESDIR}"/mjpegtools-2.1.0-no_format.patch
61 -)
62 -
63 -src_prepare() {
64 - default
65 -
66 - eautoreconf
67 - sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
68 -}
69 -
70 -multilib_src_configure() {
71 - [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
72 -
73 - local myconf=(
74 - --enable-compile-warnings
75 - $(use_enable cpu_flags_x86_mmx simd-accel)
76 - $(use_enable static-libs static)
77 - --enable-largefile
78 -
79 - $(use_with quicktime libquicktime)
80 - $(use_with dv libdv)
81 - $(use_with sdl libsdl)
82 - --without-v4l
83 - $(use_with sdl x)
84 -
85 - # used by tools only
86 - $(multilib_native_use_with gtk)
87 - $(multilib_native_use_with png libpng)
88 - $(multilib_native_use_with sdlgfx)
89 -
90 - # used only in V4LCONF_LIBS that is not used anywhere...
91 - --without-dga
92 - )
93 -
94 - ECONF_SOURCE=${S} \
95 - econf "${myconf[@]}"
96 -}
97 -
98 -multilib_src_compile() {
99 - if multilib_is_native_abi; then
100 - default
101 - else
102 - # avoid building programs
103 - emake bin_PROGRAMS=
104 - fi
105 -}
106 -
107 -multilib_src_test() {
108 - # there are no tests at the moment, so it would just build
109 - # all programs in non-native ABIs...
110 - multilib_is_native_abi && default
111 -}
112 -
113 -multilib_src_install() {
114 - if multilib_is_native_abi; then
115 - default
116 - else
117 - emake DESTDIR="${D}" install \
118 - bin_PROGRAMS=
119 - fi
120 -}
121 -
122 -multilib_src_install_all() {
123 - einstalldocs
124 - dodoc mjpeg_howto.txt PLANS HINTS docs/FAQ.txt
125 -
126 - find "${D}" -name '*.la' -delete || die
127 -}
128 -
129 -pkg_postinst() {
130 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
131 - elog "mjpegtools installs user contributed scripts which require additional"
132 - elog "dependencies not pulled in by the installation."
133 - elog "These have to be installed manually."
134 - elog "Currently known extra dpendencies are: ffmpeg, mencoder from mplayer,"
135 - elog "parts of transcode, mpeg2dec from libmpeg2, sox, toolame, vcdimager, python."
136 - fi
137 -}