Added app-mobilephone/obexftp-0.24.2.
This commit is contained in:
parent
34b7e55118
commit
6b1d2078e3
9
app-mobilephone/obexftp/Manifest
Normal file
9
app-mobilephone/obexftp/Manifest
Normal file
|
@ -0,0 +1,9 @@
|
|||
AUX obexftp-0.23-gentoo.patch 388 BLAKE2B f45673c18551bf3278d5722f1156e0259a665a00c5f0c97f2489c4ec30fef6b097923cfacfad099879a2249fd8aa372a759742fba7157b8a9fe4091aa148f21f SHA512 73dba3d616e92f198d1ef7a1e3da720c83f5ce02869f9a677630e78451e360728db01fc98ab0a67b9e49ac04fbf801a27d5402dc2c210a82ac13fa57e94972cc
|
||||
AUX obexftp-0.24-config.patch 165 BLAKE2B 83e337f534d9ef6763ca6d31a2c3982ce747470f4673344ddb01c5523b2e08bd15995191cafc2d6ab7f97de7784580934d63153e786995806db3fee352de4c2c SHA512 8ac60a20d98c020d90d232d0c823052a6d183cca39405d72295136271a388e562586622ea5432edd94cdc0c52745381e03c7e162aba10fa9c07d6763570e66f4
|
||||
AUX obexftp-0.24-enable_bluetooth.patch 421 BLAKE2B 35fc565da087b00fe194f8407a2119547413d2adf2671aa1a9026b95da8ab3c937e7ead692c53c85b06b5615df3c76c84a13531a30f1135c6cb08d3c0ce42b75 SHA512 1ebd5ab061dc733f7d8b7650bd4c27bcd2eff8b816cb283afcc2c984332903ac6f9d4cd08e49e3b64e0bcf976d8781d561b6666e43d5567fa8ee2ec91a232902
|
||||
AUX obexftp-0.24-norpath.patch 641 BLAKE2B ba8de051365bc6417a6421cde50399a92754aa7c2b5523888580cf5d58e2d41f1393b21bf74ce38ecf1f292cca512dd929407443ba50dba65d53204654b38de3 SHA512 876502ac2325e0969e9e8bcdb59325e6dce07468fc106b7fb44befcf6e45d766e7e333d58a5392e376d70baa1532fe5f93cfc7d6a8125735df54a09849e68203
|
||||
AUX obexftp-0.24-python_sitedir.patch 544 BLAKE2B d86883dca5cc9795a07a0a306692cfe63774054d7f6358a3c2a581e2a77f85fef2c3e9fbaff8d8d21d860ced636159532d2fede546ff28146c452e0a2ea33910 SHA512 519e77d8a3ff4b7a9779e350191b8389c27f7bf42abd44704508341d9fdabb0bf9b456fc4cccd93779fc4b54ddcf3cabb38e55f2ea3389b90a85e27de18e0b6a
|
||||
AUX obexftp-0.24.2-parallel-build.patch 1251 BLAKE2B 538d82b8e14ec874323d1578c6ccd10d3418cd0efda61bf3752aaea04b22ac357b2792783cf3a86d6c7ec2aa33bd0bbacdf9b99f2082b427fc56d241b2a57849 SHA512 0f7bf40bde282faa6e6c5fc9bab4d5f4d95c9c09581b2e5bfa2f7490714da09c41c3b02789c3ddd7bb2be5d5960aa59587796685a4a250b7f60095237ce77eba
|
||||
DIST obexftp-0.24.2-Source.tar.gz 110291 BLAKE2B 7de93f5f5a367481b22b49c7812357ab5f704830c83770378de13f9c4ffb5f114d48beafca193b52670563b397656ec185519a8d004eb1f9785787e8cc5caaff SHA512 91a5d7e52c00bbaf24837384ceadc987a89297e672b246df1370bbd669fae05459281bc46bb60ba562607bfbead321926cdf11422059cd918819d80321e190c2
|
||||
EBUILD obexftp-0.24.2.ebuild 1662 BLAKE2B 8eba0264aee92e8bbbe87ecced9fa52d1f5038d8ab2d8bd1afe6a1446c3f3220e6faaeed055ea025ea0754917d2e57f37a563304ae52ad4b45a4e9154ab56a67 SHA512 fe6934e0e35a9902b3a07f0661508fad4bd690415dd5665d600fc73891581057ecfa6ec94cb4f7d4085b2edbf4d19ebd4922c6eb9d71378ef6aa2e70129c4477
|
||||
MISC metadata.xml 245 BLAKE2B e86e15e6196c5caa30c4dbbcc46d970e3d1fc51b5986c9c5855da2914e104cdc3abe7d23eae94b143047e21603bbd49c23684cca7eed166d90579ccc9dcc742e SHA512 f2f864248cda1ce42c75a7d993ea9d80592f4b5bf957ba7d10e3a26d55429720530c96974403e9d732e2ca67724645f7dfb8b880617a3cc6a3b9d36dd201f433
|
22
app-mobilephone/obexftp/files/obexftp-0.23-gentoo.patch
Normal file
22
app-mobilephone/obexftp/files/obexftp-0.23-gentoo.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- a/obexftp/client.c
|
||||
+++ b/obexftp/client.c
|
||||
@@ -51,8 +51,6 @@
|
||||
|
||||
#ifdef HAVE_BLUETOOTH
|
||||
#include "bt_kit.h"
|
||||
-#else
|
||||
-#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
|
||||
#endif /* HAVE_BLUETOOTH */
|
||||
|
||||
#include <openobex/obex.h>
|
||||
--- a/apps/obexftp.c
|
||||
+++ b/apps/obexftp.c
|
||||
@@ -29,6 +29,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
+#include <config.h>
|
||||
+
|
||||
#ifdef HAVE_SYS_TIMES_H
|
||||
#include <sys/times.h>
|
||||
#endif
|
11
app-mobilephone/obexftp/files/obexftp-0.24-config.patch
Normal file
11
app-mobilephone/obexftp/files/obexftp-0.24-config.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/apps/obexftp.c
|
||||
+++ b/apps/obexftp.c
|
||||
@@ -43,8 +43,6 @@
|
||||
|
||||
#include <common.h>
|
||||
|
||||
-#include <config.h>
|
||||
-
|
||||
#ifdef HAVE_SYS_TIMES_H
|
||||
#include <sys/times.h>
|
||||
#endif
|
|
@ -0,0 +1,16 @@
|
|||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -52,11 +52,13 @@
|
||||
#
|
||||
# some code is only included if bluetooth is available
|
||||
#
|
||||
+if ( ENABLE_BLUETOOTH )
|
||||
find_package ( Bluetooth )
|
||||
if ( Bluetooth_FOUND )
|
||||
include_directories ( ${Bluetooth_INCLUDE_DIRS} )
|
||||
add_definitions ( -DHAVE_BLUETOOTH -DHAVE_SDP )
|
||||
endif ( Bluetooth_FOUND )
|
||||
+endif ( ENABLE_BLUETOOTH )
|
||||
|
||||
add_subdirectory ( bfb )
|
||||
add_subdirectory ( multicobex )
|
11
app-mobilephone/obexftp/files/obexftp-0.24-norpath.patch
Normal file
11
app-mobilephone/obexftp/files/obexftp-0.24-norpath.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- obexftp-0.22/swig/perl/Makefile.PL.in.norpath 2007-07-11 21:22:30.000000000 +0200
|
||||
+++ obexftp-0.22/swig/perl/Makefile.PL.in 2007-08-06 20:17:39.000000000 +0200
|
||||
@@ -11,7 +11,7 @@ WriteMakefile(
|
||||
'INC' => q[-I@top_srcdir@ @CPPFLAGS@],
|
||||
# Default value for LDDLFLAGS is $Config{lddlflags}="-shared -L/usr/local/lib"
|
||||
# but we want rpath to be @libdir@ or @exec_prefix@/lib
|
||||
- 'LDDLFLAGS' => q[-shared -Wl,-rpath=@prefix@/lib],
|
||||
+ 'LDDLFLAGS' => q[-shared],
|
||||
'LIBS' => q[-L@top_builddir@/obexftp/.libs -lobexftp
|
||||
-L@top_builddir@/multicobex/.libs -lmulticobex
|
||||
-L@top_builddir@/bfb/.libs -lbfb
|
|
@ -0,0 +1,16 @@
|
|||
--- a/swig/python/CMakeLists.txt
|
||||
+++ b/swig/python/CMakeLists.txt
|
||||
@@ -40,11 +40,13 @@
|
||||
OUTPUT_VARIABLE PYTHON_PREFIX
|
||||
)
|
||||
file ( TO_CMAKE_PATH "${PYTHON_PREFIX}" PYTHON_PREFIX )
|
||||
+if ( NOT PYTHON_SITE_DIR )
|
||||
execute_process (
|
||||
COMMAND ${PYTHON_EXECUTABLE} -c
|
||||
"import site, sys; sys.stdout.write(site.getsitepackages()[-1])"
|
||||
OUTPUT_VARIABLE PYTHON_SITE_DIR
|
||||
)
|
||||
+endif ( PYTHON_SITE_DIR )
|
||||
file ( TO_CMAKE_PATH "${PYTHON_SITE_DIR}" PYTHON_SITE_DIR )
|
||||
string ( REGEX REPLACE "^${PYTHON_PREFIX}/" ""
|
||||
PYTHON_SITE_DIR "${PYTHON_SITE_DIR}"
|
|
@ -0,0 +1,53 @@
|
|||
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
|
||||
index b5c84e4..63af134 100644
|
||||
--- a/apps/CMakeLists.txt
|
||||
+++ b/apps/CMakeLists.txt
|
||||
@@ -5,14 +5,23 @@ add_definitions( -DVERSION="${obexftp_VERSION}" )
|
||||
add_definitions ( -DHAVE_USB )
|
||||
|
||||
add_executable ( obexftp_app obexftp.c )
|
||||
-target_link_libraries ( obexftp_app obexftp )
|
||||
+target_link_libraries ( obexftp_app
|
||||
+ PRIVATE multicobex
|
||||
+ PRIVATE bfb
|
||||
+ obexftp
|
||||
+)
|
||||
set_target_properties ( obexftp_app PROPERTIES
|
||||
OUTPUT_NAME obexftp
|
||||
)
|
||||
|
||||
|
||||
add_executable ( obexftpd_app obexftpd.c )
|
||||
-target_link_libraries ( obexftpd_app obexftp openobex )
|
||||
+target_link_libraries ( obexftpd_app
|
||||
+ PRIVATE multicobex
|
||||
+ PRIVATE bfb
|
||||
+ obexftp
|
||||
+ openobex
|
||||
+)
|
||||
set_target_properties ( obexftpd_app PROPERTIES
|
||||
OUTPUT_NAME obexftpd
|
||||
)
|
||||
diff --git a/fuse/CMakeLists.txt b/fuse/CMakeLists.txt
|
||||
index 0c80d3d..ff5e3cd 100644
|
||||
--- a/fuse/CMakeLists.txt
|
||||
+++ b/fuse/CMakeLists.txt
|
||||
@@ -13,6 +13,8 @@ if ( Fuse_FOUND )
|
||||
)
|
||||
|
||||
target_link_libraries ( obexfs
|
||||
+ PRIVATE multicobex
|
||||
+ PRIVATE bfb
|
||||
obexftp
|
||||
${Fuse_LIBRARIES}
|
||||
${EXPAT_LIBRARIES}
|
||||
@@ -23,6 +25,8 @@ if ( Fuse_FOUND )
|
||||
)
|
||||
|
||||
target_link_libraries ( obexautofs
|
||||
+ PRIVATE multicobex
|
||||
+ PRIVATE bfb
|
||||
obexftp
|
||||
${Fuse_LIBRARIES}
|
||||
)
|
||||
|
8
app-mobilephone/obexftp/metadata.xml
Normal file
8
app-mobilephone/obexftp/metadata.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">openobex</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
69
app-mobilephone/obexftp/obexftp-0.24.2.ebuild
Normal file
69
app-mobilephone/obexftp/obexftp-0.24.2.ebuild
Normal file
|
@ -0,0 +1,69 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
USE_RUBY="ruby24 ruby25 ruby26"
|
||||
|
||||
inherit cmake-utils python-single-r1 ruby-single
|
||||
|
||||
DESCRIPTION="File transfer over OBEX for mobile phones"
|
||||
HOMEPAGE="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
|
||||
SRC_URI="mirror://sourceforge/openobex/${P}-Source.tar.gz"
|
||||
SLOT="0"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ~hppa ppc x86"
|
||||
|
||||
# bluetooth support is not really optional, bug #529068
|
||||
IUSE="perl python ruby tcl"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openobex-1.7
|
||||
net-wireless/bluez
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( ${RUBY_DEPS} )
|
||||
tcl? ( dev-lang/tcl:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
perl? ( dev-lang/swig )
|
||||
python? ( dev-lang/swig )
|
||||
ruby? ( dev-lang/swig )
|
||||
tcl? ( dev-lang/swig )
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${P}-Source
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.23-gentoo.patch
|
||||
"${FILESDIR}"/${PN}-0.24-config.patch
|
||||
"${FILESDIR}"/${PN}-0.24-enable_bluetooth.patch
|
||||
"${FILESDIR}"/${PN}-0.24-python_sitedir.patch
|
||||
"${FILESDIR}"/${PN}-0.24-norpath.patch
|
||||
"${FILESDIR}"/${P}-parallel-build.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# -DENABLE_BLUETOOTH=$(usex bluetooth)
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
-DENABLE_PERL=$(usex perl)
|
||||
-DENABLE_BLUETOOTH=yes
|
||||
-DENABLE_PYTHON=$(usex python)
|
||||
$(usex python -DPYTHON_SITE_DIR=$(python_get_sitedir) '')
|
||||
-DENABLE_RUBY=$(usex ruby)
|
||||
-DENABLE_TCL=$(usex tcl)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
rm -rf "${ED}"/usr/share/doc/${PN}/html || die #524866
|
||||
}
|
Loading…
Reference in a new issue