Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-cpp/gflags: ChangeLog gflags-1.2.ebuild
Date: Sat, 29 May 2010 20:50:25
Message-Id: 20100529205021.959B72CF37@corvid.gentoo.org
1 arfrever 10/05/29 20:50:21
2
3 Modified: ChangeLog gflags-1.2.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS (bug #312131).
6 (Portage version: HEAD/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.8 dev-cpp/gflags/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gflags/ChangeLog?rev=1.8&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gflags/ChangeLog?rev=1.8&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gflags/ChangeLog?r1=1.7&r2=1.8
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-cpp/gflags/ChangeLog,v
18 retrieving revision 1.7
19 retrieving revision 1.8
20 diff -u -r1.7 -r1.8
21 --- ChangeLog 14 Sep 2009 10:58:50 -0000 1.7
22 +++ ChangeLog 29 May 2010 20:50:21 -0000 1.8
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-cpp/gflags
25 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gflags/ChangeLog,v 1.7 2009/09/14 10:58:50 dev-zero Exp $
27 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gflags/ChangeLog,v 1.8 2010/05/29 20:50:21 arfrever Exp $
29 +
30 + 29 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + gflags-1.2.ebuild:
32 + Set SUPPORT_PYTHON_ABIS (bug #312131).
33
34 *gflags-1.2 (14 Sep 2009)
35
36
37
38
39 1.2 dev-cpp/gflags/gflags-1.2.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gflags/gflags-1.2.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gflags/gflags-1.2.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gflags/gflags-1.2.ebuild?r1=1.1&r2=1.2
44
45 Index: gflags-1.2.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-cpp/gflags/gflags-1.2.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- gflags-1.2.ebuild 14 Sep 2009 10:58:50 -0000 1.1
52 +++ gflags-1.2.ebuild 29 May 2010 20:50:21 -0000 1.2
53 @@ -1,10 +1,12 @@
54 -# Copyright 1999-2009 Gentoo Foundation
55 +# Copyright 1999-2010 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gflags/gflags-1.2.ebuild,v 1.1 2009/09/14 10:58:50 dev-zero Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gflags/gflags-1.2.ebuild,v 1.2 2010/05/29 20:50:21 arfrever Exp $
59
60 -EAPI="2"
61 +EAPI="3"
62 +PYTHON_DEPEND="python? 2"
63 +SUPPORT_PYTHON_ABIS="1"
64
65 -inherit python
66 +inherit distutils
67
68 DESCRIPTION="Google's C++ argument parsing library with python extensions."
69 HOMEPAGE="http://code.google.com/p/google-gflags/"
70 @@ -14,16 +16,18 @@
71 KEYWORDS="~amd64"
72 IUSE="python"
73
74 -DEPEND="python? ( dev-lang/python )"
75 -RDEPEND="${DEPEND}"
76 +DEPEND=""
77 +RDEPEND=""
78 +RESTRICT_PYTHON_ABIS="3.*"
79 +
80 +PYTHON_MODNAME="gflags.py"
81
82 src_compile() {
83 default
84
85 if use python; then
86 cd python
87 - python_version
88 - "${python}" setup.py build || die "python build failed"
89 + distutils_src_compile
90 fi
91 }
92
93 @@ -36,16 +40,18 @@
94
95 if use python; then
96 cd python
97 - python_version
98 - "${python}" setup.py install --root="${D}" --no-compile || die "python install failed"
99 - python_need_rebuild
100 + distutils_src_install
101 fi
102 }
103
104 pkg_postinst() {
105 - python_mod_optimize
106 + if use python; then
107 + distutils_pkg_postinst
108 + fi
109 }
110
111 pkg_postrm() {
112 - python_mod_cleanup
113 + if use python; then
114 + distutils_pkg_postrm
115 + fi
116 }