Skip to content

Commit

Permalink
create MacPorts for groonga.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 9, 2011
0 parents commit 865f84c
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PortIndex
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
29 changes: 29 additions & 0 deletions databases/groonga/Portfile
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}

26 changes: 26 additions & 0 deletions update.sh
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

0 comments on commit 865f84c

Please sign in to comment.