You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
ollama: 0.20.2
This commit is contained in:
+6
-5
@@ -3,7 +3,7 @@
|
||||
PortSystem 1.0
|
||||
PortGroup golang 1.0
|
||||
|
||||
go.setup github.com/ollama/ollama 0.20.0 v
|
||||
go.setup github.com/ollama/ollama 0.20.2 v
|
||||
github.tarball_from archive
|
||||
revision 0
|
||||
|
||||
@@ -17,9 +17,9 @@ description ${name} runs and manages LLMs
|
||||
long_description Get up and running with large language models easily
|
||||
homepage https://ollama.com
|
||||
|
||||
checksums rmd160 aa98ebbf113ae53723855e25319e781e001ccc66 \
|
||||
sha256 1a60cbd92c12eb9551606e25594f290df613ff6f8b086f67560ad27afdb8a6ac \
|
||||
size 26441857
|
||||
checksums rmd160 214a25cda3d9498d7daa98bbc9dce5640f057323 \
|
||||
sha256 53a8eb37cb99279d6d8f5e8c94cda3119119fb75f4f35a3b8cc39b0232478bef \
|
||||
size 26443000
|
||||
|
||||
# See https://github.com/ollama/ollama/pull/6854
|
||||
patchfiles-append patch-NO_MMAP_ENV.diff
|
||||
@@ -62,7 +62,8 @@ destroot {
|
||||
reinplace "s|@@CONFIG_PATH@@|${config_path}|g" ${destroot}${prefix}/libexec/${name}/${wrapper_script}
|
||||
reinplace "s|@@ENV_FILE@@|${env_file}|g" ${destroot}${prefix}/libexec/${name}/${wrapper_script}
|
||||
reinplace "s|@@HOME@@|${ol_data_path}|g" ${destroot}${config_path}/${env_file}.example
|
||||
reinplace "s|@@PREFIX@@|${prefix}|g; s|@@MODELS_PATH@@|${ol_models_path}|g" ${destroot}${config_path}/${env_file}.example
|
||||
reinplace "s|@@MODELS_PATH@@|${ol_models_path}|g" ${destroot}${config_path}/${env_file}.example
|
||||
reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${config_path}/${env_file}.example
|
||||
|
||||
system -W ${destroot}${prefix}/etc/LaunchDaemons/${startupitem.uniquename} \
|
||||
"/usr/libexec/PlistBuddy -c \"Add :SessionCreate bool true\" ${startupitem.plist} &&\
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
HOME=@@HOME@@
|
||||
OLLAMA_MODELS=@@MODELS_PATH@@
|
||||
OLLAMA_LIBRARY_PATH=@@PREFIX@@/lib
|
||||
#OLLAMA_CONTEXT_LENGTH=8192
|
||||
#OLLAMA_FLASH_ATTENTION=1
|
||||
OLLAMA_LIBRARY_PATH=@@PREFIX@@/lib
|
||||
#OLLAMA_KEEP_ALIVE=15m
|
||||
#OLLAMA_KV_CACHE_TYPE=q8_0
|
||||
#OLLAMA_NO_MMAP=1
|
||||
|
||||
Reference in New Issue
Block a user