Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pythonmagick: pythonmagick-0.9.8.ebuild ChangeLog
Date: Sat, 29 Sep 2012 22:43:08
Message-Id: 20120929224258.611D121600@flycatcher.gentoo.org
1 radhermit 12/09/29 22:42:58
2
3 Modified: ChangeLog
4 Added: pythonmagick-0.9.8.ebuild
5 Log:
6 Version bump. Fix build with >=boost-1.50.
7
8 (Portage version: 2.2.0_alpha133/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.39 dev-python/pythonmagick/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pythonmagick/ChangeLog?rev=1.39&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pythonmagick/ChangeLog?rev=1.39&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pythonmagick/ChangeLog?r1=1.38&r2=1.39
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/ChangeLog,v
20 retrieving revision 1.38
21 retrieving revision 1.39
22 diff -u -r1.38 -r1.39
23 --- ChangeLog 4 May 2012 15:12:12 -0000 1.38
24 +++ ChangeLog 29 Sep 2012 22:42:58 -0000 1.39
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/pythonmagick
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/ChangeLog,v 1.38 2012/05/04 15:12:12 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/ChangeLog,v 1.39 2012/09/29 22:42:58 radhermit Exp $
30 +
31 +*pythonmagick-0.9.8 (29 Sep 2012)
32 +
33 + 29 Sep 2012; Tim Harder <radhermit@g.o> +pythonmagick-0.9.8.ebuild:
34 + Version bump. Fix build with >=boost-1.50.
35
36 04 May 2012; Patrick Lauer <patrick@g.o> pythonmagick-0.9.7-r1.ebuild,
37 pythonmagick-0.9.7.ebuild:
38
39
40
41 1.1 dev-python/pythonmagick/pythonmagick-0.9.8.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.9.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.9.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pythonmagick-0.9.8.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.9.8.ebuild,v 1.1 2012/09/29 22:42:58 radhermit Exp $
51
52 EAPI="4"
53 PYTHON_DEPEND="*:2.6"
54 SUPPORT_PYTHON_ABIS="1"
55 RESTRICT_PYTHON_ABIS="2.4 2.5 *-jython 2.7-pypy-*"
56 PYTHON_EXPORT_PHASE_FUNCTIONS="1"
57
58 inherit autotools eutils python boost-utils
59
60 MY_PN="PythonMagick"
61 MY_P="${MY_PN}-${PV}"
62
63 DESCRIPTION="Python bindings for ImageMagick"
64 HOMEPAGE="http://www.imagemagick.org/script/api.php"
65 SRC_URI="http://www.imagemagick.org/download/python/${MY_P}.tar.xz"
66
67 LICENSE="GPL-3"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~x86"
70 IUSE=""
71
72 RDEPEND=">=dev-libs/boost-1.48[python]
73 >=media-gfx/imagemagick-6.4"
74 DEPEND="${RDEPEND}
75 virtual/pkgconfig"
76
77 S="${WORKDIR}/${MY_P}"
78
79 PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing")
80
81 src_prepare() {
82 epatch "${FILESDIR}/${PN}-0.9.1-use_active_python_version.patch"
83 epatch "${FILESDIR}/${PN}-0.9.2-fix_detection_of_python_includedir.patch"
84
85 sed -e "s/AM_PATH_PYTHON(3.1)/AM_PATH_PYTHON(2.6)/" -i configure.ac || die "sed failed"
86
87 eautoreconf
88
89 python_clean_py-compile_files
90
91 # Support Python 3.
92 sed -e "s/import _PythonMagick/from . import _PythonMagick/" -i PythonMagick/__init__.py || die "sed failed"
93
94 python_src_prepare
95 }
96
97 src_configure() {
98 configuration() {
99 sed -e "s/-lboost_python/-lboost_python-${PYTHON_ABI}/" -i Makefile.in
100 econf \
101 --disable-static \
102 --with-boost-python="boost_python-${PYTHON_ABI}" \
103 --with-boost-libdir="$(boost-utils_get_libdir)"
104 }
105 python_execute_function -s configuration
106 }
107
108 src_install() {
109 python_src_install
110 python_clean_installation_image
111 }
112
113 pkg_postinst() {
114 python_mod_optimize PythonMagick
115 }
116
117 pkg_postrm() {
118 python_mod_cleanup PythonMagick
119 }