www-apps/gitea: Remove build-client useflag.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
32836c6a0e
commit
335e110219
|
@ -20,9 +20,8 @@ fi
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
|
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="+acct build-client pam sqlite"
|
IUSE="+acct pam sqlite"
|
||||||
|
|
||||||
BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
|
|
||||||
COMMON_DEPEND="
|
COMMON_DEPEND="
|
||||||
acct? (
|
acct? (
|
||||||
acct-group/git
|
acct-group/git
|
||||||
|
@ -72,9 +71,6 @@ src_prepare() {
|
||||||
einfo "Remove tests which depend on gitea git-repo."
|
einfo "Remove tests which depend on gitea git-repo."
|
||||||
rm ./modules/git/blob_test.go || die
|
rm ./modules/git/blob_test.go || die
|
||||||
rm ./modules/git/repo_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() {
|
src_compile() {
|
||||||
|
@ -94,13 +90,7 @@ src_compile() {
|
||||||
)
|
)
|
||||||
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
|
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
|
||||||
|
|
||||||
if use build-client; then
|
env "${makeenv[@]}" emake backend
|
||||||
# -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
|
|
@ -20,9 +20,8 @@ fi
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
|
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="+acct build-client pam sqlite"
|
IUSE="+acct pam sqlite"
|
||||||
|
|
||||||
BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
|
|
||||||
COMMON_DEPEND="
|
COMMON_DEPEND="
|
||||||
acct? (
|
acct? (
|
||||||
acct-group/git
|
acct-group/git
|
||||||
|
@ -74,9 +73,6 @@ src_prepare() {
|
||||||
einfo "Remove tests which depend on gitea git-repo."
|
einfo "Remove tests which depend on gitea git-repo."
|
||||||
rm ./modules/git/blob_test.go || die
|
rm ./modules/git/blob_test.go || die
|
||||||
rm ./modules/git/repo_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() {
|
src_compile() {
|
||||||
|
@ -96,13 +92,7 @@ src_compile() {
|
||||||
)
|
)
|
||||||
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
|
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
|
||||||
|
|
||||||
if use build-client; then
|
env "${makeenv[@]}" emake backend
|
||||||
# -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
|
|
@ -12,8 +12,5 @@
|
||||||
<flag name="acct">
|
<flag name="acct">
|
||||||
User and group management via acct-*/git packages
|
User and group management via acct-*/git packages
|
||||||
</flag>
|
</flag>
|
||||||
<flag name="build-client">
|
|
||||||
Build the client code, instead of using a precompiled one
|
|
||||||
</flag>
|
|
||||||
</use>
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|
Reference in New Issue
Block a user