[dev-python/pysmbc] Fix distutils and add patch for samba4 compilation issue

This commit is contained in:
Francesco Ferro
2017-03-21 19:32:19 +01:00
parent 59f74ae013
commit d5688bac44
3 changed files with 29 additions and 8 deletions
@@ -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 || \
+7
View File
@@ -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>
+10 -8
View File
@@ -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
}