[dev-python/pysmbc] Fix distutils and add patch for samba4 compilation issue
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
--- a/smbcmodule.h 2017-03-21 18:07:04.234082345 +0100
|
||||
+++ b/smbcmodule.h 2017-03-21 18:07:37.104125384 +0100
|
||||
@@ -24,7 +24,7 @@
|
||||
#ifndef HAVE_SMBCMODULE_H
|
||||
#define HAVE_SMBCMODULE_H
|
||||
|
||||
-#include <libsmbclient.h>
|
||||
+#include <samba-4.0/libsmbclient.h>
|
||||
|
||||
/* GCC attributes */
|
||||
#if !defined(__GNUC__) || __GNUC__ < 2 || \
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>skullbocks@sabayon.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,12 +1,11 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=3
|
||||
EAPI=6
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for libsmbclient"
|
||||
HOMEPAGE="https://fedorahosted.org/pysmbc"
|
||||
@@ -16,6 +15,9 @@ LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
}
|
||||
DEPEND=">=net-fs/samba-4.2.14"
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/${PN}-libsmbclient-fix.patch"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user