summaryrefslogtreecommitdiff
path: root/exlibs/wafsamba.exlib
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-08 01:44:28 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-08 01:44:28 +0300
commite28f580b39cf7927ef548ae265206b45ae8332eb (patch)
tree094865a5cf04769fd85e5fcd6775d534f74d5d9e /exlibs/wafsamba.exlib
parente05a3ee8e7ae16c803e01bd02314cce66f05f37f (diff)
samba-scm build fix, lmdb version bump (packages from net)
wafsamba.exlib fix
Diffstat (limited to 'exlibs/wafsamba.exlib')
-rw-r--r--exlibs/wafsamba.exlib51
1 files changed, 51 insertions, 0 deletions
diff --git a/exlibs/wafsamba.exlib b/exlibs/wafsamba.exlib
new file mode 100644
index 0000000..802d6ac
--- /dev/null
+++ b/exlibs/wafsamba.exlib
@@ -0,0 +1,51 @@
+# Copyright 2011 Pierre Lejeune <superheron@gmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+myexparam wafdir='./'buildtools/bin
+
+require waf [ waf_executable="python2 $(exparam wafdir)/waf" ]
+require python [ blacklist='3' multibuild=false ]
+
+export_exlib_phases src_prepare src_configure
+
+DEPENDENCIES="
+ build:
+ app-text/docbook-xml-dtd:4.2
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+"
+
+EWAF_ENVIRONMENT=(
+ PATH="$(exparam wafdir)${PATH+:}${PATH}"
+ LD_LIBRARY_PATH="bin/default${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
+)
+
+# You should add items to
+# WAF_SRC_CONFIGURE_PARAMS using +=
+WAF_SRC_CONFIGURE_PARAMS=(
+ --bundled-libraries=NONE
+ --mandir=/usr/share/man
+ --infodir=/usr/share/info
+ --docdir=/usr/share/doc/${PNVR}
+ --localstatedir=/var
+ --sysconfdir=/etc
+ --disable-dependency-tracking
+ --disable-rpath
+ --disable-rpath-install
+)
+
+wafsamba_src_prepare() {
+ default
+
+ if test -f buildtools/wafadmin/Tools/config_c.py; then
+ # use prefixed pkg-config
+ edo sed -i \
+ -e "s:pkg-config:$(exhost --tool-prefix)&:" \
+ buildtools/wafadmin/Tools/config_c.py
+ fi
+}
+
+wafsamba_src_configure() {
+ PYTHONARCHDIR="$(python_get_sitedir)" \
+ waf_src_configure
+}