commit:     820c0379631ff7d17476d2080c1ee4687013f5c0
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Jul 19 07:54:44 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Mon Jul 19 08:10:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=820c0379

sci-misc/boinc-wrapper: various improvements

Notable changes
* writing config.h manually instead of calling ./configure
* changed dependency operator from '>=' to '~'

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

 .../boinc-wrapper/boinc-wrapper-7.16.16.ebuild     | 47 ++++++++++++----------
 .../boinc-wrapper/boinc-wrapper-7.16.17.ebuild     | 45 ++++++++++++---------
 sci-misc/boinc-wrapper/metadata.xml                |  2 +-
 3 files changed, 52 insertions(+), 42 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 becebc0ab..e282280fd 100644
--- a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
@@ -1,50 +1,55 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-inherit autotools toolchain-funcs
+inherit toolchain-funcs
 
+MY_PN=${PN%%-*}
 MY_PV=$(ver_cut 1-2)
-
-DESCRIPTION="use non-BOINC apps with BOINC"
+DESCRIPTION="Wrapper to 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"
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/client_release/${MY_PV}/${PV}.tar.gz
 -> ${MY_PN}-${PV}.tar.gz"
+KEYWORDS="~amd64 ~arm64 ~x86"
+S="${WORKDIR}/${MY_PN}-client_release-${MY_PV}-${PV}/samples/${PN#*-}"
 
 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}
+       >=dev-libs/boinc-zip-${PV}
 "
 DEPEND="${RDEPEND}"
 
 PATCHES=( "${FILESDIR}"/${PN}-$(ver_cut 1-2)-makefile.patch )
-DOCS=( ReadMe.txt job.xml )
-
-src_prepare() {
-       default
+DOCS=( job.xml )
 
+src_configure() {
        cd ../.. || die
-       eautoreconf
+
        bash ./generate_svn_version.sh || die
-}
 
-src_configure() {
-       cd ../.. || die
-       econf --enable-pkg-devel --disable-static --disable-fcgi --without-x
-}
+       # autotools would take an eternity to configure
+       cat <<-EOF > "config.h"
+               #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
+       EOF
 
-src_compile() {
        tc-export CC CXX
-       default
 }
 
 src_install() {
-       default
+       einstalldocs
        newbin wrapper boinc-wrapper
 }

diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17.ebuild 
b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17.ebuild
index f25f7d399..e282280fd 100644
--- a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17.ebuild
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17.ebuild
@@ -3,48 +3,53 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+inherit toolchain-funcs
 
+MY_PN=${PN%%-*}
 MY_PV=$(ver_cut 1-2)
-
-DESCRIPTION="use non-BOINC apps with BOINC"
+DESCRIPTION="Wrapper to 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"
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/client_release/${MY_PV}/${PV}.tar.gz
 -> ${MY_PN}-${PV}.tar.gz"
+KEYWORDS="~amd64 ~arm64 ~x86"
+S="${WORKDIR}/${MY_PN}-client_release-${MY_PV}-${PV}/samples/${PN#*-}"
 
 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}
+       ~sci-misc/boinc-${PV}
        >=dev-libs/boinc-zip-${PV}
 "
 DEPEND="${RDEPEND}"
 
 PATCHES=( "${FILESDIR}"/${PN}-$(ver_cut 1-2)-makefile.patch )
-DOCS=( ReadMe.txt job.xml )
-
-src_prepare() {
-       default
+DOCS=( job.xml )
 
+src_configure() {
        cd ../.. || die
-       eautoreconf
+
        bash ./generate_svn_version.sh || die
-}
 
-src_configure() {
-       cd ../.. || die
-       econf --enable-pkg-devel --disable-static --disable-fcgi --without-x
-}
+       # autotools would take an eternity to configure
+       cat <<-EOF > "config.h"
+               #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
+       EOF
 
-src_compile() {
        tc-export CC CXX
-       default
 }
 
 src_install() {
-       default
+       einstalldocs
        newbin wrapper boinc-wrapper
 }

diff --git a/sci-misc/boinc-wrapper/metadata.xml 
b/sci-misc/boinc-wrapper/metadata.xml
index a07d56d79..ce271dd13 100644
--- a/sci-misc/boinc-wrapper/metadata.xml
+++ b/sci-misc/boinc-wrapper/metadata.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <maintainer type="person" proxied="yes">
+       <maintainer type="person">
                <email>[email protected]</email>
                <name>Anna</name>
        </maintainer>

Reply via email to