diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-05-19 08:18:40 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-05-19 08:18:40 +0000 |
commit | 430c04ba1f3887e85a926e987b5877a941c54d4e (patch) | |
tree | 5160e6fdfcce555bcc383ee8c785f5220f48fedb /app-pda/libimobiledevice | |
parent | Remove old wrt bug #311481. (diff) | |
download | historical-430c04ba1f3887e85a926e987b5877a941c54d4e.tar.gz historical-430c04ba1f3887e85a926e987b5877a941c54d4e.tar.bz2 historical-430c04ba1f3887e85a926e987b5877a941c54d4e.zip |
Fix compability with dev-python/cython >= 0.16 wrt #414063
Package-Manager: portage-2.2.0_alpha107/cvs/Linux x86_64
Diffstat (limited to 'app-pda/libimobiledevice')
-rw-r--r-- | app-pda/libimobiledevice/ChangeLog | 10 | ||||
-rw-r--r-- | app-pda/libimobiledevice/Manifest | 18 | ||||
-rw-r--r-- | app-pda/libimobiledevice/files/libimobiledevice-1.1.4-cython.patch | 131 | ||||
-rw-r--r-- | app-pda/libimobiledevice/libimobiledevice-1.1.4-r1.ebuild | 62 |
4 files changed, 212 insertions, 9 deletions
diff --git a/app-pda/libimobiledevice/ChangeLog b/app-pda/libimobiledevice/ChangeLog index efb148b007fd..a85abc5d793a 100644 --- a/app-pda/libimobiledevice/ChangeLog +++ b/app-pda/libimobiledevice/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-pda/libimobiledevice # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-pda/libimobiledevice/ChangeLog,v 1.29 2012/05/16 00:48:36 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-pda/libimobiledevice/ChangeLog,v 1.30 2012/05/19 08:18:40 ssuominen Exp $ + +*libimobiledevice-1.1.4-r1 (19 May 2012) + + 19 May 2012; Samuli Suominen <ssuominen@gentoo.org> + +libimobiledevice-1.1.4-r1.ebuild, + +files/libimobiledevice-1.1.4-cython.patch: + Fix compability with dev-python/cython >= 0.16 wrt #414063 by Frédéric + Romagné, Mattia Rossi and Steve Arnold 16 May 2012; Samuli Suominen <ssuominen@gentoo.org> libimobiledevice-1.1.4.ebuild, +files/libimobiledevice-1.1.4-openssl.patch: diff --git a/app-pda/libimobiledevice/Manifest b/app-pda/libimobiledevice/Manifest index b8a9a9a7aee7..63214f776159 100644 --- a/app-pda/libimobiledevice/Manifest +++ b/app-pda/libimobiledevice/Manifest @@ -1,21 +1,23 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX libimobiledevice-1.1.4-cython.patch 5449 RMD160 6699254518d7f541db52fdfdda94c5d30c4d4d96 SHA1 97767495431be60c872b4bde14e32e6464b0704f SHA256 f9ae71e6de6199a5f9929d9e880679dec8f9107d592ea159c24d43565e1bacaa AUX libimobiledevice-1.1.4-openssl.patch 1375 RMD160 ae077ef737b912dfa2907d87bda73933c75498b2 SHA1 095c70e9b693bbc9608a7919db5419a18240b764 SHA256 014125ba0d2638de262c8b2deb86ea3201c90107714cc3af468aaf0f7a720392 DIST libimobiledevice-1.1.1.tar.bz2 459976 RMD160 7cc2860efc3b7d14686b776e6e9a5237804b3fc4 SHA1 eb81cb8c66beb68987fbc4126e9ca84cd19199c9 SHA256 c544d7bf0e7d6a97f3c446b2fb4597f19aac7b184ea806e16cd6a7852fd25f67 DIST libimobiledevice-1.1.4.tar.bz2 508371 RMD160 ad90beb4b6deaf211e8ea0a3e7d73e0a5ef9b6d3 SHA1 d59d9751d9f792e8674cd87c91005d431bf56065 SHA256 67499cfaa6172f566ee6b0783605acffe484fb7ddc3b09881ab7ac58667ee5b8 EBUILD libimobiledevice-1.1.1.ebuild 1586 RMD160 708322ed85351d0fd168827801d5f718e47b16b5 SHA1 fa985809a5fa8fed947fa85add486cd99f149b6a SHA256 c2d54971760a08c5d4e4b12e000f795be8910c107cbb7127f26bd849117551c6 +EBUILD libimobiledevice-1.1.4-r1.ebuild 1363 RMD160 71895dafe3a6c8b7c38ce8292fcc015be1933aaf SHA1 73815d69f0d8e7830f781e495f6f9e75861ee910 SHA256 e9635370e2c0c384f10f8d5cffa08fffd77a7e4535ed51c39075094ffd5da6ec EBUILD libimobiledevice-1.1.4.ebuild 1490 RMD160 372199d49e45f89ac8df2505fb133ea472ac7d25 SHA1 fc2ff95d6e4f9838d0ba3b002e3b4287bd9b48a9 SHA256 29efebbeb4e1b6b6e666ed6d11316e3d37b51a21a6b0a533a5225462ea65933b -MISC ChangeLog 4512 RMD160 78556ba70681105f55ef41ef4194edda11ddf08e SHA1 dbc9c4bc14d0dd9e06c82dfe20ea314726decaca SHA256 2995a24bde3661f694fe4caf6f3b2e90b9a1ed50f321c4a47e3fdc1217a051c5 +MISC ChangeLog 4809 RMD160 c7b421a17bc15f93ba55f0f1c2e1369624fe5925 SHA1 f1bd2d110d6d01520f59f3852ec6c409ee805f8a SHA256 3013ccde335f14ebd8935314de702f35b868ad74066d4d1bbcf700a1d5bcc9f1 MISC metadata.xml 156 RMD160 6a6d0f6bfe83e3a54c2d72444564ed6ab19857fe SHA1 5b9cb277159d763c133920e483df8d3d587cf7e2 SHA256 7f72b73f6e0d6e26603d85e52cca524711faddf6b516640104c3b82aab4754fb -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQEcBAEBAgAGBQJPsvjBAAoJEEdUh39IaPFNtdkH/16sgwmI7JMDJV+M7QrzIjCo -eVT2Fz1WkNM5HQmtcB3Ciq1LXJ7cPbyxSrFPNz/JMWkp30dIsmy3yLkW4T8IDgLM -02SI4X/vlu2etmiBaxTV8KFKbiTMxifXeGOHHGlvXd8VH9qfbJzttEqyNmVfn0PY -81GW1XQeFnFCN0ADckP6oFeKmz0F1IRZ5CLH4IoREXp0KjgrLF1AxZE3L6DrbLyD -dTjvRHExyKnJUmteRGB72dlwf4zgPTNO1ucVOW7BbRBZ2/ub/X0futHRgxa26rcQ -ZTSOR+xxEOLQFSn5xhdC+ZO4pwrRWN6E7GLleec6y9Am3UTwXE0nuA+UXgrBdns= -=Hn7k +iQEcBAEBAgAGBQJPt1dVAAoJEEdUh39IaPFNREgH/24n9muHO28FlGSaqXf0vAJo +a2AgwZWpX/GIhMFlY9grQst+s53o2SD9EohVvbz/UhUE8VsOuKa9OPF/3UHsJ4y8 +QQbbjFexc8g/lCZ1fnlI6k/kS8KiUF9VvZLKpzDZtDt8zwgGjgTOaYupFdSIvAdo +5sfzf6fMw9mzkA0Jx7dtxPbvh6YtEY35VI4A3t3xp9BeUYGutgnrnctnY2F/yLFR +0tHANl5G9dv/Wg1NXz4gsmjkSq7DdonAt203R/CrRokun+IkLmoHLponn1yldZdR +ojwJlvqQuJsABsmoes6VEXI4xx3MASIze2Set98RM15nPlMsNTw2EdqPLQkvM5o= +=i9T8 -----END PGP SIGNATURE----- diff --git a/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-cython.patch b/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-cython.patch new file mode 100644 index 000000000000..d1f351d5928b --- /dev/null +++ b/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-cython.patch @@ -0,0 +1,131 @@ +http://bugs.gentoo.org/414063 + +http://cgit.sukimashita.com/libimobiledevice.git/commit/?id=70dfe8ad1766990386f1db04bbe5a4826bcde4e5 +http://cgit.sukimashita.com/libimobiledevice.git/commit/?id=84235e0834e57551028329723f4510e1dbe7bc11 +http://cgit.sukimashita.com/libimobiledevice.git/commit/?id=849ea066426b8f5f6e6d1aea9804e095edca3b49 + +--- configure.ac ++++ configure.ac +@@ -83,10 +83,20 @@ + CYTHON=false + fi + if [test "x$CYTHON" != "xfalse"]; then +- CYTHON_SUB=cython ++ AC_MSG_CHECKING([for libplist Cython bindings]) + CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython +- AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) +- cython_python_bindings=yes ++ if [test ! -d "$CYTHON_PLIST_INCLUDE_DIR"]; then ++ CYTHON=false ++ CYTHON_SUB= ++ cython_python_bindings=no ++ AC_MSG_RESULT([no]) ++ AC_MSG_WARN([cannot find libplist Cython bindings. You should install your distribution specific libplist Cython bindings package.]) ++ else ++ AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) ++ AC_MSG_RESULT([$CYTHON_PLIST_INCLUDE_DIR]) ++ CYTHON_SUB=cython ++ cython_python_bindings=yes ++ fi + else + CYTHON_SUB= + cython_python_bindings=no +--- cython/afc.pxi ++++ cython/afc.pxi +@@ -162,7 +162,7 @@ + err = afc_client_free(self._c_client) + self.handle_error(err) + +- cdef inline BaseError _error(self, int16_t ret): ++ cdef BaseError _error(self, int16_t ret): + return AfcError(ret) + + cpdef list get_device_info(self): +--- cython/imobiledevice.pxd ++++ cython/imobiledevice.pxd +@@ -51,8 +51,8 @@ + cdef class PropertyListService(BaseService): + cpdef send(self, plist.Node node) + cpdef object receive(self) +- cdef inline int16_t _send(self, plist.plist_t node) +- cdef inline int16_t _receive(self, plist.plist_t* c_node) ++ cdef int16_t _send(self, plist.plist_t node) ++ cdef int16_t _receive(self, plist.plist_t* c_node) + + cdef extern from "libimobiledevice/lockdown.h": + cdef struct lockdownd_client_private: +--- cython/imobiledevice.pyx ++++ cython/imobiledevice.pyx +@@ -25,9 +25,8 @@ + return 0 + cdef BaseError err = self._error(ret) + raise err +- return -1 + +- cdef inline BaseError _error(self, int16_t ret): pass ++ cdef BaseError _error(self, int16_t ret): pass + + cdef extern from "libimobiledevice/libimobiledevice.h": + ctypedef enum idevice_error_t: +@@ -211,10 +210,10 @@ + plist.plist_free(c_node) + raise + +- cdef inline int16_t _send(self, plist.plist_t node): ++ cdef int16_t _send(self, plist.plist_t node): + raise NotImplementedError("send is not implemented") + +- cdef inline int16_t _receive(self, plist.plist_t* c_node): ++ cdef int16_t _receive(self, plist.plist_t* c_node): + raise NotImplementedError("receive is not implemented") + + cdef class DeviceLinkService(PropertyListService): +--- cython/mobilesync.pxi ++++ cython/mobilesync.pxi +@@ -149,10 +149,10 @@ + plist.plist_free(remapping) + raise + +- cdef inline int16_t _send(self, plist.plist_t node): ++ cdef int16_t _send(self, plist.plist_t node): + return mobilesync_send(self._c_client, node) + +- cdef inline int16_t _receive(self, plist.plist_t* node): ++ cdef int16_t _receive(self, plist.plist_t* node): + return mobilesync_receive(self._c_client, node) + + cdef inline BaseError _error(self, int16_t ret): +--- m4/ac_pkg_cython.m4 ++++ m4/ac_pkg_cython.m4 +@@ -6,8 +6,11 @@ + CYTHON=false + elif test -n "$1" ; then + AC_MSG_CHECKING([for Cython version]) +- [cython_version=`$CYTHON --version 2>&1 | grep 'Cython version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`] ++ [cython_version=`$CYTHON --version 2>&1 | sed 's/Cython version \(.*\)$/\1/g'`] + AC_MSG_RESULT([$cython_version]) ++ ++ # Setup extra version string for parsing ++ [cython_version_stripped=`echo $cython_version | sed 's/\([0-9]\+\)\.\([0-9]\+\)[^\.]*\(\.\([0-9]\+\)\)\?.*/0\1.0\2.0\4/g'`] + if test -n "$cython_version" ; then + # Calculate the required version number components + [required=$1] +@@ -25,8 +28,9 @@ + if test -z "$required_patch" ; then + [required_patch=0] + fi ++ + # Calculate the available version number components +- [available=$cython_version] ++ [available=$cython_version_stripped] + [available_major=`echo $available | sed 's/[^0-9].*//'`] + if test -z "$available_major" ; then + [available_major=0] +@@ -41,6 +45,7 @@ + if test -z "$available_patch" ; then + [available_patch=0] + fi ++ + if test $available_major -gt $required_major || \ + ( test $available_major -eq $required_major && \ + test $available_minor -gt $required_minor ) || \ diff --git a/app-pda/libimobiledevice/libimobiledevice-1.1.4-r1.ebuild b/app-pda/libimobiledevice/libimobiledevice-1.1.4-r1.ebuild new file mode 100644 index 000000000000..b8d83dccd5b2 --- /dev/null +++ b/app-pda/libimobiledevice/libimobiledevice-1.1.4-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-pda/libimobiledevice/libimobiledevice-1.1.4-r1.ebuild,v 1.1 2012/05/19 08:18:40 ssuominen Exp $ + +EAPI=4 +PYTHON_DEPEND="python? 2:2.7" +inherit autotools eutils python + +DESCRIPTION="Support library to communicate with Apple iPhone/iPod Touch devices" +HOMEPAGE="http://www.libimobiledevice.org/" +SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="gnutls python" + +RDEPEND=">=app-pda/libplist-1.8-r1[python?] + >=app-pda/usbmuxd-1.0.8 + gnutls? ( + dev-libs/libgcrypt + >=dev-libs/libtasn1-1.1 + >=net-libs/gnutls-2.2.0 + ) + !gnutls? ( dev-libs/openssl:0 )" +DEPEND="${RDEPEND} + virtual/pkgconfig + python? ( >=dev-python/cython-0.14.1-r1 )" + +DOCS="AUTHORS NEWS README" + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-cython.patch \ + "${FILESDIR}"/${P}-openssl.patch + + eautoreconf + + >py-compile +} + +src_configure() { + local myconf='--disable-static' + use python || myconf+=' --without-cython' + use gnutls && myconf+=' --disable-openssl' + + econf ${myconf} +} + +src_install() { + default + dohtml docs/html/* + + find "${ED}" -name '*.la' -exec rm -f {} + +} |