Gentoo Archives: gentoo-commits

From: "Sergei Trofimovich (slyfox)" <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libmikmod: libmikmod-3.2.0_beta2-r4.ebuild ChangeLog
Date: Tue, 07 Feb 2012 19:21:27
Message-Id: 20120207192118.10E0E2004B@flycatcher.gentoo.org
1 slyfox 12/02/07 19:21:18
2
3 Modified: ChangeLog
4 Added: libmikmod-3.2.0_beta2-r4.ebuild
5 Log:
6 Add USE=static-libs (bug #402499 by Maurizio Camisaschi). Approved by ssuominen.
7
8 (Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.78 media-libs/libmikmod/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libmikmod/ChangeLog?rev=1.78&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libmikmod/ChangeLog?rev=1.78&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libmikmod/ChangeLog?r1=1.77&r2=1.78
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v
20 retrieving revision 1.77
21 retrieving revision 1.78
22 diff -u -r1.77 -r1.78
23 --- ChangeLog 7 Feb 2012 12:46:19 -0000 1.77
24 +++ ChangeLog 7 Feb 2012 19:21:17 -0000 1.78
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-libs/libmikmod
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.77 2012/02/07 12:46:19 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.78 2012/02/07 19:21:17 slyfox Exp $
30 +
31 +*libmikmod-3.2.0_beta2-r4 (07 Feb 2012)
32 +
33 + 07 Feb 2012; Sergei Trofimovich <slyfox@g.o>
34 + +libmikmod-3.2.0_beta2-r4.ebuild:
35 + Add USE=static-libs (bug #402499 by Maurizio Camisaschi). Approved by
36 + ssuominen.
37
38 07 Feb 2012; Agostino Sarubbo <ago@g.o> libmikmod-3.1.12-r1.ebuild,
39 libmikmod-3.2.0_beta2-r3.ebuild:
40
41
42
43 1.1 media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libmikmod-3.2.0_beta2-r4.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild,v 1.1 2012/02/07 19:21:17 slyfox Exp $
53
54 EAPI=2
55 MY_P=${P/_/-}
56 inherit autotools eutils flag-o-matic
57
58 DESCRIPTION="A library to play a wide range of module formats"
59 HOMEPAGE="http://mikmod.raphnet.net/"
60 SRC_URI="http://mikmod.raphnet.net/files/${MY_P}.tar.gz"
61
62 LICENSE="|| ( LGPL-2.1 LGPL-2 )"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
65 # Enable OSS by default since ALSA support isn't available, look below
66 IUSE="+oss raw static-libs"
67
68 S=${WORKDIR}/${MY_P}
69
70 src_prepare() {
71 epatch "${FILESDIR}"/${P}-64bit.patch \
72 "${FILESDIR}"/${P}-autotools.patch \
73 "${FILESDIR}"/${P}-info.patch \
74 "${FILESDIR}"/${P}-doubleRegister.patch \
75 "${FILESDIR}"/${PN}-CVE-2007-6720.patch \
76 "${FILESDIR}"/${PN}-CVE-2009-0179.patch \
77 "${FILESDIR}"/${P}-no-drv_raw.patch \
78 "${FILESDIR}"/${P}-fix-vol-crash.patch \
79 "${FILESDIR}"/${P}-fix-unload-crash.patch \
80 "${FILESDIR}"/${P}-CVE-2009-3995-3996.patch \
81 "${FILESDIR}"/${P}-CVE-2010-2546-2971.patch \
82 "${FILESDIR}"/${P}-pa-workaround.patch
83
84 AT_M4DIR=${S} eautoreconf
85 }
86
87 src_configure() {
88 use raw && append-flags -DDRV_RAW
89
90 # * af is something called AF/AFlib.h and -lAF, not audiofile in tree
91 # * alsa support is for deprecated API and doesn't work
92 econf \
93 --disable-af \
94 --disable-alsa \
95 --disable-esd \
96 $(use_enable oss) \
97 $(use_enable static-libs static)
98 }
99
100 src_install() {
101 emake DESTDIR="${D}" install || die
102 dodoc AUTHORS NEWS README TODO
103 dohtml docs/*.html
104
105 use static-libs || find "${ED}" -name '*.la' -delete
106 }
107
108 pkg_postinst() {
109 use oss || ewarn "No audio output will be available because of USE=\"-oss\"."
110 }