-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
HOMEPAGE="https://gitea.io"
if [[ ${PV} != 9999* ]] ; then
- SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64"
else
EGIT_REPO_URI="https://github.com/go-gitea/gitea"
SLOT="0"
IUSE="+acct pam sqlite"
-BDEPEND="dev-lang/go"
+BDEPEND="dev-lang/go
+ >=net-libs/nodejs-10[npm]"
DEPEND="pam? ( sys-libs/pam )"
RDEPEND="${DEPEND}
acct? (
DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md )
S="${WORKDIR}/${P}/src/${EGO_PN}"
+PATCHES=( "${FILESDIR}/gitea-logflags.patch" )
+
gitea_make() {
local gitea_tags=(
bindata
)
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${PV}")
- env "${makeenv[@]}" emake "$@"
+ env "${makeenv[@]}" emake -j1 "$@"
}
src_prepare() {
sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.ini.sample || die
fi
- gitea_make generate
+ # Remove already build assets (like frontend part)
+ gitea_make clean-all
}
src_compile() {