From: zimoun <zimon.toutoune@gmail.com>
To: 37988@debbugs.gnu.org
Cc: zimoun <zimon.toutoune@gmail.com>
Subject: [bug#37988] [PATCH v3 3/6] gnu: Add r-rprotobuflib.
Date: Tue, 5 Nov 2019 19:19:54 +0100 [thread overview]
Message-ID: <20191105181954.26339-1-zimon.toutoune@gmail.com> (raw)
In-Reply-To: <8736fah38i.fsf@elephly.net>
* gnu/packages/bioconductor.scm (r-rprotobuflib): New variable.
* gnu/packages/patches/r-rprotobuflib-unbundle-dependency.patch: New file.
---
gnu/packages/bioconductor.scm | 31 ++++++++++
.../r-rprotobuflib-unbundle-dependency.patch | 57 +++++++++++++++++++
2 files changed, 88 insertions(+)
create mode 100644 gnu/packages/patches/r-rprotobuflib-unbundle-dependency.patch
diff --git a/gnu/packages/bioconductor.scm b/gnu/packages/bioconductor.scm
index 92e5d3ec0b..801e52245b 100644
--- a/gnu/packages/bioconductor.scm
+++ b/gnu/packages/bioconductor.scm
@@ -38,6 +38,7 @@
#:use-module (gnu packages netpbm)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages protobuf)
#:use-module (gnu packages statistics)
#:use-module (gnu packages web)
#:use-module (srfi srfi-1))
@@ -6166,3 +6167,33 @@ data.")
(synopsis "Visualization for flow cytometry data")
(description "This package provides visualization tools for flow cytometry data.")
(license license:artistic2.0)))
+
+(define-public r-rprotobuflib
+ (package
+ (name "r-rprotobuflib")
+ (version "1.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (bioconductor-uri "RProtoBufLib" version))
+ (sha256
+ (base32
+ "1vhwxw7281n5wpg30ik3m1gwarfmj4b8cqxdvj0sck44yx24lphg"))
+ ;; Remove bundled binaries:
+ ;; src/win/lib/{i386,x64}/libprotobuf.a
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (delete-file-recursively "src/win")
+ #t))
+ (patches
+ (search-patches "r-rprotobuflib-unbundle-dependency.patch"))))
+ (properties
+ `((upstream-name . "RProtoBufLib")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("protobuf-2" ,protobuf-2)))
+ (home-page "https://bioconductor.org/packages/RProtoBufLib")
+ (synopsis "C++ headers and static libraries of Protocol buffers")
+ (description "This package provides the headers and static library of
+Protocol buffers for other R packages to compile and link against.")
+ (license license:bsd-3)))
diff --git a/gnu/packages/patches/r-rprotobuflib-unbundle-dependency.patch b/gnu/packages/patches/r-rprotobuflib-unbundle-dependency.patch
new file mode 100644
index 0000000000..c26b6c7e0f
--- /dev/null
+++ b/gnu/packages/patches/r-rprotobuflib-unbundle-dependency.patch
@@ -0,0 +1,57 @@
+diff --git a/configure b/configure
+index 7edae5f..eff2489 100755
+--- a/configure
++++ b/configure
+@@ -2856,39 +2856,6 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+-#untar the lib
+-BASEPBNAME="protobuf-2.6.0"
+-PBTGZNAME=${BASEPBNAME}.tgz
+-cd src
+-if test -d ./${BASEPBNAME}; then
+- echo 'found ' $BASEPBNAME ' header sources and tar archive;using what is there.'
+-else
+- echo "untarring protobuf ...";
+- gunzip -dc ${PBTGZNAME} | tar xf -;
+-fi;
+-
+-#run this bootstrap script to update all the gnu auto build files (e.g. automake symlinked fils (e.g. ./compile), alocal.m4,etc... )
+-cd ${BASEPBNAME}
+-#./autogen.sh
+-#automake --add-missing #do this because the old Autoconf (e.g. 2.13) may not handle this in autoreconf
+-#mv m4/lt~obsolete.m4 m4/lt-obsolete.m4 # R CMD check gives warning about ~ character in filename
+-cd ..
+-
+-echo "building protobuf...";
+-PBBUILD=$(pwd)/pb_build
+-if test -d ${PBBUILD}; then
+- echo 'found ' $PBBUILD ' ;using what is there.'
+-else
+- mkdir ${PBBUILD}
+-fi;
+-
+-cd ${BASEPBNAME};
+-./configure --enable-static=yes --with-pic=yes --enable-shared=no --prefix="${PBBUILD}" --libdir="${PBBUILD}/lib" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" CC="${CC}" CFLAGS="${CFLAGS}"
+-$MAKE install
+-
+-cd ../../
+-
+-
+
+
+ ac_config_files="$ac_config_files src/Makevars"
+diff --git a/src/Makevars.in b/src/Makevars.in
+index 63803fb..575d507 100644
+--- a/src/Makevars.in
++++ b/src/Makevars.in
+@@ -10,9 +10,6 @@ all: copying
+
+ #copy hdf5 library headers to package include
+ copying: $(GS_LIB)
+- mkdir -p "${USER_INCLUDE}"
+- cp -r @PBBUILD@/include/google ${USER_INCLUDE}
+ mkdir -p "${USER_LIB_DIR}"
+- cp @PBBUILD@/lib/* ${USER_LIB_DIR}
+ cp $(GS_LIB) ${USER_LIB_DIR}/GatingSet.pb.o
--
2.23.0
next prev parent reply other threads:[~2019-11-05 18:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-30 10:23 [bug#37988] [PATCH 0/6] Add flowWorkspace from BioConductor zimoun
2019-10-30 10:25 ` [bug#37988] [PATCH 1/6] gnu: Add r-idpmisc zimoun
2019-10-30 10:25 ` [bug#37988] [PATCH 2/6] gnu: Add r-flowviz zimoun
2019-10-30 10:25 ` [bug#37988] [PATCH 3/6] gnu: Add r-rprotobuflib zimoun
2019-10-30 11:39 ` Ricardo Wurmus
2019-10-30 13:29 ` zimoun
2019-11-05 17:49 ` [bug#37988] [PATCH v2 " zimoun
2019-11-05 18:19 ` zimoun [this message]
2019-11-05 18:29 ` [bug#37988] [PATCH v4 " zimoun
2019-10-30 10:25 ` [bug#37988] [PATCH 4/6] gnu: Add r-cytolib zimoun
2019-10-30 11:41 ` Ricardo Wurmus
2019-10-30 12:42 ` [bug#37988] [PATCH v2 " zimoun
2019-10-30 10:25 ` [bug#37988] [PATCH 5/6] gnu: Add r-ncdfflow zimoun
2019-10-30 11:42 ` Ricardo Wurmus
2019-10-30 10:25 ` [bug#37988] [PATCH 6/6] gnu: Add r-flowworkspace zimoun
2020-02-21 16:39 ` [bug#37988] why? zimoun
2020-02-21 18:38 ` Ricardo Wurmus
2020-02-21 19:12 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191105181954.26339-1-zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=37988@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.