Add ebuild supporting python 3.13.
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
parent
5a85ccb487
commit
16ec4fe8d8
5 changed files with 111 additions and 0 deletions
|
@ -0,0 +1,65 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_13 )
|
||||
|
||||
inherit autotools python-single-r1 xdg
|
||||
|
||||
DESCRIPTION="Dropbox Nautilus Extension"
|
||||
HOMEPAGE="https://github.com/dropbox/nautilus-dropbox"
|
||||
SRC_URI="https://linux.dropboxstatic.com/packages/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3 CC-BY-ND-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="debug"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]' )
|
||||
dev-libs/glib:2
|
||||
gui-libs/gtk:4
|
||||
>=gnome-base/nautilus-43
|
||||
net-misc/dropbox
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
$(python_gen_cond_dep 'dev-python/docutils[${PYTHON_USEDEP}]' )
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# use system rst2man
|
||||
PATCHES=(
|
||||
# use system rst2man
|
||||
"${FILESDIR}/${PN}-2019-system-rst2man.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# use system dropbox
|
||||
sed \
|
||||
-e "s|~/[.]dropbox-dist|${EPREFIX}/opt/dropbox|" \
|
||||
-e "s|\(DROPBOXD_PATH = \).*|\1\"${EPREFIX}/opt/dropbox/dropboxd\"|" \
|
||||
-i dropbox.in || die
|
||||
AT_NOELIBTOOLIZE=yes eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
--disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# removes files which conflicts with system dropbox
|
||||
rm -r "${ED}"/usr/share/applications || die
|
||||
rm -r "${ED}"/usr/bin || die
|
||||
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue