| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  | # Copyright 2016 Julian Ospald <hasufell@posteo.de> | 
					
						
							|  |  |  | # Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-15 07:52:14 +00:00
										 |  |  | require github [ user="AGProjects" pn="python3-sipsimple" tag="${PV}" ] | 
					
						
							|  |  |  | require setup-py [ import=distutils blacklist="2" multibuild=false ] | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | SUMMARY="SIP SIMPLE client SDK is a Software Development Kit" | 
					
						
							| 
									
										
										
										
											2017-03-13 20:21:21 +00:00
										 |  |  | HOMEPAGE="http://sipsimpleclient.org ${HOMEPAGE}" | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-16 11:52:19 +00:00
										 |  |  | ZRTPCPP_SHA="6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DOWNLOADS+="
 | 
					
						
							|  |  |  |     https://github.com/pjsip/pjproject/archive/2.10.tar.gz | 
					
						
							|  |  |  |     https://github.com/wernerd/ZRTPCPP/archive/6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03.tar.gz -> ZRTPCPP-${ZRTPCPP_SHA}.tar.gz | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  | LICENCES="GPL-3" | 
					
						
							|  |  |  | SLOT="0" | 
					
						
							|  |  |  | PLATFORMS="~amd64 ~x86" | 
					
						
							|  |  |  | MYOPTIONS="
 | 
					
						
							|  |  |  |     ( providers: libressl openssl ) [[ number-selected = exactly-one ]] | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEPENDENCIES="
 | 
					
						
							|  |  |  |     build: | 
					
						
							|  |  |  |         dev-python/Cython[python_abis:*(-)?] | 
					
						
							|  |  |  |         virtual/pkg-config | 
					
						
							|  |  |  |     build+run: | 
					
						
							|  |  |  |         dev-db/sqlite:3 | 
					
						
							| 
									
										
										
										
											2019-06-03 08:25:01 +00:00
										 |  |  |         dev-libs/icu:= | 
					
						
							| 
									
										
										
										
											2021-03-15 07:52:14 +00:00
										 |  |  |         dev-python/python-application[>=3.0.3][python_abis:*(-)?] | 
					
						
							| 
									
										
										
										
											2020-08-08 12:19:40 +00:00
										 |  |  |         media/ffmpeg[h264] | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  |         media-libs/libvpx | 
					
						
							|  |  |  |         media-libs/v4l-utils | 
					
						
							|  |  |  |         sys-apps/util-linux | 
					
						
							|  |  |  |         sys-sound/alsa-lib | 
					
						
							|  |  |  |         providers:libressl? ( dev-libs/libressl:= ) | 
					
						
							|  |  |  |         providers:openssl? ( dev-libs/openssl ) | 
					
						
							|  |  |  |     run: | 
					
						
							|  |  |  |         dev-python/dnspython[python_abis:*(-)?] | 
					
						
							| 
									
										
										
										
											2021-09-16 11:52:19 +00:00
										 |  |  |         dev-python/gevent[python_abis:*(-)?] | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  |         dev-python/greenlet[python_abis:*(-)?] | 
					
						
							|  |  |  |         dev-python/lxml[python_abis:*(-)?] | 
					
						
							|  |  |  |         dev-python/python-dateutil[python_abis:*(-)?] | 
					
						
							| 
									
										
										
										
											2021-03-15 07:52:14 +00:00
										 |  |  |         dev-python/python-eventlib[>=0.3.0][python_abis:*(-)?] | 
					
						
							|  |  |  |         dev-python/python-gnutls[>=3.1.8][python_abis:*(-)?] | 
					
						
							|  |  |  |         dev-python/python-msrplib[>=0.21.0][python_abis:*(-)?] | 
					
						
							|  |  |  |         dev-python/python-otr[>=2.0.1][python_abis:*(-)?] | 
					
						
							|  |  |  |         dev-python/python-xcaplib[>=2.0.0][python_abis:*(-)?] | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  |         dev-python/zopeinterface[python_abis:*(-)?] | 
					
						
							| 
									
										
										
										
											2016-03-16 16:11:13 +00:00
										 |  |  |         media-libs/x264[-10bit] | 
					
						
							| 
									
										
										
										
											2019-06-04 12:21:17 +00:00
										 |  |  |         net-twisted/Twisted[python_abis:*(-)?] | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-13 20:21:21 +00:00
										 |  |  | DEFAULT_SRC_PREPARE_PATCHES=( | 
					
						
							| 
									
										
										
										
											2021-03-15 07:52:14 +00:00
										 |  |  |     "${FILES}"/${PN}-fix-build.patch | 
					
						
							| 
									
										
										
										
											2017-03-13 20:21:21 +00:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-16 11:52:19 +00:00
										 |  |  | src_prepare() { | 
					
						
							|  |  |  |     setup-py_src_prepare | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # MOst of this is straight from get_dependencies.sh but that | 
					
						
							|  |  |  |     # wants to download the dependencies directly so we can't use it | 
					
						
							|  |  |  |     edo mkdir "${WORK}"/deps/pjsip | 
					
						
							|  |  |  |     edo mv "${WORKBASE}"/pjproject*/* "${WORK}"/deps/pjsip/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     edo pushd "${WORK}"/deps/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # Copy wrapper from old version to third_party/zsrtp/ | 
					
						
							|  |  |  |     edo mkdir ./pjsip/third_party/zsrtp | 
					
						
							|  |  |  |     cp -r zsrtp/include ./pjsip/third_party/zsrtp/ | 
					
						
							|  |  |  |     cp -r zsrtp/srtp    ./pjsip/third_party/zsrtp/ | 
					
						
							|  |  |  |     cp -r zsrtp/build   ./pjsip/third_party/build/zsrtp | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # Copy new version to third_party/zsrtp/ | 
					
						
							|  |  |  |     mkdir ./pjsip/third_party/zsrtp/zrtp | 
					
						
							|  |  |  |     cp -r "${WORKBASE}"/ZRTPCPP-"${ZRTPCPP_SHA}"/bnlib ./pjsip/third_party/zsrtp/zrtp/ | 
					
						
							|  |  |  |     cp -r "${WORKBASE}"/ZRTPCPP-"${ZRTPCPP_SHA}"/common ./pjsip/third_party/zsrtp/zrtp/ | 
					
						
							|  |  |  |     cp -r "${WORKBASE}"/ZRTPCPP-"${ZRTPCPP_SHA}"/cryptcommon ./pjsip/third_party/zsrtp/zrtp/ | 
					
						
							|  |  |  |     cp -r "${WORKBASE}"/ZRTPCPP-"${ZRTPCPP_SHA}"/srtp ./pjsip/third_party/zsrtp/zrtp/ | 
					
						
							|  |  |  |     cp -r "${WORKBASE}"/ZRTPCPP-"${ZRTPCPP_SHA}"/zrtp ./pjsip/third_party/zsrtp/zrtp/ | 
					
						
							|  |  |  |     cp "${WORKBASE}"/ZRTPCPP-"${ZRTPCPP_SHA}"/COPYING ./pjsip/third_party/zsrtp/zrtp/ | 
					
						
							|  |  |  |     cp "${WORKBASE}"/ZRTPCPP-"${ZRTPCPP_SHA}"/README.md ./pjsip/third_party/zsrtp/zrtp/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     for p in patches/*.patch; do | 
					
						
							|  |  |  |         expatch -p0 "${p}" | 
					
						
							|  |  |  |     done | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     edo popd | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-26 13:24:54 +00:00
										 |  |  | src_compile() { | 
					
						
							|  |  |  |     # breaks horribly with 'ld' | 
					
						
							|  |  |  |     export LD=${CC} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     setup-py_src_compile | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 |