www-apps/gitea: bump to 1.10.1
authorFelix Neumärker <xdch47@posteo.de>
Sat, 7 Dec 2019 17:41:51 +0000 (18:41 +0100)
committerJoonas Niilola <juippis@gentoo.org>
Thu, 12 Dec 2019 17:53:34 +0000 (19:53 +0200)
Closes: https://bugs.gentoo.org/689748
Closes: https://bugs.gentoo.org/702192

Package-Manager: Portage-2.3.80, Repoman-2.3.20
Signed-off-by: Felix Neumärker <xdch47@posteo.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
www-apps/gitea/Manifest
www-apps/gitea/gitea-1.10.1.ebuild [moved from www-apps/gitea/gitea-1.10.0.ebuild with 80% similarity]
www-apps/gitea/gitea-9999.ebuild

index cbef985343f513d5e4a4f0a587262a5ecfa19a81..6a880b10aac80df201da72eeca365624a97aaccb 100644 (file)
@@ -1,3 +1,3 @@
-DIST gitea-1.10.0.tar.gz 28905929 BLAKE2B ddf45483784ebf2d300d7f957e355f20c56e0e31825b3a290935ef9d8b7a2b0b154769b44eb270c9bb3165b8297cc1d8b51e9e660828eb95ab019b4857f8c37a SHA512 3bd99ee7289b6a0035d0a6da868562692fa9941a4f14d7555044c06efc7165615dc95547713e352d5cfcd7817596a9f4b24c5fa28c90066f4586ccb44a637d08
+DIST gitea-1.10.1.tar.gz 30146802 BLAKE2B d566e58bc8031c6ff2741861c93deb1cc0bbe2236cfa8d1f054e1453d39b294ae55bd3bae46373efa39cd0b5bc9dfc248ecc0c64642eb4df68fb01042ef1c692 SHA512 d7baea6ac9aca3a3226d36325000c71c886d560eeecb2fdbed924b4924db34882cdd82d07120e3c7175a6d87140a1f63cc575c3be44513e08f8e557856b39acd
 DIST gitea-1.8.3.tar.gz 24320679 BLAKE2B 9ef901ef7e1cb6ffa9a2aa082798b7a18ac2a6fdb4379082df3f942d767a27fd3915c7a4d2cb1af6f502a8cde3c1c98557c42d4c0ef60be7bdad78d8931035e0 SHA512 f6019fbfc056e4c7176222ccaca1cf638bd1f52323de54fcddc618129aeb778674f6e305de60e7d17b69505ad65439445ee6b5e368afdf0a6fbace7407acb495
 DIST gitea-1.9.5.tar.gz 25355286 BLAKE2B 8b733651de64fcafa7b41a6fc812fcad8ac7311a7e7acc679ec7dab759175ec13a096902aece209a3fef31eefd3a99493e13f7c9792e1e41b5a1c3376680d3ca SHA512 f7a04d3bb37a33da15290355f3f02ff4c1b737e8458cf65f731c870ac9e452243b1fdacc5f74accf963fb00cdd200dd31191058eb1d6dda8b1033846a961c7d3
similarity index 80%
rename from www-apps/gitea/gitea-1.10.0.ebuild
rename to www-apps/gitea/gitea-1.10.1.ebuild
index ef0e2c0351eb15dbce5c8cc06027f9675e3cfc42..ebc72d5057b0b796966174e268bba978169e3286 100644 (file)
@@ -45,17 +45,24 @@ S="${WORKDIR}/${P}/src/${EGO_PN}"
 PATCHES=( "${FILESDIR}/gitea-logflags.patch" )
 
 gitea_make() {
-       local my_tags=(
+       local gitea_tags=(
                bindata
                $(usev pam)
                $(usex sqlite 'sqlite sqlite_unlock_notify' '')
        )
-       local my_makeopt=(
-               TAGS="${my_tags[@]}"
-               LDFLAGS="-extldflags \"${LDFLAGS}\""
+       local gitea_settings=(
+               "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
+               "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
+               "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
        )
-       [[ ${PV} != 9999* ]] && my_makeopt+=("DRONE_TAG=${PV}")
-       GOPATH=${WORKDIR}/${P}:$(get_golibdir_gopath) emake "${my_makeopt[@]}" "$@"
+       local makeenv=(
+               TAGS="${gitea_tags[@]}"
+               LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[@]}"
+               GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"
+       )
+       [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${PV}")
+
+       env "${makeenv[@]}" emake "$@"
 }
 
 src_prepare() {
@@ -90,13 +97,13 @@ src_compile() {
 src_test() {
        if has network-sandbox ${FEATURES}; then
                einfo "Remove tests which are known to fail with network-sandbox enabled."
-               rm -rf ./modules/migrations/github_test.go
+               rm ./modules/migrations/github_test.go || die
        fi
 
        if [[ ${PV} != 9999* ]] ; then
                einfo "Remove tests which depend on gitea git-repo."
-               rm -rf ./modules/git/blob_test.go
-               rm -rf ./modules/git/repo_test.go
+               rm ./modules/git/blob_test.go || die
+               rm ./modules/git/repo_test.go || die
        fi
 
        default
index 1fd7feaaff4cfcb823f739722be211fb2780c577..9e8bcf9c605411c2c040adcd66e27173eadae36b 100644 (file)
@@ -43,17 +43,24 @@ DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md )
 S="${WORKDIR}/${P}/src/${EGO_PN}"
 
 gitea_make() {
-       local my_tags=(
+       local gitea_tags=(
                bindata
                $(usev pam)
                $(usex sqlite 'sqlite sqlite_unlock_notify' '')
        )
-       local my_makeopt=(
-               TAGS="${my_tags[@]}"
-               LDFLAGS="-extldflags \"${LDFLAGS}\""
+       local gitea_settings=(
+               "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
+               "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
+               "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
        )
-       [[ ${PV} != 9999* ]] && my_makeopt+=("DRONE_TAG=${PV}")
-       GOPATH=${WORKDIR}/${P}:$(get_golibdir_gopath) emake "${my_makeopt[@]}" "$@"
+       local makeenv=(
+               TAGS="${gitea_tags[@]}"
+               LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[@]}"
+               GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"
+       )
+       [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${PV}")
+
+       env "${makeenv[@]}" emake "$@"
 }
 
 src_prepare() {
@@ -88,13 +95,13 @@ src_compile() {
 src_test() {
        if has network-sandbox ${FEATURES}; then
                einfo "Remove tests which are known to fail with network-sandbox enabled."
-               rm -rf ./modules/migrations/github_test.go
+               rm ./modules/migrations/github_test.go || die
        fi
 
        if [[ ${PV} != 9999* ]] ; then
                einfo "Remove tests which depend on gitea git-repo."
-               rm -rf ./modules/git/blob_test.go
-               rm -rf ./modules/git/repo_test.go
+               rm ./modules/git/blob_test.go || die
+               rm ./modules/git/repo_test.go || die
        fi
 
        default