commit:     4e7eaeaafeb248b9a06de9d6b929b2f348fdc4a2
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jul 11 00:50:34 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Jul 11 00:52:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e7eaeaa

dev-ml/ollama: add missing pipe exit status check

Fix variable order
Remove redundant file mode change
Add braces to variable

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 dev-ml/ollama/ollama-9999.ebuild | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/dev-ml/ollama/ollama-9999.ebuild b/dev-ml/ollama/ollama-9999.ebuild
index a8b1e063e..3db009887 100644
--- a/dev-ml/ollama/ollama-9999.ebuild
+++ b/dev-ml/ollama/ollama-9999.ebuild
@@ -13,6 +13,11 @@ SLOT="0"
 
 IUSE="nvidia amd"
 
+RDEPEND="
+       acct-group/ollama
+       acct-user/ollama
+"
+IDEPEND="${RDEPEND}"
 BDEPEND="
        >=dev-lang/go-1.21.0
        >=dev-build/cmake-3.24
@@ -24,16 +29,6 @@ BDEPEND="
        )
 "
 
-RDEPEND="
-       acct-group/ollama
-       acct-user/ollama
-"
-
-IDEPEND="
-       acct-group/ollama
-       acct-user/ollama
-"
-
 pkg_pretend() {
        if use amd; then
                ewarn "WARNING: AMD & Nvidia support in this ebuild are 
experimental"
@@ -53,8 +48,9 @@ src_compile() {
        VERSION=$(
                git describe --tags --first-parent --abbrev=7 --long --dirty 
--always \
                | sed -e "s/^v//g"
+               assert
        )
-       export GOFLAGS="'-ldflags=-w -s 
\"-X=github.com/ollama/ollama/version.Version=$VERSION\"'"
+       export GOFLAGS="'-ldflags=-w -s 
\"-X=github.com/ollama/ollama/version.Version=${VERSION}\"'"
 
        ego generate ./...
        ego build .
@@ -63,7 +59,6 @@ src_compile() {
 src_install() {
        dobin ollama
        doinitd "${FILESDIR}"/ollama
-       fperms 0755 /etc/init.d/ollama
 }
 
 pkg_preinst() {

Reply via email to