3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
inherit dune
|
|
6 |
PYTHON_COMPAT=( python3_{11..13} )
|
|
7 |
inherit cmake python-single-r1 xdg
|
7 |
8 |
|
8 |
|
DESCRIPTION="String type based on Bigarray, for use in I/O and C-bindings"
|
9 |
|
HOMEPAGE="https://github.com/janestreet/base_bigstring"
|
10 |
|
SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
11 |
|
|
12 |
|
LICENSE="MIT"
|
13 |
|
SLOT="0/$(ver_cut 1-2)"
|
14 |
|
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv"
|
15 |
|
IUSE="+ocamlopt"
|
|
9 |
DESCRIPTION="Android File Transfer for Linux"
|
|
10 |
HOMEPAGE="https://github.com/whoozle/android-file-transfer-linux"
|
16 |
11 |
|
17 |
|
# Jane Street Minor
|
18 |
|
JSM=$(ver_cut 1-2)*
|
|
12 |
if [[ ${PV} == *9999* ]] ; then
|
|
13 |
inherit git-r3
|
|
14 |
EGIT_REPO_URI="https://github.com/whoozle/android-file-transfer-linux.git"
|
|
15 |
else
|
|
16 |
SRC_URI="https://github.com/whoozle/android-file-transfer-linux/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
17 |
KEYWORDS="~amd64 ~x86"
|
|
18 |
fi
|
|
19 |
|
|
20 |
LICENSE="LGPL-2.1"
|
|
21 |
SLOT="0"
|
|
22 |
IUSE="fuse gui python taglib zune"
|
|
23 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
19 |
24 |
|
20 |
25 |
RDEPEND="
|
21 |
|
>=dev-lang/ocaml-5
|
22 |
|
=dev-ml/base-${JSM}:=[ocamlopt?]
|
23 |
|
=dev-ml/int_repr-${JSM}:=[ocamlopt?]
|
24 |
|
=dev-ml/ppx_jane-${JSM}:=[ocamlopt?]
|
|
26 |
sys-apps/file
|
|
27 |
sys-libs/readline:0=
|
|
28 |
fuse? ( sys-fs/fuse:3= )
|
|
29 |
gui? ( dev-qt/qtbase:6[gui,network,widgets] )
|
|
30 |
python? (
|
|
31 |
${PYTHON_DEPS}
|
|
32 |
$(python_gen_cond_dep '
|
|
33 |
dev-python/pybind11[${PYTHON_USEDEP}]
|
|
34 |
')
|
|
35 |
)
|
|
36 |
taglib? ( media-libs/taglib:= )
|
|
37 |
zune? ( dev-libs/openssl:0= )
|
25 |
38 |
"
|
26 |
39 |
DEPEND="${RDEPEND}"
|
27 |
|
BDEPEND=">=dev-ml/dune-3.11"
|
|
40 |
BDEPEND="
|
|
41 |
virtual/pkgconfig
|
|
42 |
gui? ( dev-qt/qttools:6[linguist] )
|
|
43 |
"
|
|
44 |
|
|
45 |
pkg_setup() {
|
|
46 |
use python && python-single-r1_pkg_setup
|
|
47 |
}
|
|
48 |
|
|
49 |
src_configure() {
|
|
50 |
local mycmakeargs=(
|
|
51 |
-DCMAKE_SKIP_RPATH=ON
|
|
52 |
-DBUILD_FUSE="$(usex fuse)"
|
|
53 |
-DBUILD_MTPZ="$(usex zune)"
|
|
54 |
-DBUILD_PYTHON="$(usex python)"
|
|
55 |
-DBUILD_QT_UI="$(usex gui)"
|
|
56 |
-DBUILD_SHARED_LIB="ON"
|
|
57 |
-DBUILD_TAGLIB="$(usex taglib)"
|
|
58 |
# Upstream recommends to keep this off as libusb is broken
|
|
59 |
-DUSB_BACKEND_LIBUSB="OFF"
|
|
60 |
)
|
|
61 |
|
|
62 |
# prevent using of last version
|
|
63 |
use python && mycmakeargs+=( -DPython_EXECUTABLE="${PYTHON}" )
|
|
64 |
|
|
65 |
cmake_src_configure
|
|
66 |
}
|