* [gentoo-commits] repo/proj/guru:master commit in: sci-misc/boinc-wrapper/, sci-misc/boinc-wrapper/files/
@ 2021-05-24 7:31 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2021-05-24 7:31 UTC (permalink / raw
To: gentoo-commits
commit: 21b133c97c94fe32c04b0d9754425e6c0de27b01
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat May 22 17:52:52 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat May 22 19:06:52 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=21b133c9
sci-misc/boinc-wrapper: fix ldflags
Closes: https://bugs.gentoo.org/791421
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
.../boinc-wrapper/boinc-wrapper-7.16.16.ebuild | 4 ++--
.../files/boinc-wrapper-7.16-makefile.patch | 25 ++++++++++++++++++++++
sci-misc/boinc-wrapper/files/makefile.patch | 10 ---------
3 files changed, 27 insertions(+), 12 deletions(-)
diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
index e19b25ceb..becebc0ab 100644
--- a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
@@ -23,7 +23,7 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}"/makefile.patch )
+PATCHES=( "${FILESDIR}"/${PN}-$(ver_cut 1-2)-makefile.patch )
DOCS=( ReadMe.txt job.xml )
src_prepare() {
@@ -36,7 +36,7 @@ src_prepare() {
src_configure() {
cd ../.. || die
- econf --enable-pkg-devel --disable-static
+ econf --enable-pkg-devel --disable-static --disable-fcgi --without-x
}
src_compile() {
diff --git a/sci-misc/boinc-wrapper/files/boinc-wrapper-7.16-makefile.patch b/sci-misc/boinc-wrapper/files/boinc-wrapper-7.16-makefile.patch
new file mode 100644
index 000000000..f503ba847
--- /dev/null
+++ b/sci-misc/boinc-wrapper/files/boinc-wrapper-7.16-makefile.patch
@@ -0,0 +1,25 @@
+diff --git a/samples/wrapper/Makefile b/samples/wrapper/Makefile
+index c20af9446d..5ecd76c45d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -7,8 +7,7 @@ BOINC_LIB_DIR = $(BOINC_DIR)/lib
+ BOINC_ZIP_DIR = $(BOINC_DIR)/zip
+ PTHREAD = -pthread
+
+-CXXFLAGS += -g -O0 \
+- -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fno-common \
++CXXFLAGS += \
+ -I$(BOINC_DIR) \
+ -I$(BOINC_LIB_DIR) \
+ -I$(BOINC_API_DIR) \
+@@ -41,5 +40,5 @@ REGEXP_OBJS = \
+ 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 $(LDFLAGS)
+--
+2.31.1
+
diff --git a/sci-misc/boinc-wrapper/files/makefile.patch b/sci-misc/boinc-wrapper/files/makefile.patch
deleted file mode 100644
index 6e0359ec3..000000000
--- a/sci-misc/boinc-wrapper/files/makefile.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sci-misc/boinc-wrapper/, sci-misc/boinc-wrapper/files/
@ 2022-10-11 19:30 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2022-10-11 19:30 UTC (permalink / raw
To: gentoo-commits
commit: 6efb684592b8e1e8403ea5eca2bf4a160bc2beef
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sun Oct 9 08:50:53 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Oct 9 08:50:53 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6efb6845
sci-misc/boinc-wrapper: use system libboinc
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.../boinc-wrapper/boinc-wrapper-7.20.2-r1.ebuild | 40 ++++++++++++++++++++++
sci-misc/boinc-wrapper/files/Makefile.gentoo | 17 +++++++++
2 files changed, 57 insertions(+)
diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.20.2-r1.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-7.20.2-r1.ebuild
new file mode 100644
index 000000000..1392fc813
--- /dev/null
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.20.2-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 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"
+
+RDEPEND="
+ >=sci-misc/boinc-7.20
+ >=dev-libs/boinc-zip-7.20
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( job.xml )
+
+boinc_require_source
+
+boinc_override_config "${FILESDIR}"/config.override.h
+
+src_prepare() {
+ boinc_src_prepare
+ cp "${FILESDIR}"/Makefile.gentoo "${S}" || die
+}
+
+src_compile() {
+ emake -f Makefile.gentoo
+}
+
+src_install() {
+ einstalldocs
+ dobin boinc-wrapper
+}
diff --git a/sci-misc/boinc-wrapper/files/Makefile.gentoo b/sci-misc/boinc-wrapper/files/Makefile.gentoo
new file mode 100644
index 000000000..f023fa557
--- /dev/null
+++ b/sci-misc/boinc-wrapper/files/Makefile.gentoo
@@ -0,0 +1,17 @@
+PKGS = \
+ libboinc \
+ libboinc_api \
+ libboinc_zip
+
+REGEXP_OBJS = \
+ regexp.o \
+ regsub.o \
+ regerror.o \
+ regexp_memory.o \
+ regexp_report.o
+
+CXXFLAGS += $(shell pkg-config --cflags $(PKGS)) -I../..
+LIBS += $(shell pkg-config --libs $(PKGS))
+
+boinc-wrapper: wrapper.o $(REGEXP_OBJS)
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $^ $(LIBS) $(LDFLAGS)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-11 19:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-11 19:30 [gentoo-commits] repo/proj/guru:master commit in: sci-misc/boinc-wrapper/, sci-misc/boinc-wrapper/files/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2021-05-24 7:31 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox