public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-vpn/riseup-vpn/
Date: Fri, 12 Mar 2021 15:13:57 +0000 (UTC)	[thread overview]
Message-ID: <1615562025.2230fb36f9c66cddd5720c51f218335ebc841536.andrewammerlaan@gentoo> (raw)

commit:     2230fb36f9c66cddd5720c51f218335ebc841536
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Fri Mar 12 15:13:45 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Mar 12 15:13:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2230fb36

net-vpn/riseup-vpn: fix build, add keywords

workaround is to create git repo *and*
set tag to PV

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild | 63 ++++++++++++++++++-----------
 1 file changed, 39 insertions(+), 24 deletions(-)

diff --git a/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild b/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild
index 39a538c8..39ff0fa8 100644
--- a/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild
+++ b/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild
@@ -5,11 +5,11 @@ EAPI=7
 
 DOCS_BUILDER="sphinx"
 DOCS_DIR="docs"
-DOCS_AUTODOC=0
+DOCS_DEPEND="dev-python/alabaster"
 
 PYTHON_COMPAT=( python3_{7,8,9} )
 
-inherit desktop python-r1 docs go-module l10n xdg
+inherit desktop python-r1 docs go-module l10n virtualx xdg
 
 EGO_SUM=(
 	"0xacab.org/leap/shapeshifter v0.0.0-20191029173606-85d3e8ac43e2"
@@ -64,21 +64,25 @@ SRC_URI="https://0xacab.org/leap/bitmask-vpn/-/archive/${PV}/bitmask-vpn-${PV}.t
 	${EGO_SUM_SRC_URI}"
 
 # Save a lot of Error 404's since this is not mirrored
-# Tests require internet access to connect to Riseup Networks
 IUSE="test"
-RESTRICT="mirror test"
+RESTRICT="mirror !test? ( test )"
 
 # Generated with dev-go/golicense
 LICENSE="GPL-3 BSD-2 CC0-1.0 MIT BSD"
-KEYWORDS=""
+KEYWORDS="~amd64 ~x86"
 SLOT="0"
 
+# TODO: Get locales working, at the moment it failes
+# to build because it wants to fetch things from the internet
 PLOCALES="ar bn br ca de el en-GB en-US en es-ES es eu fa-IR fr he hu it lt nl pl pt-BR pt-PT ro ru sk sv tr ug zh-TW zh"
 
 QA_PRESTRIPPED="
-	/usr/bin/bitmask-vpn
-	/usr/bin/bitmask-helper
-	/usr/bin/bitmask-connect
+	/usr/bin/riseup-vpn
+"
+
+BDEPEND="
+	virtual/pkgconfig
+	test? ( dev-qt/qttest )
 "
 
 DEPEND="
@@ -89,12 +93,6 @@ DEPEND="
 	x11-libs/gtk+:3
 	dev-qt/qtdeclarative[widgets]
 	dev-qt/qtquickcontrols2[widgets]
-	doc? ( $(python_gen_any_dep 'dev-python/alabaster[${PYTHON_USEDEP}]') )
-"
-
-BDEPEND="
-	virtual/pkgconfig
-	test? ( dev-qt/qttest )
 "
 
 RDEPEND="${DEPEND}
@@ -110,18 +108,40 @@ PATH="/usr/lib/go/bin:${PATH}"
 
 S="${WORKDIR}/bitmask-vpn-${PV}"
 
+src_prepare() {
+	default
+	# build system calls git describe to get version number
+	# we need to init git and set a tag according to the PV
+	git init || die
+	git config user.email "larry@gentoo.org" || die
+	git config user.name "Larry the Cow" || die
+	git add . || die
+	git commit -m "init" || die
+	git tag -a "${PV}" -m "${PV}" || die
+
+	# add autodoc to the extensions because this actually
+	# does require extra dependencies
+	sed -i -e "/^extensions = \[/a \ \ \ \ \'sphinx.ext.autodoc\'," docs/conf.py || die
+}
+
 src_compile() {
-	emake build
+	# does not build with j>1
+	emake -j1 build
 	docs_compile
 }
 
+src_test() {
+	# these tests require internet access to connect to Riseup Networks
+	# the UI tests do work though
+	#emake test
+	virtx emake test_ui
+}
+
 src_install() {
 	einstalldocs
 
-	dobin "build/bin/linux/bitmask-connect"
 	dobin "build/bin/linux/bitmask-helper"
-	dobin "build/bin/linux/bitmask-vpn"
-	dosym "bitmask-vpn" "/usr/bin/riseup-vpn"
+	dobin "build/qt/release/riseup-vpn"
 
 	python_scriptinto /usr/sbin
 	python_foreach_impl python_doscript "helpers/bitmask-root"
@@ -129,15 +149,10 @@ src_install() {
 	insinto /usr/share/polkit-1/actions
 	doins "helpers/se.leap.bitmask.policy"
 
-	newicon -s scalable "branding/assets/riseup/icon.svg" riseup.svg
+	newicon -s scalable "providers/riseup/assets/icon.svg" riseup.svg
 	make_desktop_entry "${PN}" RiseupVPN riseup Network
 }
 
-src_test() {
-	emake test
-	emake test_ui
-}
-
 pkg_postinst() {
 	xdg_pkg_postinst
 	go-module_pkg_postinst


WARNING: multiple messages have this Message-ID (diff)
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-vpn/riseup-vpn/
Date: Fri, 12 Mar 2021 15:13:54 +0000 (UTC)	[thread overview]
Message-ID: <1615562025.2230fb36f9c66cddd5720c51f218335ebc841536.andrewammerlaan@gentoo> (raw)
Message-ID: <20210312151354.HpoJLfxpwwkvVizxqhnfEgtQFlvbA1i8GRoeBUJuPSA@z> (raw)

commit:     2230fb36f9c66cddd5720c51f218335ebc841536
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Fri Mar 12 15:13:45 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Mar 12 15:13:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2230fb36

net-vpn/riseup-vpn: fix build, add keywords

workaround is to create git repo *and*
set tag to PV

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild | 63 ++++++++++++++++++-----------
 1 file changed, 39 insertions(+), 24 deletions(-)

diff --git a/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild b/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild
index 39a538c8..39ff0fa8 100644
--- a/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild
+++ b/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild
@@ -5,11 +5,11 @@ EAPI=7
 
 DOCS_BUILDER="sphinx"
 DOCS_DIR="docs"
-DOCS_AUTODOC=0
+DOCS_DEPEND="dev-python/alabaster"
 
 PYTHON_COMPAT=( python3_{7,8,9} )
 
-inherit desktop python-r1 docs go-module l10n xdg
+inherit desktop python-r1 docs go-module l10n virtualx xdg
 
 EGO_SUM=(
 	"0xacab.org/leap/shapeshifter v0.0.0-20191029173606-85d3e8ac43e2"
@@ -64,21 +64,25 @@ SRC_URI="https://0xacab.org/leap/bitmask-vpn/-/archive/${PV}/bitmask-vpn-${PV}.t
 	${EGO_SUM_SRC_URI}"
 
 # Save a lot of Error 404's since this is not mirrored
-# Tests require internet access to connect to Riseup Networks
 IUSE="test"
-RESTRICT="mirror test"
+RESTRICT="mirror !test? ( test )"
 
 # Generated with dev-go/golicense
 LICENSE="GPL-3 BSD-2 CC0-1.0 MIT BSD"
-KEYWORDS=""
+KEYWORDS="~amd64 ~x86"
 SLOT="0"
 
+# TODO: Get locales working, at the moment it failes
+# to build because it wants to fetch things from the internet
 PLOCALES="ar bn br ca de el en-GB en-US en es-ES es eu fa-IR fr he hu it lt nl pl pt-BR pt-PT ro ru sk sv tr ug zh-TW zh"
 
 QA_PRESTRIPPED="
-	/usr/bin/bitmask-vpn
-	/usr/bin/bitmask-helper
-	/usr/bin/bitmask-connect
+	/usr/bin/riseup-vpn
+"
+
+BDEPEND="
+	virtual/pkgconfig
+	test? ( dev-qt/qttest )
 "
 
 DEPEND="
@@ -89,12 +93,6 @@ DEPEND="
 	x11-libs/gtk+:3
 	dev-qt/qtdeclarative[widgets]
 	dev-qt/qtquickcontrols2[widgets]
-	doc? ( $(python_gen_any_dep 'dev-python/alabaster[${PYTHON_USEDEP}]') )
-"
-
-BDEPEND="
-	virtual/pkgconfig
-	test? ( dev-qt/qttest )
 "
 
 RDEPEND="${DEPEND}
@@ -110,18 +108,40 @@ PATH="/usr/lib/go/bin:${PATH}"
 
 S="${WORKDIR}/bitmask-vpn-${PV}"
 
+src_prepare() {
+	default
+	# build system calls git describe to get version number
+	# we need to init git and set a tag according to the PV
+	git init || die
+	git config user.email "larry@gentoo.org" || die
+	git config user.name "Larry the Cow" || die
+	git add . || die
+	git commit -m "init" || die
+	git tag -a "${PV}" -m "${PV}" || die
+
+	# add autodoc to the extensions because this actually
+	# does require extra dependencies
+	sed -i -e "/^extensions = \[/a \ \ \ \ \'sphinx.ext.autodoc\'," docs/conf.py || die
+}
+
 src_compile() {
-	emake build
+	# does not build with j>1
+	emake -j1 build
 	docs_compile
 }
 
+src_test() {
+	# these tests require internet access to connect to Riseup Networks
+	# the UI tests do work though
+	#emake test
+	virtx emake test_ui
+}
+
 src_install() {
 	einstalldocs
 
-	dobin "build/bin/linux/bitmask-connect"
 	dobin "build/bin/linux/bitmask-helper"
-	dobin "build/bin/linux/bitmask-vpn"
-	dosym "bitmask-vpn" "/usr/bin/riseup-vpn"
+	dobin "build/qt/release/riseup-vpn"
 
 	python_scriptinto /usr/sbin
 	python_foreach_impl python_doscript "helpers/bitmask-root"
@@ -129,15 +149,10 @@ src_install() {
 	insinto /usr/share/polkit-1/actions
 	doins "helpers/se.leap.bitmask.policy"
 
-	newicon -s scalable "branding/assets/riseup/icon.svg" riseup.svg
+	newicon -s scalable "providers/riseup/assets/icon.svg" riseup.svg
 	make_desktop_entry "${PN}" RiseupVPN riseup Network
 }
 
-src_test() {
-	emake test
-	emake test_ui
-}
-
 pkg_postinst() {
 	xdg_pkg_postinst
 	go-module_pkg_postinst


             reply	other threads:[~2021-03-12 15:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 15:13 Andrew Ammerlaan [this message]
2021-03-12 15:13 ` [gentoo-commits] repo/proj/guru:dev commit in: net-vpn/riseup-vpn/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2021-04-21  7:32 Andrew Ammerlaan
2021-04-21  7:32 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-21  6:59 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-21  7:32 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-03-12 12:10 Andrew Ammerlaan

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=1615562025.2230fb36f9c66cddd5720c51f218335ebc841536.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox