www-apps/gitea: Remove build-client useflag.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-09-06 03:44:24 +02:00
parent 32836c6a0e
commit 335e110219
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 4 additions and 27 deletions

View File

@ -20,9 +20,8 @@ fi
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
SLOT="0"
IUSE="+acct build-client pam sqlite"
IUSE="+acct pam sqlite"
BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
COMMON_DEPEND="
acct? (
acct-group/git
@ -72,9 +71,6 @@ src_prepare() {
einfo "Remove tests which depend on gitea git-repo."
rm ./modules/git/blob_test.go || die
rm ./modules/git/repo_test.go || die
# Remove already build assets (like frontend part)
use build-client && emake clean-all
}
src_compile() {
@ -94,13 +90,7 @@ src_compile() {
)
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
if use build-client; then
# -j1 as Makefile doesn't handle dependancy correctly, and is not
# useful as golang compiler don't use this info.
env "${makeenv[@]}" emake -j1 build
else
env "${makeenv[@]}" emake backend
fi
env "${makeenv[@]}" emake backend
}
src_install() {

View File

@ -20,9 +20,8 @@ fi
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
SLOT="0"
IUSE="+acct build-client pam sqlite"
IUSE="+acct pam sqlite"
BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
COMMON_DEPEND="
acct? (
acct-group/git
@ -74,9 +73,6 @@ src_prepare() {
einfo "Remove tests which depend on gitea git-repo."
rm ./modules/git/blob_test.go || die
rm ./modules/git/repo_test.go || die
# Remove already build assets (like frontend part)
use build-client && emake clean-all
}
src_compile() {
@ -96,13 +92,7 @@ src_compile() {
)
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
if use build-client; then
# -j1 as Makefile doesn't handle dependancy correctly, and is not
# useful as golang compiler don't use this info.
env "${makeenv[@]}" emake -j1 build
else
env "${makeenv[@]}" emake backend
fi
env "${makeenv[@]}" emake backend
}
src_install() {

View File

@ -12,8 +12,5 @@
<flag name="acct">
User and group management via acct-*/git packages
</flag>
<flag name="build-client">
Build the client code, instead of using a precompiled one
</flag>
</use>
</pkgmetadata>