public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: sci-misc/boinc-wrapper/files/, sci-misc/boinc-wrapper/
@ 2021-05-18 21:31 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2021-05-18 21:31 UTC (permalink / raw
  To: gentoo-commits

commit:     9ef3db2b3aa5cd4812a7392764a2cb1bf3160fe7
Author:     Anna Vyalkova <cyber <AT> sysrq <DOT> in>
AuthorDate: Tue May 18 19:54:19 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue May 18 21:31:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ef3db2b

sci-misc/boinc-wrapper: initial import

Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>

 sci-misc/boinc-wrapper/Manifest                    |  1 +
 .../boinc-wrapper/boinc-wrapper-7.16.16.ebuild     | 50 ++++++++++++++++++++++
 sci-misc/boinc-wrapper/files/makefile.patch        | 10 +++++
 sci-misc/boinc-wrapper/metadata.xml                | 11 +++++
 4 files changed, 72 insertions(+)

diff --git a/sci-misc/boinc-wrapper/Manifest b/sci-misc/boinc-wrapper/Manifest
new file mode 100644
index 000000000..5238eec52
--- /dev/null
+++ b/sci-misc/boinc-wrapper/Manifest
@@ -0,0 +1 @@
+DIST boinc-7.16.16.tar.gz 49599131 BLAKE2B 819ab85c19a684144711f77e669b892aa73c006b81c1d7ef7adbd9d580e1e8473ae27b52dc17953ee677c70fc78ed15df936afd740e629715f30f2b81d84ea6f SHA512 dd7042e176d6506c70de7866556ae73b2f45734df92038086d5b0414751f3da08dc571c49f0c26d747d3fb2577674d3ff8cdec7d3563861eaaaa5af9c1db0a0e

diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
new file mode 100644
index 000000000..e19b25ceb
--- /dev/null
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools toolchain-funcs
+
+MY_PV=$(ver_cut 1-2)
+
+DESCRIPTION="use non-BOINC apps with BOINC"
+HOMEPAGE="https://boinc.berkeley.edu/trac/wiki/WrapperApp"
+
+SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> boinc-${PV}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+S="${WORKDIR}/boinc-client_release-${MY_PV}-${PV}/samples/wrapper"
+
+LICENSE="LGPL-3+ regexp-UofT"
+SLOT="0"
+
+RDEPEND="
+	~sci-misc/boinc-${PV}
+	~dev-libs/boinc-zip-${PV}
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/makefile.patch )
+DOCS=( ReadMe.txt job.xml )
+
+src_prepare() {
+	default
+
+	cd ../.. || die
+	eautoreconf
+	bash ./generate_svn_version.sh || die
+}
+
+src_configure() {
+	cd ../.. || die
+	econf --enable-pkg-devel --disable-static
+}
+
+src_compile() {
+	tc-export CC CXX
+	default
+}
+
+src_install() {
+	default
+	newbin wrapper boinc-wrapper
+}

diff --git a/sci-misc/boinc-wrapper/files/makefile.patch b/sci-misc/boinc-wrapper/files/makefile.patch
new file mode 100644
index 000000000..6e0359ec3
--- /dev/null
+++ b/sci-misc/boinc-wrapper/files/makefile.patch
@@ -0,0 +1,10 @@
+--- a/Makefile
++++ b/Makefile
+@@ -41,5 +41,5 @@
+ 	regexp_memory.o \
+ 	regexp_report.o
+ 
+-wrapper: wrapper.o libstdc++.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a $(REGEXP_OBJS)
+-	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) libstdc++.a $(PTHREAD) -lboinc_api -lboinc -lboinc_zip
++wrapper: wrapper.o $(REGEXP_OBJS)
++	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) $(PTHREAD) -lboinc_api -lboinc -lboinc_zip

diff --git a/sci-misc/boinc-wrapper/metadata.xml b/sci-misc/boinc-wrapper/metadata.xml
new file mode 100644
index 000000000..a07d56d79
--- /dev/null
+++ b/sci-misc/boinc-wrapper/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>cyber+gentoo@sysrq.in</email>
+		<name>Anna</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">BOINC/boinc</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sci-misc/boinc-wrapper/files/, sci-misc/boinc-wrapper/
@ 2021-07-22  8:29 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2021-07-22  8:29 UTC (permalink / raw
  To: gentoo-commits

commit:     f39fafa2e2bea2f49382d52411d96ca321036d42
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Jul 22 08:15:34 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Jul 22 08:27:40 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f39fafa2

sci-misc/boinc-wrapper: revbump (new eclass)

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 .../boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild  | 35 ++++++++++++++++++++++
 sci-misc/boinc-wrapper/files/config.override.h     |  8 +++++
 2 files changed, 43 insertions(+)

diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild
new file mode 100644
index 000000000..91ccc4e18
--- /dev/null
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+BOINC_SUBMODULE="samples/wrapper"
+inherit boinc
+
+DESCRIPTION="Wrapper to use non-BOINC apps with BOINC"
+HOMEPAGE="https://boinc.berkeley.edu/trac/wiki/WrapperApp"
+
+KEYWORDS="~amd64 ~arm64 ~x86"
+LICENSE="LGPL-3+ regexp-UofT"
+SLOT="0"
+
+# sci-misc/boinc doesn't have all necessary headers, so
+# we have to include from build root. All that said,
+# versions must not mismatch.
+RDEPEND="
+	~sci-misc/boinc-${PV}
+	>=dev-libs/boinc-zip-${PV}
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-$(ver_cut 1-2)-makefile.patch )
+DOCS=( job.xml )
+
+boinc_require_source
+
+boinc_override_config "${FILESDIR}"/config.override.h
+
+src_install() {
+	einstalldocs
+	newbin wrapper boinc-wrapper
+}

diff --git a/sci-misc/boinc-wrapper/files/config.override.h b/sci-misc/boinc-wrapper/files/config.override.h
new file mode 100644
index 000000000..bd1c1b892
--- /dev/null
+++ b/sci-misc/boinc-wrapper/files/config.override.h
@@ -0,0 +1,8 @@
+#ifndef BOINC_CONFIG_H
+#define BOINC_CONFIG_H
+
+#define HAVE_SYS_RESOURCE_H 1
+#define HAVE_SYS_TIME_H 1
+#define HAVE_SYS_WAIT_H 1
+
+#endif


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-22  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-22  8:29 [gentoo-commits] repo/proj/guru:dev commit in: sci-misc/boinc-wrapper/files/, sci-misc/boinc-wrapper/ Anna Vyalkova
  -- strict thread matches above, loose matches on Subject: below --
2021-05-18 21:31 Anna Vyalkova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox