commit:     f8d03fe9903f9de3cc03c90b31b7c20de2016552
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  7 21:57:30 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Oct  7 22:39:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8d03fe9

dev-db/litedb: use RollForward to update to .NET 7.0

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-db/litedb/{litedb-5.0.17.ebuild => litedb-5.0.17-r1.ebuild} | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-db/litedb/litedb-5.0.17.ebuild 
b/dev-db/litedb/litedb-5.0.17-r1.ebuild
similarity index 97%
rename from dev-db/litedb/litedb-5.0.17.ebuild
rename to dev-db/litedb/litedb-5.0.17-r1.ebuild
index 5c2a378be9f9..ef353ce1b560 100644
--- a/dev-db/litedb/litedb-5.0.17.ebuild
+++ b/dev-db/litedb/litedb-5.0.17-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 MY_PN=LiteDB
 
-DOTNET_PKG_COMPAT=6.0
+DOTNET_PKG_COMPAT=7.0
 NUGETS="
 [email protected]
 [email protected]
@@ -232,7 +232,7 @@ inherit check-reqs dotnet-pkg
 
 DESCRIPTION=".NET NoSQL Document Store in a single data file"
 HOMEPAGE="http://www.litedb.org/
-       http://www.litedb.org/";
+       https://github.com/mbdavid/LiteDB/";
 
 if [[ "${PV}" == *9999* ]] ; then
        inherit git-r3
@@ -252,6 +252,7 @@ LICENSE="MIT"
 SLOT="0"
 
 CHECKREQS_DISK_BUILD="2G"
+DOTNET_PKG_BUILD_EXTRA_ARGS=( -p:RollForward=Major )
 DOTNET_PKG_PROJECTS=( LiteDB.Shell/LiteDB.Shell.csproj )
 
 pkg_setup() {
@@ -259,6 +260,10 @@ pkg_setup() {
        dotnet-pkg_pkg_setup
 }
 
+src_test() {
+       dotnet-pkg-base_test -p:RollForward=Major LiteDB.sln
+}
+
 src_install() {
        dotnet-pkg-base_install
        dotnet-pkg-base_dolauncher "/usr/share/${P}/LiteDB.Shell" "${PN}-shell"

Reply via email to