-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 865f84c
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
groonga 549 | ||
variants universal portdir databases/groonga description {An embeddable fulltext search engine} homepage http://groonga.org/ epoch 0 platforms darwin name groonga depends_lib {port:libevent port:zmq port:msgpack} long_description {groonga is an embeddable fulltext search engine library. It can integrate with DBMS and scripting languages to enhance their search functionality. It also provides a standalone data store server based on relation data model.} maintainers kou@clear-code.com license LGPLv2 categories databases version 1.1.0 revision 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PortSystem 1.0 | ||
name groonga | ||
version 1.1.0 | ||
categories databases | ||
maintainers kou@clear-code.com | ||
description An embeddable fulltext search engine | ||
long_description \ | ||
groonga is an embeddable fulltext search engine library. It can integrate \ | ||
with DBMS and scripting languages to enhance their search functionality. \ | ||
It also provides a standalone data store server based on relation data \ | ||
model. | ||
|
||
platforms darwin | ||
license LGPLv2 | ||
|
||
homepage http://groonga.org/ | ||
distname groonga-${version} | ||
worksrcdir ${distname} | ||
|
||
checksums md5 a5a381db446e017f172bf6b003a4fed9 \ | ||
sha1 b6b6501fe3f53a2ddce0f235e3d6a9f66cbac2b6 \ | ||
rmd160 8c4263b0d4ff47732314f0c163c7c736cb2654c7 | ||
|
||
depends_lib port:libevent port:zmq port:msgpack | ||
|
||
livecheck.check regex | ||
livecheck.url http://groonga.org/download/ | ||
livecheck.regex {groonga-([0-9.-]+)\.tar\.gz} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
if [ $# != 1 ]; then | ||
echo "Usage: $0 VERSIOIN" | ||
echo " e.g.: $0 1.1.0" | ||
exit 1 | ||
fi | ||
|
||
cd $(dirname $0) | ||
|
||
version=$1 | ||
tar_gz=groonga-$version.tar.gz | ||
portfile=databases/groonga/Portfile | ||
|
||
sed -E -i'' -e "s/^(version +)[a-z0-9.\-]+/\1$version/" $portfile | ||
|
||
curl -o $tar_gz -L http://groonga.org/files/groonga/$tar_gz | ||
|
||
for type in md5 sha1 rmd160; do | ||
hash=$(openssl dgst -$type $tar_gz | cut -f 2 -d ' ') | ||
sed -E -i'' -e "s/($type +)[a-z0-9]+/\1$hash/" $portfile | ||
done | ||
|
||
portindex | ||
|
||
rm $tar_gz |