diff options
author | Paul Healy <lmiphay@gmail.com> | 2019-11-02 18:56:42 +0000 |
---|---|---|
committer | Paul Healy <lmiphay@gmail.com> | 2019-11-02 18:56:42 +0000 |
commit | b5b82f9dc89c3e2d69f4296f86515012be2462c1 (patch) | |
tree | c00bc1fc5ede50fcf1f2c10c76c61d0024a5db8b /www-apps | |
parent | rebump gitea (diff) | |
download | lmiphay-b5b82f9dc89c3e2d69f4296f86515012be2462c1.tar.gz lmiphay-b5b82f9dc89c3e2d69f4296f86515012be2462c1.tar.bz2 lmiphay-b5b82f9dc89c3e2d69f4296f86515012be2462c1.zip |
remove old ebuild
Signed-off-by: Paul Healy <lmiphay@gmail.com>
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/gitea/gitea-1.9.4.ebuild | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/www-apps/gitea/gitea-1.9.4.ebuild b/www-apps/gitea/gitea-1.9.4.ebuild deleted file mode 100644 index 1fbe7d7..0000000 --- a/www-apps/gitea/gitea-1.9.4.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit user systemd golang-build golang-vcs-snapshot - -EGO_PN="code.gitea.io/gitea" -KEYWORDS="~amd64 ~arm ~arm64" - -DESCRIPTION="A painless self-hosted Git service, written in Go" -HOMEPAGE="https://github.com/go-gitea/gitea" -SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND="dev-go/go-bindata" -RDEPEND="dev-vcs/git" - -pkg_setup() { - enewgroup git - enewuser git -1 /bin/bash /var/lib/gitea git -} - -src_prepare() { - default - sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\ - -e "s/-ldflags '-s/-ldflags '/" \ - -e "s/GOFLAGS := -i -v/GOFLAGS := -v -mod=vendor/" \ - -e 's/ generate \$/ generate -mod=vendor \$/' \ - src/${EGO_PN}/Makefile || die - sed -i '/go:generate go fmt bindata.go/d' src/${EGO_PN}/modules/options/options.go || die - sed -i '/go:generate go fmt bindata.go/d' src/${EGO_PN}/modules/public/public.go || die - sed -i '/go:generate go fmt bindata.go/d' src/${EGO_PN}/modules/templates/templates.go || die -} - -src_compile() { - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate - TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build -} - -src_install() { - pushd src/${EGO_PN} || die - dobin gitea - insinto /var/lib/gitea/conf - newins custom/conf/app.ini.sample app.ini.example - popd || die - newinitd "${FILESDIR}"/gitea.initd-r1 gitea - newconfd "${FILESDIR}"/gitea.confd gitea - keepdir /var/log/gitea /var/lib/gitea/data - fowners -R git:git /var/log/gitea /var/lib/gitea/ - systemd_dounit "${FILESDIR}/gitea.service" -} - -pkg_postinst() { - if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then - elog "No app.ini found, copying initial config over" - cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die - chown git:git /var/lib/gitea/conf/app.ini - else - elog "app.ini found, please check example file for possible changes" - ewarn "Please note that environment variables have been changed:" - ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)" - ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)" - fi -} |