Gentoo Archives: gentoo-commits

From: "Joerg Bornkessel (hd_brummy)" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: vdr-plugin.eclass
Date: Fri, 28 Jan 2011 17:07:14
Message-Id: 20110128170703.F0D4D20054@flycatcher.gentoo.org
1 hd_brummy 11/01/28 17:07:03
2
3 Modified: vdr-plugin.eclass
4 Log:
5 addapted to EAPI=3
6
7 Revision Changes Path
8 1.72 eclass/vdr-plugin.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vdr-plugin.eclass?rev=1.72&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vdr-plugin.eclass?rev=1.72&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vdr-plugin.eclass?r1=1.71&r2=1.72
13
14 Index: vdr-plugin.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v
17 retrieving revision 1.71
18 retrieving revision 1.72
19 diff -u -r1.71 -r1.72
20 --- vdr-plugin.eclass 11 Oct 2009 11:49:05 -0000 1.71
21 +++ vdr-plugin.eclass 28 Jan 2011 17:07:03 -0000 1.72
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2005 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.71 2009/10/11 11:49:05 maekke Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.72 2011/01/28 17:07:03 hd_brummy Exp $
27 #
28 # Author:
29 # Matthias Schwarzott <zzam@g.o>
30 @@ -68,6 +68,10 @@
31
32 inherit base multilib eutils flag-o-matic
33
34 +if ! has "${EAPI:-0}" 0 1 2 3; then
35 + die "API of vdr-plugin.eclass in EAPI=\"${EAPI}\" not established"
36 +fi
37 +
38 IUSE=""
39
40 # Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes
41 @@ -382,6 +386,12 @@
42 # -fPIC is needed for shared objects on some platforms (amd64 and others)
43 append-flags -fPIC
44
45 + # Plugins need to be compiled with position independent code, otherwise linking
46 + # VDR against it will fail
47 + if has_version ">=media-video/vdr-1.7.13"; then
48 + append-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
49 + fi
50 +
51 # Where should the plugins live in the filesystem
52 VDR_PLUGIN_DIR="/usr/$(get_libdir)/vdr/plugins"
53 VDR_CHECKSUM_DIR="${VDR_PLUGIN_DIR%/plugins}/checksums"
54 @@ -461,7 +471,7 @@
55 fi
56 if [ -z "$1" ]; then
57 case "${EAPI:-0}" in
58 - 2)
59 + 2|3)
60 vdr-plugin_src_util unpack
61 ;;
62 *)
63 @@ -604,7 +614,7 @@
64 }
65
66 case "${EAPI:-0}" in
67 - 2)
68 + 2|3)
69 EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm pkg_config
70 ;;
71 *)